From 079dbc9e4ff872c98590f64c1cd321461170fcd0 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Tue, 19 Jan 2010 07:31:44 +0000 Subject: [PATCH] 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 --- .../Base_getContentTranslationMessageAsCell.xml | 3 ++- bt5/erp5_content_translation/bt/change_log | 3 +++ bt5/erp5_content_translation/bt/revision | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_getContentTranslationMessageAsCell.xml b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_getContentTranslationMessageAsCell.xml index 65ab7ab8ab..5936ab1ce9 100644 --- a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_getContentTranslationMessageAsCell.xml +++ b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_getContentTranslationMessageAsCell.xml @@ -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> diff --git a/bt5/erp5_content_translation/bt/change_log b/bt5/erp5_content_translation/bt/change_log index 7865653868..0593f139e0 100644 --- a/bt5/erp5_content_translation/bt/change_log +++ b/bt5/erp5_content_translation/bt/change_log @@ -1,3 +1,6 @@ +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. diff --git a/bt5/erp5_content_translation/bt/revision b/bt5/erp5_content_translation/bt/revision index 9d607966b7..3cacc0b93c 100644 --- a/bt5/erp5_content_translation/bt/revision +++ b/bt5/erp5_content_translation/bt/revision @@ -1 +1 @@ -11 \ No newline at end of file +12 \ No newline at end of file -- 2.30.9