summaryrefslogtreecommitdiff
path: root/addons/payment/static/src
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-07-23 09:55:56 +0200
committerMartin Trigaux <mat@odoo.com>2019-07-23 13:41:00 +0200
commite266c7c98a6a4b89c13eb7eb38709cc0251ea47f (patch)
tree1b27ca28cac9f1d8577ae2bf14d0682e8920f05f /addons/payment/static/src
parent5c705c51cd8377b1c6e1bb2513db34afe48189ee (diff)
parent5e4c1b370123dee4e6d6a91cd9582ba41c4d8bd4 (diff)
[MERGE] Forward port of 12.0 to saas-12.2 up to 5e4c1b370123dee
Diffstat (limited to 'addons/payment/static/src')
-rw-r--r--addons/payment/static/src/js/payment_translations.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/payment/static/src/js/payment_translations.js b/addons/payment/static/src/js/payment_translations.js
new file mode 100644
index 00000000000..199dcc2a276
--- /dev/null
+++ b/addons/payment/static/src/js/payment_translations.js
@@ -0,0 +1,10 @@
+// TODO Remove me >=saas-12.5, this is a disgrace
+// This is an hack to get the string_true and hover_false options translated on
+// the boolean_button terminology widget. The terms are translated through
+// _t(opt_terms.string_true) which will only work if the terms are already
+// present in the translation map.
+// This code does nothing but marks the strings as translatable
+var _t = function(x) { return x; };
+
+_t("Published");
+_t("Publish");