You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, if even one module has been localized for a particular language, empty files must be created for the other modules. For instance, Slovenian formatters are going in right now, and an empty parse_sl.py is required. Otherwise, when you try to import lingua_franca.parse, you get ModuleNotFoundError (or whatever Python 3.5 does.)
With the empty file, the module will import fine, and only raise an error - lingua_franca.internal.FunctionNotLocalizedError - under the self-described circumstances.
This should, first of all, raise lingua_franca.internal.NoSuchModuleError, which will descend from ModuleNotFoundError once Py3.5 is dropped.
Second, it should warn, rather than raising the exception, under either of the following circumstances:
At present, if even one module has been localized for a particular language, empty files must be created for the other modules. For instance, Slovenian formatters are going in right now, and an empty
parse_sl.py
is required. Otherwise, when you try to importlingua_franca.parse
, you getModuleNotFoundError
(or whatever Python 3.5 does.)With the empty file, the module will import fine, and only raise an error -
lingua_franca.internal.FunctionNotLocalizedError
- under the self-described circumstances.This should, first of all, raise
lingua_franca.internal.NoSuchModuleError
, which will descend fromModuleNotFoundError
once Py3.5 is dropped.Second, it should warn, rather than raising the exception, under either of the following circumstances:
config.load_langs_on_demand == True
The text was updated successfully, but these errors were encountered: