From a386c83d8e5275234cbeac2febb60976950e90cd Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Tue, 27 Oct 2015 08:54:06 +0000
Subject: [PATCH] [erp5_web_renderjs_ui] Move translation gadget from officejs
 bt5

---
 .../rjs_gadget_translation_data_js.xml}       | 125 +-----------------
 .../rjs_gadget_translation_html.xml}          |  18 +--
 .../rjs_gadget_translation_js.xml}            |  14 +-
 .../web_site_module/renderjs_runner.xml       |   6 +-
 4 files changed, 26 insertions(+), 137 deletions(-)
 rename bt5/{erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_data_js.xml => erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_data_js.xml} (69%)
 rename bt5/{erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_html.xml => erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_html.xml} (94%)
 rename bt5/{erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_js.xml => erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml} (96%)

diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_data_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_data_js.xml
similarity index 69%
rename from bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_data_js.xml
rename to bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_data_js.xml
index 76e42920b6..87e522b14f 100644
--- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_data_js.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_data_js.xml
@@ -71,7 +71,7 @@
         </item>
         <item>
             <key> <string>default_reference</string> </key>
-            <value> <string>gadget_officejs_translation_data.js</string> </value>
+            <value> <string>gadget_translation_data.js</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -81,7 +81,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>gadget_officejs_translation_data_js</string> </value>
+            <value> <string>rjs_gadget_translation_data_js</string> </value>
         </item>
         <item>
             <key> <string>language</string> </key>
@@ -107,126 +107,15 @@
   "use strict";\n
 \n
   window.translation_data = {\n
-    zh: {\n
-      "Product title or Reference": "产品名称或编号",\n
-      "Supplier title or Reference": "供货商名称或编号",\n
-      "Price": "单价",\n
-      "Currency": "货币",\n
-      "Quantity": "数量",\n
-      "Quantity Unit": "数量单位",\n
-      "Start Date": "开始日期",\n
-      "State": "状态",\n
-      "Description": "描述",\n
-      "Comment": "备注",\n
-      "Title": "名称",\n
-      "Product Line": "产品线",\n
-      "Article Nb": "项目编号",\n
-      "Supplier title": "供应商名称",\n
-      "Default Telephone": "默认电话",\n
-      "Default Address City": "默认地址城市",\n
-      "Region": "地区",\n
-      "Street Address": "街道地址",\n
-      "Postal Code": "邮编",\n
-      "Email": "邮箱",\n
-      "Add": "添加",\n
-      "New": "新建",\n
-      "Purchase Price": "采购价格",\n
-      "New Purchase Price": "新采购价格",\n
-      "Menu": "菜单",\n
-      "Purchase": "采购",\n
-      "Inventory": "库存",\n
-      "Production": "生产",\n
-      "Sales": "销售",\n
-      "Products": "产品",\n
-      "Suppliers": "供应商",\n
-      "Sync": "同步",\n
-      "Logout": "登出",\n
-      "Launch": "启动",\n
-      "Confirm": "确认",\n
-      "Purchase price of a specific product from a specific supplier":\n
-        "某一供应商提供的某一产品的采购价格",\n
-      "Reference": "编号",\n
-      "Telephone": "电话",\n
-      "Purchase Prices": "采购价格",\n
-      "Product title": "产品名称",\n
-      "Supplier": "供应商",\n
-      "Product": "产品",\n
-      "Loading": "加载",\n
-      "Synchronize": "同步",\n
-      "Log In": "登录",\n
-      "Login": "登录",\n
-      "Password": "密码",\n
-      // validated = trade condition approved\n
-      "validated": "已验证",\n
-      // invalidated = trade condition rejected\n
-      "invalidated": "无效",\n
-      "Not synced!": "未同步",\n
-      "Waiting for approval": "等待审核"\n
-    },\n
     en: {\n
-      "Product title or Reference": "Product title or Reference",\n
-      "Supplier title or Reference": "Supplier title or Reference",\n
-      "Price": "Price",\n
-      "Currency": "Currency",\n
-      "Quantity": "Quantity",\n
-      "Quantity Unit": "Quantity Unit",\n
-      "Start Date": "Start Date",\n
-      "State": "State",\n
-      "Description": "Description",\n
-      "Comment": "Comment",\n
-      "Title": "Title",\n
-      "Product Line": "Product Line",\n
-      "Article Nb": "Article Nb",\n
-      "Supplier title": "Supplier title",\n
-      "Default Telephone": "Default Telephone",\n
-      "Default Address City": "Default Address City",\n
-      "Region": "Region",\n
-      "Street Address": "Street Address",\n
-      "Postal Code": "Postal Code",\n
-      "Email": "Email",\n
-      "Add": "Add",\n
-      "New": "New",\n
-      "Purchase Price": "Purchase Price",\n
-      "New Purchase Price": "New Purchase Price",\n
-      "Menu": "Menu",\n
-      "Purchase": "Purchase",\n
-      "Inventory": "Inventory",\n
-      "Production": "Production",\n
-      "Sales": "Sales",\n
-      "Products": "Products",\n
-      "Suppliers": "Suppliers",\n
-      "Sync": "Sync",\n
-      "Logout": "Logout",\n
-      "Launch": "Launch",\n
-      "Confirm": "Confirm",\n
-      "Purchase price of a specific product from a specific supplier":\n
-        "Purchase price of a specific product from a specific supplier",\n
-      "Reference": "Reference",\n
-      "Telephone": "Telephone",\n
-      "Purchase Prices": "Purchase Prices",\n
-      "Product title": "Product title",\n
-      "Supplier": "Supplier",\n
-      "Product": "Product",\n
-      "Loading": "Loading",\n
-      "Synchronize": "Synchronize",\n
-      "Log In": "Log In",\n
-      "Login": "Login",\n
-      "Password": "Password",\n
-      // validated = trade condition approved\n
-      "validated": "validated",\n
-      // invalidated = trade condition rejected\n
-      "invalidated": "invalidated",\n
-      "Not synced!": "Not synced!",\n
-      "Waiting for approval": "Waiting for approval"\n
     }\n
-\n
   };\n
 \n
 }(window));</string> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>OfficeJS Translation Data JS</string> </value>
