Commit 5f02a4a0 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Translate domain title

parent 2bfe9dab
......@@ -852,7 +852,7 @@ def renderField(traversed_document, field, form, value=None, meta_type=None, key
"query": sql_catalog.buildQuery(
list_method_query_dict,
ignore_unknown_columns=True).asSearchTextExpression(sql_catalog)})},
"domain_root_list": field.get_value("domain_root_list")
"domain_root_list": [(x, Base_translateString(y)) for x, y in field.get_value("domain_root_list")]
})
result["domain_dict"] = getDomainSelection([x[0] for x in result["domain_root_list"]])
......
......@@ -11,11 +11,17 @@
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<!-- Let's set up domain property on listbox -->
<tr><td>open</td>
<td>${base_url}/FooModule_viewFooList/listbox/ListBox_setPropertyList?field_all_columns=creation_date+%7C+Creation Date+%0A+modification_date+%7C+Modification Date+%0A+owner_title+%7C+Owner&amp;field_domain_root_list=foo_category+%7C+Foo%20Category+%0A+foo_domain+%7C+Foo%20Domain</td><td></td></tr>
<tr><td>assertTextPresent</td>
<td>Set Successfully.</td><td></td></tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/create_translation_data" />
<tr>
<td>open</td>
<td>${base_url}/web_site_module/renderjs_runner/wo/#/foo_bar_module</td>
<td>${base_url}/web_site_module/renderjs_runner/wo/#/foo_module</td>
<td></td>
</tr>
......@@ -54,7 +60,7 @@
<tr>
<td>verifySelectOptions</td>
<td>//div[@class="filter_item_container"]/div[1]//select[1]</td>
<td>ID,biaoti,chuangjianshijian,xiugaishijian,shuoyouzhe,soushuowenben,soushuo</td>
<td>ID,biaoti,chuangjianshijian,xiugaishijian,shuoyouzhe,Foo leibie,Foo quyu,soushuowenben,soushuo</td>
</tr>
<tr>
......@@ -68,7 +74,7 @@
<tr>
<td>select</td>
<td>//div[@class="filter_item_container"]/div[1]//select[1]</td>
<td>index=5</td>
<td>index=7</td>
</tr>
......
......@@ -70,6 +70,8 @@ param_dict = [
{ 'message': 'Creation Date', 'translation': 'chuangjianshijian', 'language': 'wo'},
{ 'message': 'Modification Date', 'translation': 'xiugaishijian', 'language': 'wo'},
{ 'message': 'Owner', 'translation': 'shuoyouzhe', 'language': 'wo'},
{ 'message': 'Foo Domain', 'translation': 'Foo quyu', 'language': 'wo'},
{ 'message': 'Foo Category', 'translation': 'Foo leibie', 'language': 'wo'},
{ 'message': 'Configure', 'translation': 'peizhi', 'language': 'wo'},
{ 'message': 'Configure Editor', 'translation': 'peizhibianjiqi', 'language': 'wo'},
{ 'message': 'This page contains unsaved changes, do you really want to leave the page ?', 'translation': 'querenlikai?', 'language': 'wo'}
......
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