Commit 58ecb713 authored by Jérome Perrin's avatar Jérome Perrin

translate variation ranges

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44292 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6534af3f
...@@ -58,9 +58,9 @@ if resource is not None:\n ...@@ -58,9 +58,9 @@ if resource is not None:\n
base_category_list = resource.getVariationBaseCategoryList(omit_optional_variation=1)\n base_category_list = resource.getVariationBaseCategoryList(omit_optional_variation=1)\n
\n \n
for base_category in base_category_list:\n for base_category in base_category_list:\n
if matrixbox == 1:\n if matrixbox:\n
# XXX matrixbox is right_display (not as listfield) => invert display and value in item\n # XXX matrixbox is right_display (not as listfield) => invert display and value in item\n
cell_range.append( map(lambda x: (x[1],x[0]), context.getVariationCategoryItemList(base_category_list = (base_category,) ) ) )\n cell_range.append( map(lambda x: (x[1],x[0]), context.getVariationCategoryItemList(base_category_list=(base_category,), display_id=\'translated_title\' ) ) )\n
else:\n else:\n
cell_range.append( context.getVariationCategoryList(base_category_list = (base_category,) ) )\n cell_range.append( context.getVariationCategoryList(base_category_list = (base_category,) ) )\n
\n \n
......
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getVariationRangeCategoryItemList(display_base_category = 0)</string> </value> <value> <string>python: here.getVariationRangeCategoryItemList(display_base_category=0, display_id=\'translated_title\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
98 99
\ No newline at end of file \ No newline at end of file
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