+            <value> <string>Gadget Translation Data JS</string> </value>
         </item>
         <item>
             <key> <string>version</string> </key>
@@ -345,7 +234,7 @@
             </item>
             <item>
                 <key> <string>actor</string> </key>
-                <value> <string>cedric.le.ninivin</string> </value>
+                <value> <string>romain</string> </value>
             </item>
             <item>
                 <key> <string>comment</string> </key>
@@ -359,7 +248,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>944.43485.22470.14216</string> </value>
+                <value> <string>946.45868.14105.29764</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -377,8 +266,8 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1440436932.68</float>
-                        <string>UTC</string>
+                        <float>1445935505.72</float>
+                        <string>GMT</string>
                       </tuple>
                     </state>
                   </object>
diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_html.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_html.xml
similarity index 94%
rename from bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_html.xml
rename to bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_html.xml
index ec1757f45e..8dc77fa225 100644
--- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_html.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_html.xml
@@ -75,7 +75,7 @@
         </item>
         <item>
             <key> <string>default_reference</string> </key>
-            <value> <string>gadget_officejs_translation.html</string> </value>
+            <value> <string>gadget_translation.html</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -85,7 +85,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>gadget_officejs_translation_html</string> </value>
+            <value> <string>rjs_gadget_translation_html</string> </value>
         </item>
         <item>
             <key> <string>language</string> </key>
@@ -120,8 +120,8 @@
 \n
     <script src="i18next.js"></script>\n
     <!-- custom script -->\n
-    <script src="gadget_officejs_translation_data.js" type="text/javascript"></script>\n
-    <script src="gadget_officejs_translation.js" type="text/javascript"></script>\n
+    <script src="gadget_translation_data.js" type="text/javascript"></script>\n
+    <script src="gadget_translation.js" type="text/javascript"></script>\n
 \n
     </head>\n
   <body>\n
@@ -133,7 +133,7 @@
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>OfficeJS Translation</string> </value>
+            <value> <string>Gadget Translation</string> </value>
         </item>
         <item>
             <key> <string>version</string> </key>
@@ -252,7 +252,7 @@
             </item>
             <item>
                 <key> <string>actor</string> </key>
-                <value> <string>cedric.le.ninivin</string> </value>
+                <value> <string>romain</string> </value>
             </item>
             <item>
                 <key> <string>comment</string> </key>
@@ -266,7 +266,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>945.18322.40087.29883</string> </value>
+                <value> <string>945.43799.10287.64221</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -284,8 +284,8 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1440439674.63</float>
-                        <string>UTC</string>
+                        <float>1445935119.77</float>
+                        <string>GMT</string>
                       </tuple>
                     </state>
                   </object>
diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml
similarity index 96%
rename from bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_js.xml
rename to bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml
index 04831b3775..fddc6a6095 100644
--- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_translation_js.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_translation_js.xml
@@ -71,7 +71,7 @@
         </item>
         <item>
             <key> <string>default_reference</string> </key>
-            <value> <string>gadget_officejs_translation.js</string> </value>
+            <value> <string>gadget_translation.js</string> </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -81,7 +81,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>gadget_officejs_translation_js</string> </value>
+            <value> <string>rjs_gadget_translation_js</string> </value>
         </item>
         <item>
             <key> <string>language</string> </key>
@@ -222,7 +222,7 @@
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value> <string>OfficeJS Translation JS</string> </value>
+            <value> <string>Gadget Translation JS</string> </value>
         </item>
         <item>
             <key> <string>version</string> </key>
@@ -341,7 +341,7 @@
             </item>
             <item>
                 <key> <string>actor</string> </key>
-                <value> <string>cedric.le.ninivin</string> </value>
+                <value> <string>romain</string> </value>
             </item>
             <item>
                 <key> <string>comment</string> </key>
@@ -355,7 +355,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>944.43480.63566.24541</string> </value>
+                <value> <string>946.45862.6528.13858</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -373,8 +373,8 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1440436943.59</float>
-                        <string>UTC</string>
+                        <float>1445935096.31</float>
+                        <string>GMT</string>
                       </tuple>
                     </state>
                   </object>
diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_site_module/renderjs_runner.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_site_module/renderjs_runner.xml
index 7acf962ca9..d27530cfe4 100644
--- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_site_module/renderjs_runner.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_site_module/renderjs_runner.xml
@@ -305,7 +305,7 @@
         </item>
         <item>
             <key> <string>configuration_translation_gadget_url</string> </key>
-            <value> <string>gadget_officejs_translation.html</string> </value>
+            <value> <string>gadget_translation.html</string> </value>
         </item>
         <item>
             <key> <string>configuration_view_action_category</string> </key>
@@ -540,7 +540,7 @@
             </item>
             <item>
                 <key> <string>serial</string> </key>
-                <value> <string>945.49899.34411.54152</string> </value>
+                <value> <string>946.38651.7361.44032</string> </value>
             </item>
             <item>
                 <key> <string>state</string> </key>
@@ -558,7 +558,7 @@
                     </tuple>
                     <state>
                       <tuple>
-                        <float>1444639310.19</float>
+                        <float>1445934915.63</float>
                         <string>GMT</string>
                       </tuple>
                     </state>
-- 
2.30.9