currency translation
This commit is contained in:
@@ -32,6 +32,17 @@ define('views/settings/fields/currency-list', 'views/fields/multi-enum', functio
|
||||
|
||||
setupOptions: function () {
|
||||
this.params.options = this.getMetadata().get(['app', 'currency', 'list']) || [];
|
||||
|
||||
this.translatedOptions = {};
|
||||
|
||||
this.params.options.forEach(function (item) {
|
||||
var value = item
|
||||
var name = this.getLanguage().get('Currency', 'names', item);
|
||||
if (name) {
|
||||
value += ' - ' + name;
|
||||
}
|
||||
this.translatedOptions[item] = value;
|
||||
}, this);
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user