summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-01-15 14:31:17 +0100
committerMartin Trigaux <mat@odoo.com>2016-01-15 14:31:27 +0100
commitfba324fe5e9096294f67d8c6457d3d48ff9ffbc0 (patch)
tree9d3fa53eff0bd821ac2d4636000e21f97b2a62e1 /addons/web/static/src
parentd54644fcd48be282673cd11bf68436c04d9a6393 (diff)
[FIX] web: untranslatable string in FieldCharDomain
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/form_widgets.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js
index 4d39d8df806..0f89396eed2 100644
--- a/addons/web/static/src/js/views/form_widgets.js
+++ b/addons/web/static/src/js/views/form_widgets.js
@@ -439,12 +439,12 @@ var FieldCharDomain = common.AbstractField.extend(common.ReinitializeFieldMixin,
var domain = pyeval.eval('domain', this.get('value'));
var ds = new data.DataSetStatic(self, model, self.build_context());
ds.call('search_count', [domain]).then(function (results) {
- self.$('.o_count').text(results + ' selected records');
+ self.$('.o_count').text(results + _t(' selected records'));
if (self.get('effective_readonly')) {
- self.$('button').text('See selection ');
+ self.$('button').text(_t('See selection '));
}
else {
- self.$('button').text('Change selection ');
+ self.$('button').text(_t('Change selection '));
}
self.$('button').append($("<span/>").addClass('fa fa-arrow-right'));
});
@@ -453,9 +453,9 @@ var FieldCharDomain = common.AbstractField.extend(common.ReinitializeFieldMixin,
this.$('.o_debug_input').val(this.get('value'));
}
} else {
- this.$('.o_count').text('No selected record');
+ this.$('.o_count').text(_t('No selected record'));
var $arrow = this.$('button span').detach();
- this.$('button').text('Select records ').append($("<span/>").addClass('fa fa-arrow-right'));
+ this.$('button').text(_('Select records ')).append($("<span/>").addClass('fa fa-arrow-right'));
}
},
on_click: function(event) {
@@ -465,7 +465,7 @@ var FieldCharDomain = common.AbstractField.extend(common.ReinitializeFieldMixin,
var dialog = new common.DomainEditorDialog(this, {
res_model: this.options.model || this.field_manager.get_field_value(this.options.model_field),
default_domain: this.get('value'),
- title: this.get('effective_readonly') ? 'Selected records' : 'Select records...',
+ title: this.get('effective_readonly') ? _t('Selected records') : _t('Select records...'),
readonly: this.get('effective_readonly'),
disable_multiple_selection: this.get('effective_readonly'),
no_create: this.get('effective_readonly'),