[FilterBox] Make filterbox localizable (#4466)

* Make filterbox i18n

* Change double-quote to single-quote in localization function t() to pass
lint test

* Updated .po file with italian translation. New strings generated and translated via babel-extract
This commit is contained in:
Raffaele Spangaro 2018-02-25 23:58:14 +01:00 committed by Maxime Beauchemin
parent e112e4417c
commit 094eb71f86
4 changed files with 2156 additions and 1041 deletions

View File

@ -111,8 +111,8 @@ class FilterBox extends React.Component {
<div className="col-lg-6 col-xs-12">
<DateFilterControl
name={since}
label="Since"
description="Select starting date"
label={t('Since')}
description={t('Select starting date')}
onChange={this.changeFilter.bind(this, since)}
value={this.state.selectedValues[since]}
/>
@ -120,8 +120,8 @@ class FilterBox extends React.Component {
<div className="col-lg-6 col-xs-12">
<DateFilterControl
name={until}
label="Until"
description="Select end date"
label={t('Until')}
description={t('Select end date')}
onChange={this.changeFilter.bind(this, until)}
value={this.state.selectedValues[until]}
/>
@ -227,7 +227,7 @@ class FilterBox extends React.Component {
onClick={this.clickApply.bind(this)}
disabled={!this.state.hasChanged}
>
Apply
{t('Apply')}
</Button>
}
</div>

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff