Commit 4aaaff41 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: display language list when availables languages. are set

parent 009dcac9
...@@ -154,9 +154,10 @@ ...@@ -154,9 +154,10 @@
</h4>\n </h4>\n
<div class="ui-collapsible-content ui-collapsible-content-collapsed" aria-hidden="true">\n <div class="ui-collapsible-content ui-collapsible-content-collapsed" aria-hidden="true">\n
<fieldset data-role="controlgroup">\n <fieldset data-role="controlgroup">\n
{{#each document_list}}\n {{#each language_list}}\n
<form method="POST" action="">\n <form method="POST" action="">\n
<div class="ui-btn ui-input-btn ui-corner-all ui-shadow ui-btn-icon-right ui-icon-carat-r" data-i18n="[node]{{lang}}">\n <div class="ui-btn ui-input-btn ui-corner-all ui-shadow ui-btn-icon-right ui-icon-carat-r" data-i18n="[node]{{lang}}">\n
{{lang}}\n
&nbsp;\n &nbsp;\n
<input type="submit" data-enhanced="true" name="lang" id="lang-{{count}}" value="{{lang}}" />\n <input type="submit" data-enhanced="true" name="lang" id="lang-{{count}}" value="{{lang}}" />\n
</div>\n </div>\n
...@@ -304,7 +305,7 @@ ...@@ -304,7 +305,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -318,7 +319,7 @@ ...@@ -318,7 +319,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>942.20332.24952.65262</string> </value> <value> <string>943.36089.56695.38741</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -336,7 +337,7 @@ ...@@ -336,7 +337,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1429861586.7</float> <float>1433731300.43</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
if (len > 0) {\n if (len > 0) {\n
language_list = [];\n language_list = [];\n
for (i = 0, i_len = len; i < i_len; i += 1) {\n for (i = 0, i_len = len; i < i_len; i += 1) {\n
language_list.push({"count": i, "lang": language_list[i]});\n language_list.push({"count": i, "lang": raw_language_list[i]});\n
}\n }\n
}\n }\n
\n \n
...@@ -193,6 +193,10 @@ ...@@ -193,6 +193,10 @@
"language_list": language_list,\n "language_list": language_list,\n
"logout_href": all_result[3]\n "logout_href": all_result[3]\n
});\n });\n
\n
if (len > 0) {\n
return g.translateHtml(tmp);\n
}\n
return tmp;\n return tmp;\n
})\n })\n
.push(function (my_translated_or_plain_html) {\n .push(function (my_translated_or_plain_html) {\n
...@@ -375,7 +379,7 @@ ...@@ -375,7 +379,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -389,7 +393,7 @@ ...@@ -389,7 +393,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>942.40517.64847.10325</string> </value> <value> <string>943.36081.11434.7048</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -407,7 +411,7 @@ ...@@ -407,7 +411,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1430146351.8</float> <float>1433732853.87</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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