From 17d10e36372b8cbfdc87cd2d3ba4c664384b7701 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Jun 2021 17:03:53 +0530 Subject: [PATCH] add translation annotations --- www/common/common-ui-elements.js | 4 ++-- www/form/inner.js | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index c9a3a3b59..cf23b98a0 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1028,7 +1028,7 @@ define([ }; if (typeof(cfg.embed) === "function") { - actions.embed = { + actions.embed = { // Messages.mdToolbar_embed icon: 'fa-picture-o', action: function () { var _cfg = { @@ -2258,7 +2258,7 @@ define([ // Title //$creation.append(h('h2.cp-creation-title', Messages.newButtonTitle)); - var newPadH3Title = Messages['button_new' + type]; + var newPadH3Title = Messages['button_new' + type]; // Messages.button_newform var title = h('div.cp-creation-title', [ UI.getFileIcon({type: type})[0], diff --git a/www/form/inner.js b/www/form/inner.js index bc3b579bb..0ea4a9367 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -129,6 +129,7 @@ define([ var type, typeSelect; if (opts.type) { + // Messages.form_text_text.form_text_number.form_text_url.form_text_email var options = ['text', 'number', 'url', 'email'].map(function (t) { return { tag: 'a', @@ -214,6 +215,7 @@ define([ var type, typeSelect; if (v.type) { + // Messages.form_poll_text.form_poll_day.form_poll_time var options = ['text', 'day', 'time'].map(function (t) { return { tag: 'a', @@ -910,6 +912,7 @@ define([ }, get: function (opts, a, n, evOnChange) { if (!opts) { opts = TYPES.input.defaultOpts; } + // Messages.form_input_ph_email.form_input_ph_url var tag = h('input', { type: opts.type, placeholder: Messages['form_input_ph_'+opts.type] || '' @@ -1658,6 +1661,8 @@ define([ var print = model.printResults(answers, uid, form); var q = h('div.cp-form-block-question', block.q || Messages.form_default); + +//Messages.form_type_checkbox.form_type_input.form_type_md.form_type_multicheck.form_type_multiradio.form_type_poll.form_type_radio.form_type_sort.form_type_textarea return h('div.cp-form-block', [ h('div.cp-form-block-type', [ TYPES[type].icon.cloneNode(),