Commit 151c550b authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Remove text hardcoded

parent 5d5d6df2
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
len = gadget.state.page_count, len = gadget.state.page_count,
thumbnail_dom_list = []; thumbnail_dom_list = [];
return gadget.getTranslationList(["Page", "New Page"]) return gadget.getTranslationList(["New Page"])
.push(function (result_list) { .push(function (result_list) {
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
// XXX TODO display a loader when saving // XXX TODO display a loader when saving
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
} }
} }
thumbnail_dom_list.push(domsugar('button', {type: 'button', thumbnail_dom_list.push(domsugar('button', {type: 'button',
text: 'New Page', text: result_list[0],
// Do not allow to show again the current image // Do not allow to show again the current image
disabled: (len === gadget.state.page - 1), disabled: (len === gadget.state.page - 1),
"class": 'new-btn ui-btn-icon-left ui-icon-plus' "class": 'new-btn ui-btn-icon-left ui-icon-plus'
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
video.play(); video.play();
return RSVP.all([ return RSVP.all([
getVideoDeviceList(), getVideoDeviceList(),
gadget.getTranslationList(["Capture", "Change Camera"]), gadget.getTranslationList(["Capture", "Change Camera", "Page"]),
buildPreviousThumbnailDom(gadget) buildPreviousThumbnailDom(gadget)
]); ]);
}) })
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
div = domsugar('div', {'class': 'camera'}, [ div = domsugar('div', {'class': 'camera'}, [
domsugar('div', {'class': 'camera-header'}, [ domsugar('div', {'class': 'camera-header'}, [
domsugar('h4', [ domsugar('h4', [
'Page ', result_list[1][2] + ' ',
domsugar('label', {'class': 'page-number', text: gadget.state.page}) domsugar('label', {'class': 'page-number', text: gadget.state.page})
]) ])
]), ]),
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
compression = settings.compression || 1; compression = settings.compression || 1;
return RSVP.all([ return RSVP.all([
gadget.getTranslationList(["Delete", "Save"]), gadget.getTranslationList(["Delete", "Save", "Page"]),
new Promise(function (resolve) { new Promise(function (resolve) {
resolve(canvas.toDataURL("image/jpeg", compression)); resolve(canvas.toDataURL("image/jpeg", compression));
}), }),
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
div = domsugar('div', {'class': 'camera'}, [ div = domsugar('div', {'class': 'camera'}, [
domsugar('div', {'class': 'camera-header'}, [ domsugar('div', {'class': 'camera-header'}, [
domsugar('h4', [ domsugar('h4', [
'Page ', result_list[1][2] + ' ',
domsugar('label', {'class': 'page-number', text: gadget.state.page}) domsugar('label', {'class': 'page-number', text: gadget.state.page})
]) ])
]), ]),
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getTranslationList(["Delete", "Save"]), gadget.getTranslationList(["Delete", "Save", "Page"]),
buildPreviousThumbnailDom(gadget) buildPreviousThumbnailDom(gadget)
]); ]);
}) })
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
div = domsugar('div', {'class': 'camera'}, [ div = domsugar('div', {'class': 'camera'}, [
domsugar('div', {'class': 'camera-header'}, [ domsugar('div', {'class': 'camera-header'}, [
domsugar('h4', [ domsugar('h4', [
'Page ', result_list[1][2] + ' ',
domsugar('label', {'class': 'page-number', text: gadget.state.page + 1}) domsugar('label', {'class': 'page-number', text: gadget.state.page + 1})
]) ])
]), ]),
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.63922.15665.61934</string> </value> <value> <string>981.64060.41741.63436</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1582227272.07</float> <float>1582233476.03</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