[Erp5-report] r14500 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue May 15 19:25:31 CEST 2007
Author: vincent
Date: Tue May 15 19:25:31 2007
New Revision: 14500
URL: http://svn.erp5.org?rev=14500&view=rev
Log:
Translation cache must always use the original (untranslated) value to avoid duplicates, because otherwise if "foo" translates as "bar", and "baz" translates also as "bar", only the first encountered will get indexed in translation table, meaning that any translated search on "baz" will produce no result. It causes the invisibility of some lines in listboxes typically when filtering by translated_workflow_state_title.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml?rev=14500&r1=14499&r2=14500&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml Tue May 15 19:25:31 2007
@@ -98,7 +98,7 @@
if state.title != \'\' :\n
state_var_title = \'%s_title\' % state_var\n
translated_message = context.Localizer.erp5_ui.gettext(state.title.decode(\'utf-8\'), lang=lang).encode(\'utf-8\')\n
- key = (lang, state_var_title, translated_message)\n
+ key = (lang, state_var_title, state_id)\n
if not translated_keys.has_key(key):\n
translated_keys[key] = None # mark as translated\n
obj = newTempBase(context, \'temp_translation_%d\' % i,\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=14500&r1=14499&r2=14500&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue May 15 19:25:31 2007
@@ -1,1 +1,1 @@
-332
+333
More information about the Erp5-report
mailing list