Fix: Don't have plugin i18n paths overwrite the core i18n path
Stopped translations bundled with OctoPrint to work
This commit is contained in:
parent
ff9765f668
commit
71319942d9
1 changed files with 2 additions and 2 deletions
|
|
@ -512,8 +512,8 @@ def localeJs(locale, domain):
|
|||
|
||||
plugins = octoprint.plugin.plugin_manager().enabled_plugins
|
||||
for name, plugin in plugins.items():
|
||||
base_path = os.path.join(plugin.location, 'translations')
|
||||
plugin_messages, _ = messages_from_po(base_path, locale, domain)
|
||||
plugin_path = os.path.join(plugin.location, 'translations')
|
||||
plugin_messages, _ = messages_from_po(plugin_path, locale, domain)
|
||||
messages = octoprint.util.dict_merge(messages, plugin_messages)
|
||||
|
||||
core_messages, plural_expr = messages_from_po(base_path, locale, domain)
|
||||
|
|
|
|||
Loading…
Reference in a new issue