Commit 707eaed2 authored by Jérome Perrin's avatar Jérome Perrin

CRM and Support Requests translations

See merge request nexedi/erp5!1285
parents e5a90536 d8a85748
......@@ -15,9 +15,7 @@
<string>domain_root_list</string>
<string>domain_tree</string>
<string>editable_columns</string>
<string>search_columns</string>
<string>selection_name</string>
<string>sort_columns</string>
<string>title</string>
</list>
</value>
......@@ -254,184 +252,10 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Client</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>source_section_title</string>
<string>Supplier</string>
</tuple>
<tuple>
<string>source_decision_title</string>
<string>Supervisor</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Operations Manager</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Location</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Begin Date</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>End Date</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>source_trade_title</string>
<string>Operator</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>quantity</string>
<string>Quantity</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Quantity Unit</string>
</tuple>
<tuple>
<string>price</string>
<string>Unit Price</string>
</tuple>
<tuple>
<string>price_currency_title</string>
<string>Currency</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
<tuple>
<string>owner_title</string>
<string>Owner</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>ticket_selection</string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Client</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>source_section_title</string>
<string>Supplier</string>
</tuple>
<tuple>
<string>source_decision_title</string>
<string>Supervisor</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Operations Manager</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Location</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Begin Date</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>End Date</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>source_trade_title</string>
<string>Operator</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>quantity</string>
<string>Quantity</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Quantity Unit</string>
</tuple>
<tuple>
<string>price</string>
<string>Unit Price</string>
</tuple>
<tuple>
<string>price_currency_title</string>
<string>Currency</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
<tuple>
<string>owner_title</string>
<string>Owner</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
......
......@@ -105,8 +105,12 @@
<string>Location</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>resource_reference</string>
<string>Support Request Type Reference</string>
</tuple>
<tuple>
<string>source_trade_title</string>
......@@ -180,8 +184,8 @@
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>causality_translated_portal_type</string>
......@@ -255,207 +259,13 @@
<item>
<key> <string>search_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>causality_translated_portal_type</string>
<string>Channel</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Operations Manager</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Begin Date</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>End Date</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Client</string>
</tuple>
<tuple>
<string>source_section_title</string>
<string>Supplier</string>
</tuple>
<tuple>
<string>source_decision_title</string>
<string>Supervisor</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Location</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>source_trade_title</string>
<string>Operator</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Quantity Unit</string>
</tuple>
<tuple>
<string>price_currency_title</string>
<string>Currency</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>destination_decision_reference</string>
<string>Requester Reference</string>
</tuple>
<tuple>
<string>destination_project_title</string>
<string>Requested Project</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Handled Project</string>
</tuple>
<tuple>
<string>owner_title</string>
<string>Owner</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>causality_translated_portal_type</string>
<string>Channel</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Operations Manager</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Begin Date</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>End Date</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Client</string>
</tuple>
<tuple>
<string>source_section_title</string>
<string>Supplier</string>
</tuple>
<tuple>
<string>source_decision_title</string>
<string>Supervisor</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Location</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>source_trade_title</string>
<string>Operator</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Quantity Unit</string>
</tuple>
<tuple>
<string>price_currency_title</string>
<string>Currency</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>destination_decision_reference</string>
<string>Requester Reference</string>
</tuple>
<tuple>
<string>destination_project_title</string>
<string>Requested Project</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Handled Project</string>
</tuple>
<tuple>
<string>owner_title</string>
<string>Owner</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......
......@@ -679,6 +679,9 @@ msgstr "l'état d'une affectation toujours valide."
msgid "Action that will trigger the confirmed state of a workflow, for example for an accounting transaction or a sale packing list."
msgstr "Action qui permet de confirmer un document dans ERP5"
msgid "Action to be triggered on the Response Event"
msgstr "Action à effectuer sur l'événement de réponse"
msgid "Action which will disable the preference"
msgstr "Cette action permet de désactiver une préférence."
......@@ -3394,6 +3397,9 @@ msgstr "Créer l'écriture de trésorerie correspondante"
msgid "Create Related Payments"
msgstr "Créer les écritures de trésorerie correspondantes"
msgid "Create Response and Close Ticket"
msgstr "Répondre et Clôturer le Ticket"
msgid "Create Reversal Transaction"
msgstr "Contrepasser l'écriture"
......@@ -3835,12 +3841,21 @@ msgstr "Débiteurs"
msgid "December"
msgstr "Décembre"
msgid "Decision"
msgstr "Décision"
msgid "Decisions"
msgstr "Décisions"
msgid "Declare Reachable"
msgstr "Déclarer joignable"
msgid "Declare Unreachable"
msgstr "Déclarer injoignable"
msgid "Declare as Delivered"
msgstr "Déclarer livré"
msgid "Declare as Received"
msgstr "Déclarer reçu"
......@@ -4990,6 +5005,9 @@ msgstr "Éditer"
msgid "Edit [transition in processing_status_workflow]"
msgstr "Éditer"
msgid "Edit it as a draft"
msgstr "Éditer comme un brouillon"
msgid "Editable"
msgstr "Éditable"
......@@ -9151,6 +9169,9 @@ msgstr "Planifier l'écriture"
msgid "Plan [transition in bug_event_workflow]"
msgstr "Planifier"
msgid "Plan it at the given date"
msgstr "Planifier à la date donnée"
msgid "Plan will set the document State as planned in ERP5"
msgstr "Cette action permet de planifier une action. Cette dernière sera exécutée par la suite."
......@@ -11494,6 +11515,9 @@ msgstr "Envoyer Requête Aux Experts"
msgid "Send by Email"
msgstr "Envoyer par email"
msgid "Send it immediately"
msgstr "Envoyer immédiatement"
msgid "Sender"
msgstr "Expéditeur"
......@@ -12550,6 +12574,9 @@ msgstr "État"
msgid "Support Request Type"
msgstr "Type de la demande d'assistance"
msgid "Support Request Type Reference"
msgstr "Reference du type de la demande d'assistance"
msgid "Support Request Types"
msgstr "Types des demandes d'assistance"
......
......@@ -191,10 +191,14 @@
href: result_list[i + workflow_list.length]
});
}
gadget.element.querySelector("dl").innerHTML = panel_template_body_desktop({
return gadget.translateHtml(
panel_template_body_desktop({
workflow_list: result_workflow_list,
view_list: result_view_list
});
})
).push(function (my_translated_or_plain_html) {
gadget.element.querySelector("dl").innerHTML = my_translated_or_plain_html;
})
});
}
}
......
......@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>1593352467.41</float>
<float>1601621295.36</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -132,6 +132,10 @@
<key> <string>all_columns</string> </key>
<value>
<list>
<tuple>
<string>resource_reference</string>
<string>Support Request Type Reference</string>
</tuple>
<tuple>
<string>stop_date</string>
<string>End Date</string>
......@@ -153,8 +157,8 @@
<string>Location</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>causality_translated_portal_type</string>
......@@ -240,8 +244,8 @@
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
......@@ -270,7 +274,7 @@
<list>
<tuple>
<string>ticket_use_domain</string>
<string>Type</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>causality_event_portal_type_domain</string>
......
......@@ -118,28 +118,14 @@
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>search_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
......@@ -168,8 +154,8 @@
<string>Location</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>source_trade_title</string>
......@@ -243,8 +229,8 @@
<string>Reference</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
<string>resource__translated__title</string>
<string>Support Request Type</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
......@@ -332,7 +318,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
......@@ -349,84 +335,7 @@
<item>
<key> <string>search_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Client</string>
</tuple>
<tuple>
<string>destination_decision_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>destination_decision_language</string>
<string>Requester Language</string>
</tuple>
<tuple>
<string>source_section_title</string>
<string>Supplier</string>
</tuple>
<tuple>
<string>source_decision_title</string>
<string>Supervisor</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Operations Manager</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Location</string>
</tuple>
<tuple>
<string>start_date</string>
<string>Begin Date</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Type</string>
</tuple>
<tuple>
<string>causality_translated_portal_type</string>
<string>Channel</string>
</tuple>
<tuple>
<string>source_trade_title</string>
<string>Operator</string>
</tuple>
<tuple>
<string>quantity</string>
<string>Quantity</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Quantity Unit</string>
</tuple>
<tuple>
<string>price</string>
<string>Unit Price</string>
</tuple>
<tuple>
<string>price_currency_title</string>
<string>Currency</string>
</tuple>
<tuple>
<string>description</string>
<string>Description</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -456,19 +365,6 @@
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.Base_translateString("Recent Updates")</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
......
......@@ -120,7 +120,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Support Type</string> </value>
<value> <string>Support Request Type</string> </value>
</item>
</dictionary>
</value>
......
......@@ -13,7 +13,6 @@
<string>editable</string>
<string>first_item</string>
<string>hidden</string>
<string>title</string>
</list>
</value>
</item>
......@@ -110,10 +109,6 @@
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Support Type</string> </value>
</item>
</dictionary>
</value>
</item>
......
......@@ -86,7 +86,7 @@
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Support Type</td>
<td>Support Request Type</td>
<td></td>
</tr>
<tr>
......
......@@ -95,7 +95,7 @@
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Support Type</td>
<td>Support Request Type</td>
<td></td>
</tr>
<tr>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Zuite" module="Products.Zelenium.zuite"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>translation_zuite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testHomePageListboxTranslation</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html>
<head>
<title tal:content="template/title">The title</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Home Page Listbox Translation</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/init" />
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/cleanup_module" />
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/create_data" />
<tr>
<td>open</td>
<td>${base_url}/web_site_module/erp5_officejs_support_request_ui/fr/</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Submit New Support Request']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class="document_table"]//tr/td[1]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//h1</td>
<td>glob:Modifications récentes*</td>
</tr>
<!-- listbox title -->
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[1]</td>
<td>Titre</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[2]</td>
<td>Référence</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[3]</td>
<td>Type de la demande d'assistance</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[4]</td>
<td>Demandé par</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[5]</td>
<td>Date du commentaire</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[6]</td>
<td>Auteur du commentaire</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[7]</td>
<td>Date de début</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//thead/tr/th[8]</td>
<td>État</td>
</tr>
<!-- listbox content -->
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[1]</td>
<td>Yesterday - PlaneMaking - Open</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[2]</td>
<td>glob:SR*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[3]</td>
<td>Rapport d'anomalie</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[4]</td>
<td></td>
</tr>
<!-- this is a date relative to now, so we can not really test this part -->
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[5]</td>
<td>glob:*20*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[6]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[7]</td>
<td>glob:*20*</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[@class="document_table"]//tr/td[8]</td>
<td>Ouvert</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testHomePagePanelTranslation</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html>
<head>
<title tal:content="template/title">The title</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Home Page Panel Translation</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/init" />
<tr>
<td>open</td>
<td>${base_url}/web_site_module/erp5_officejs_support_request_ui/fr/</td>
<td></td>
</tr>
<!-- hack to display Views&Decisions on panel for small screen-->
<tr>
<td>getEval</td>
<td>window.matchMedia = function () {return {matches:true}}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Submit New Support Request']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@class, "panel")]//a</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-home")]</td>
<td>Accueil</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-life-ring")]</td>
<td>Demandes d'assistance</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-sliders")]</td>
<td>Préférences</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-power-off")]</td>
<td>Déconnexion</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-eye")]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-eye")]</td>
<td>Vues</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-cogs")]</td>
<td>Décisions</td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testSupportRequestPanelTranslation</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<html>
<head>
<title tal:content="template/title">Support Request Panel Translation</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Support Request Panel Translation</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/init" />
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/cleanup_module" />
<tal:block metal:use-macro="here/Zuite_SupportRequestUITemplate/macros/create_data" />
<tr>
<td>open</td>
<td>${base_url}/web_site_module/erp5_officejs_support_request_ui/fr/</td>
<td></td>
</tr>
<!-- hack to display Views&Decisions on panel for small screen-->
<tr>
<td>getEval</td>
<td>window.matchMedia = function () {return {matches:true}}</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@data-i18n='[value]Submit New Support Request']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class="document_table"]//tr/td[1]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@class="document_table"]//tr/td[1]/a</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-home")]</td>
<td>Accueil</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-life-ring")]</td>
<td>Demandes d'assistance</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-sliders")]</td>
<td>Préférences</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//a[contains(@class, "ui-icon-power-off")]</td>
<td>Déconnexion</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-eye")]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-eye")]</td>
<td>Vues</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dl/dd[1]</td>
<td>Général</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dl/dd[2]</td>
<td>Historique</td>
</tr>
<tr>
<td>assertText</td>
<td>//div[contains(@class, "panel")]//dt[contains(@class, "ui-icon-cogs")]</td>
<td>Décisions</td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//div[contains(@class, "panel")]//dl/dd/a[text() = "Clôturer le ticket"]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -52,6 +52,27 @@
</tuple>
</value>
</item>
<item>
<key> <string>__translation_dict</string> </key>
<value>
<dictionary>
<item>
<key>
<tuple>
<string>title</string>
<string>fr</string>
</tuple>
</key>
<value>
<tuple>
<string>BugReport</string>
<string>Rapport d\'anomalie</string>
</tuple>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
......
......@@ -6,6 +6,7 @@ included in business template.
display statistics about recent support requests (like "less than 2 days from now"),
we need to generate support requests at a date relative from now.
"""
import time
from DateTime import DateTime
from datetime import timedelta
......@@ -25,30 +26,38 @@ portal.support_request_module.newContent(
portal_type='Support Request',
title="Two Weeks ago - PlaneMaking - Submitted",
start_date=DateTime(now - timedelta(days=15)),
resource_value=portal.service_module.erp5_officejs_support_request_ui_test_service_001,
source_project_value=portal.project_module.erp5_officejs_support_request_ui_test_project_001,
).submit()
portal.support_request_module.newContent(
portal_type='Support Request',
title="Last Week 2 - RobotMaking - Open",
start_date=DateTime(now - timedelta(days=5)),
resource_value=portal.service_module.erp5_officejs_support_request_ui_test_service_001,
source_project_value=portal.project_module.erp5_officejs_support_request_ui_test_project_001,
).validate()
portal.support_request_module.newContent(
portal_type='Support Request',
title="Last Week - RobotMaking - Open",
start_date=DateTime(now - timedelta(days=4)),
resource_value=portal.service_module.erp5_officejs_support_request_ui_test_service_001,
source_project_value=portal.project_module.erp5_officejs_support_request_ui_test_project_001,
).validate()
portal.support_request_module.newContent(
portal_type='Support Request',
title="Yesterday - RobotMaking - Submitted",
start_date=DateTime(now - timedelta(days=1)),
resource_value=portal.service_module.erp5_officejs_support_request_ui_test_service_001,
source_project_value=portal.project_module.erp5_officejs_support_request_ui_test_project_001,
).submit()
# sleep a bit to make sure "Yesterday - PlaneMaking - Open" is the most recent, some tests asserts
# the listbox sorted by modification date
time.sleep(1)
portal.support_request_module.newContent(
portal_type='Support Request',
title="Yesterday - PlaneMaking - Open",
start_date=DateTime(now - timedelta(days=1)),
resource_value=portal.service_module.erp5_officejs_support_request_ui_test_service_001,
source_project_value=portal.project_module.erp5_officejs_support_request_ui_test_project_001,
).validate()
......
......@@ -30,4 +30,10 @@ from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctiona
class TestSupportRequestUI(ERP5TypeFunctionalTestCase):
run_only = "officejs_support_request_ui_zuite"
def afterSetUp(self):
super(TestSupportRequestUI, self).afterSetUp()
# fix consistency to update translation
self.portal.web_site_module.erp5_officejs_support_request_ui.fixConsistency()
self.tic()
del ERP5TypeFunctionalTestCase
\ No newline at end of file
......@@ -3,3 +3,5 @@ erp5_ui_test
erp5_web_renderjs_ui
erp5_officejs_support_request_ui
erp5_web_renderjs_ui_test
erp5_content_translation
erp5_l10n_fr
\ No newline at end of file
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