From a41b00a4488ddce33b54cb8db66bb0e8c79d40c0 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Tue, 19 Feb 2008 15:25:46 +0000 Subject: [PATCH] Change messages. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19394 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...st.xml => create_term_for_translation.xml} | 6 +- .../Glossary%20Module/export_po_file.xml | 2 +- ...ryModule_createTermListForTranslation.xml} | 8 +- ...ossaryModule_findTermFromPropertySheet.xml | 5 +- .../GlossaryModule_updateFieldByTerm.xml | 5 +- .../GlossaryModule_viewPOFileExportDialog.xml | 2 +- ...ssaryModule_viewTermListCreationDialog.xml | 151 ++++++++++++++++++ .../your_language.xml | 0 bt5/erp5_forge/bt/revision | 2 +- bt5/erp5_forge/bt/template_action_path_list | 2 +- 10 files changed, 172 insertions(+), 11 deletions(-) rename bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/{create_empty_term_list.xml => create_term_for_translation.xml} (91%) rename bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/{GlossaryModule_createEmptyTermListForTranslation.xml => GlossaryModule_createTermListForTranslation.xml} (94%) create mode 100644 bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog.xml rename bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/{GlossaryModule_viewEmptyTermListCreationDialog => GlossaryModule_viewTermListCreationDialog}/your_language.xml (100%) diff --git a/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_empty_term_list.xml b/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_term_for_translation.xml similarity index 91% rename from bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_empty_term_list.xml rename to bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_term_for_translation.xml index 4e31c889e9..eb7f5b2dff 100644 --- a/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_empty_term_list.xml +++ b/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/create_term_for_translation.xml @@ -39,7 +39,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>create_empty_term_list</string> </value> + <value> <string>create_term_for_translation</string> </value> </item> <item> <key> <string>permissions</string> </key> @@ -55,7 +55,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Create Empty Terms for Translation</string> </value> + <value> <string>Create Terms from English Ones for Translation</string> </value> </item> <item> <key> <string>visible</string> </key> @@ -75,7 +75,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/GlossaryModule_viewEmptyTermListCreationDialog</string> </value> + <value> <string>string:${object_url}/GlossaryModule_viewTermListCreationDialog</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/export_po_file.xml b/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/export_po_file.xml index 025a01d30e..01ed85c540 100644 --- a/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/export_po_file.xml +++ b/bt5/erp5_forge/ActionTemplateItem/portal_types/Glossary%20Module/export_po_file.xml @@ -55,7 +55,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Export PO File</string> </value> + <value> <string>Export Terms as PO File</string> </value> </item> <item> <key> <string>visible</string> </key> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createEmptyTermListForTranslation.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createTermListForTranslation.xml similarity index 94% rename from bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createEmptyTermListForTranslation.xml rename to bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createTermListForTranslation.xml index 0a9271fcb1..3075d396df 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createEmptyTermListForTranslation.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_createTermListForTranslation.xml @@ -90,6 +90,9 @@ for i in catalog(portal_type=\'Glossary Term\',\n title=english_term.getTitle(),\n description=english_term.getDescription()\n )\n +\n +portal_status_message = context.Base_translateString(\'Terms created.\')\n +context.Base_redirect(keep_items={\'portal_status_message\':portal_status_message})\n </string> </value> </item> <item> @@ -134,7 +137,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n <tuple> <string>language</string> <string>_getattr_</string> -<string>context</string> + <string>context</string> <string>catalog</string> <string>glossary_module</string> <string>_getiter_</string> @@ -144,6 +147,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n <string>business_field</string> <string>None</string> <string>new_term</string> + <string>portal_status_message</string> </tuple> </value> </item> @@ -160,7 +164,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n </item> <item> <key> <string>id</string> </key> - <value> <string>GlossaryModule_createEmptyTermListForTranslation</string> </value> + <value> <string>GlossaryModule_createTermListForTranslation</string> </value> </item> <item> <key> <string>warnings</string> </key> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_findTermFromPropertySheet.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_findTermFromPropertySheet.xml index 49ea04eacb..c14fe24ef6 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_findTermFromPropertySheet.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_findTermFromPropertySheet.xml @@ -92,7 +92,9 @@ else:\n business_field=i[\'business_field\'],\n title=i[\'title\'], description=i[\'description\'])\n \n -context.Base_redirect()\n +\n +portal_status_message = context.Base_translateString(\'Terms created.\')\n +context.Base_redirect(keep_items={\'portal_status_message\':portal_status_message})\n ]]></string> </value> @@ -154,6 +156,7 @@ context.Base_redirect()\n <string>item_list</string> <string>len</string> <string>new_id</string> + <string>portal_status_message</string> </tuple> </value> </item> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_updateFieldByTerm.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_updateFieldByTerm.xml index f4cda023d5..51341bc2ce 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_updateFieldByTerm.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_updateFieldByTerm.xml @@ -83,7 +83,9 @@ for i in kw.keys():\n field.manage_edit_xmlrpc(dict(title=term.getTitle(),\n description=term.getDescription()))\n \n -context.Base_redirect()\n +\n +portal_status_message = context.Base_translateString(\'Fields updated.\')\n +context.Base_redirect(keep_items={\'portal_status_message\':portal_status_message})\n </string> </value> </item> <item> @@ -143,6 +145,7 @@ context.Base_redirect()\n <string>field_path</string> <string>field</string> <string>dict</string> + <string>portal_status_message</string> </tuple> </value> </item> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewPOFileExportDialog.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewPOFileExportDialog.xml index 0f79f20f34..250ee6a755 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewPOFileExportDialog.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewPOFileExportDialog.xml @@ -136,7 +136,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Export</string> </value> + <value> <string>Export Terms As PO File</string> </value> </item> <item> <key> <string>unicode_mode</string> </key> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog.xml new file mode 100644 index 0000000000..d75c330d8a --- /dev/null +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog.xml @@ -0,0 +1,151 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>GlossaryModule_createTermListForTranslation</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>your_language</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>GlossaryModule_viewTermListCreationDialog</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>GlossaryModule_viewTermListCreationDialog</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Create Terms</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewEmptyTermListCreationDialog/your_language.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog/your_language.xml similarity index 100% rename from bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewEmptyTermListCreationDialog/your_language.xml rename to bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_glossary/GlossaryModule_viewTermListCreationDialog/your_language.xml diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision index ae4ee13c08..05cf25896d 100644 --- a/bt5/erp5_forge/bt/revision +++ b/bt5/erp5_forge/bt/revision @@ -1 +1 @@ -200 \ No newline at end of file +201 \ No newline at end of file diff --git a/bt5/erp5_forge/bt/template_action_path_list b/bt5/erp5_forge/bt/template_action_path_list index 73ba992348..52c7d5f423 100644 --- a/bt5/erp5_forge/bt/template_action_path_list +++ b/bt5/erp5_forge/bt/template_action_path_list @@ -8,7 +8,7 @@ Business Template | update_svn_bt Business Template | update_svn_bt_norevert Business Template | view_svn_repos_infos External Folder | view -Glossary Module | create_empty_term_list +Glossary Module | create_term_for_translation Glossary Module | export_po_file Glossary Module | find_terms_from_property_sheet Glossary Module | update_fields_by_english_glossary -- 2.30.9