Convert strings to translated versions to be ready to use everything in Spanish!

This commit is contained in:
2018-11-27 10:45:50 -03:00
parent 418fc04eb1
commit 82451218be
3 changed files with 13 additions and 4 deletions
@@ -53,7 +53,7 @@ export default Component.extend({
let hbc = this.get('upper_bound_candidate');
if (hbc < lbc) {
this.set('error', `lower limit (${lbc}) cannot be greater than the upper limit (${hbc}).`);
this.set('error', t('number.range.lower_larger_than_upper_error', {lower: lbc, upper: hbc}));
console.log(this.error);
} else {
this.set('lower_bound', lbc || '');
@@ -2,15 +2,18 @@ ui-dropdown class='left basic labeled top left pointing icon select-number' acti
= filter_text
.menu
.item class='number-range-container'
'Between
= t 'number.range.between'
'
.ui.input.select-number= input type='number' value=lower_bound_candidate enter=(action 'set_filter')
' and
'
= t 'general.and'
'
.ui.input.select-number= input type='number' value=upper_bound_candidate enter=(action 'set_filter')
if error
br
.ui.pointing.red.basic.label {{error}}
.item
ui-checkbox class='item' checked=inclusive label='inclusive' onChange=(action 'toggle_inclusive' option)
ui-checkbox class='item' checked=inclusive label=(t 'number.range.inclusive') onChange=(action 'toggle_inclusive' option)
.divider
.options-container
+6
View File
@@ -17,6 +17,7 @@ window.$translations =
close: 'Close'
clear: 'Clear'
apply: 'Apply'
and: 'and'
confirm:
cancel: 'Cancel'
confirm: 'Yes'
@@ -62,3 +63,8 @@ window.$translations =
friday: 'Vrijdag'
saturday: 'Zaterdag'
sunday: 'Zondag'
number:
range:
between: 'Between'
inclusive: 'inclusive'
lower_larger_than_upper_error: 'lower limit (%{lower}) cannot be greater than the upper limit (%{upper}).'