From 6f286eb141e06b238481f4708d07a4d4ddf18650 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Wed, 6 Jun 2007 10:23:02 +0000
Subject: [PATCH] use wf title in key as we can have different title for the
 same wf state id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14714 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
index 6b659c8ea3..5a18f825e9 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_updateTranslationTable.xml
@@ -98,7 +98,7 @@ for wf in context.portal_workflow.objectValues():\n
         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, state_id)\n
+          key = (lang, state_var_title, state.title)\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
-- 
2.30.9