Commit 0a0f13da authored by Yoshinori Okuji's avatar Yoshinori Okuji

Enable a user-defined language when added.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dcec7e2f
......@@ -4530,6 +4530,8 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
# if the Localizer does not know the language code, it must be
# defined as a user-defined language.
localizer._add_user_defined_language(name, lang)
if lang not in localizer.get_languages():
localizer.manage_addLanguage(lang)
else:
po = self._objects[key]
if lang not in localizer.get_languages():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment