Commit fac1553d authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Jérome Perrin

erp5_officejs_support_request_ui: translate string used for empty worklists

parent b632d434
...@@ -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, Query)); }(window, rJS, RSVP, Handlebars, Query));
\ 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>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1506505200.17</float> <float>1506505208.17</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