Commit 8f49b88f authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_officejs_support_request_ui: translate string used for empty worklists

parent 83a43625
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
{{/each}} {{/each}}
</ul> </ul>
{{else}} {{else}}
<p>All work caught up!</p> <div class="worklist-empty">
<h2 data-i18n="All work caught up!">All work caught up!</h2>
</div>
{{/if}} {{/if}}
</script> </script>
......
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>nicolas</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.24219.1265.43878</string> </value> <value> <string>964.57086.33771.28859</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1506514266.01</float> <float>1522750119.58</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -78,9 +78,12 @@ ...@@ -78,9 +78,12 @@
count: result_list[i][2] count: result_list[i][2]
}); });
} }
gadget.element.querySelector('.document_list').innerHTML = table_template({ return gadget.translateHtml(table_template({
document_list: line_list document_list: line_list
}); }));
})
.push(function (translated_html) {
gadget.element.querySelector('.document_list').innerHTML = translated_html;
}); });
}); });
}(window, rJS, RSVP, Handlebars)); }(window, rJS, RSVP, Handlebars));
\ No newline at end of file
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>nicolas.wavrant</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.26499.5927.24507</string> </value> <value> <string>966.58922.42880.38826</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,8 +252,8 @@ ...@@ -252,8 +252,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1506651141.01</float> <float>1525441951.04</float>
<string>UTC</string> <string>GMT+2</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
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