Commit 0ce1c3e4 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Xiaowu Zhang

erp5_gadget_interface_validator: don't translate at ready step

in ready step, indexeddb storage is not yet create, so translation gadget can't get
language setting
parent abf2b3f8
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
}) })
.ready(function (g) { .declareMethod('render', function () {
var g = this;
return g.translateHtml(panel_template_header() + panel_template_body()) return g.translateHtml(panel_template_header() + panel_template_body())
.push(function (my_translated_or_plain_html) { .push(function (my_translated_or_plain_html) {
g.props.jelement.html(my_translated_or_plain_html); g.props.jelement.html(my_translated_or_plain_html);
...@@ -58,9 +59,7 @@ ...@@ -58,9 +59,7 @@
this.props.jelement.panel("close"); this.props.jelement.panel("close");
}) })
.declareMethod('render', function () {
return;
})
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared services // declared services
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.44742.30838.38775</string> </value> <value> <string>954.32925.58228.494</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1446476219.73</float> <float>1476099637.97</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