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,6 +3653,10 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
if action == 'nothing':
continue
path = string.split(path, '/')
if len(path) == 2:
lang = path[0]
catalog = path[1]
else:
lang = path[-3]
catalog = path[-2]
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