Commit 34578612 authored by Aurel's avatar Aurel

add title and diff for message translation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4645 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cc069e8
...@@ -73,6 +73,7 @@ class TemplateTool (BaseTool): ...@@ -73,6 +73,7 @@ class TemplateTool (BaseTool):
- save - save
""" """
id = 'portal_templates' id = 'portal_templates'
title = 'Template Tool'
meta_type = 'ERP5 Template Tool' meta_type = 'ERP5 Template Tool'
portal_type = 'Template Tool' portal_type = 'Template Tool'
allowed_types = ( 'ERP5 Business Template',) allowed_types = ( 'ERP5 Business Template',)
...@@ -394,6 +395,7 @@ class TemplateTool (BaseTool): ...@@ -394,6 +395,7 @@ class TemplateTool (BaseTool):
if len(diff_list) != 0: if len(diff_list) != 0:
diff_msg += '\n\nObject %s diff :\n' %(key) diff_msg += '\n\nObject %s diff :\n' %(key)
diff_msg += '\n'.join(diff_list) diff_msg += '\n'.join(diff_list)
# for our own way to generate xml # for our own way to generate xml
item_list_2 = ['_site_property_item', '_module_item', '_catalog_result_key_item', '_catalog_related_key_item', '_catalog_result_table_item'] item_list_2 = ['_site_property_item', '_module_item', '_catalog_result_key_item', '_catalog_related_key_item', '_catalog_result_table_item']
for item_name in item_list_2: for item_name in item_list_2:
...@@ -414,7 +416,7 @@ class TemplateTool (BaseTool): ...@@ -414,7 +416,7 @@ class TemplateTool (BaseTool):
diff_msg += '\n'.join(diff_list) diff_msg += '\n'.join(diff_list)
# for document located on filesystem # for document located on filesystem
item_list_3 = ['_document_item', '_property_sheet_item', '_extension_item', '_test_item'] item_list_3 = ['_document_item', '_property_sheet_item', '_extension_item', '_test_item', '_message_translation_item']
for item_name in item_list_3: for item_name in item_list_3:
item1 = getattr(bt1, item_name) item1 = getattr(bt1, item_name)
# build current item if we compare to installed bt # build current item if we compare to installed bt
......
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