Commit 9d12df25 authored by Yoshinori Okuji's avatar Yoshinori Okuji

As far as I see, path usually consists of two items?

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5537190
......@@ -3653,8 +3653,12 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
if action == 'nothing':
continue
path = string.split(path, '/')
lang = path[-3]
catalog = path[-2]
if len(path) == 2:
lang = path[0]
catalog = path[1]
else:
lang = path[-3]
catalog = path[-2]
if lang not in localizer.get_languages():
localizer.manage_addLanguage(lang)
mc = localizer._getOb(catalog)
......
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