Commit 079dbc9e authored by Yusei Tahara's avatar Yusei Tahara

2010-01-19 yusei

* Now translation accessors return original value if there is no translation. For translation UI of content translation, use no_original_value parameter and do not display original value in input fields.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31809 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 13cb7d3f
......@@ -65,7 +65,7 @@ result = []\n
property_name = args[0]\n
language = args[1]\n
method = getattr(context, \'get%s\' % upperCase(\'%s_translated_%s\' % (language, property_name)))\n
translated_message = method()\n
translated_message = method(no_original_value=True)\n
\n
return translated_message\n
</string> </value>
......@@ -118,6 +118,7 @@ return translated_message\n
<string>getattr</string>
<string>context</string>
<string>method</string>
<string>True</string>
<string>translated_message</string>
</tuple>
</value>
......
2010-01-19 yusei
* Now translation accessors return original value if there is no translation. For translation UI of content translation, use no_original_value parameter and do not display original value in input fields.
2009-11-05 yusei
* Initial release.
......
11
\ No newline at end of file
12
\ 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