Merge pull request #964 from amortsell/language

Finalized localization issues
This commit is contained in:
Laura Kokkarinen 2019-09-03 09:26:20 +03:00 committed by GitHub
commit e7972c0799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 10 deletions

View File

@ -254,7 +254,7 @@ export class EventRecurrenceInfoMonthly extends React.Component<IEventRecurrence
* @memberof EventRecurrenceInfoMonthly * @memberof EventRecurrenceInfoMonthly
*/ */
private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption):void { private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption):void {
this.setState({selectedWeekOrderMonth: item.text}); this.setState({selectedWeekOrderMonth: item.key.toString()});
this.applyRecurrence(); this.applyRecurrence();
} }
@ -472,7 +472,7 @@ export class EventRecurrenceInfoMonthly extends React.Component<IEventRecurrence
</div> </div>
<div style={{ width: '100%', paddingTop: '10px' }}> <div style={{ width: '100%', paddingTop: '10px' }}>
<Label>Patern</Label> <Label>{ strings.patternLabel }</Label>
<ChoiceGroup <ChoiceGroup
selectedKey={this.state.selectPatern} selectedKey={this.state.selectPatern}
options={[ options={[

View File

@ -207,7 +207,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
* @memberof EventRecurrenceInfoYearly * @memberof EventRecurrenceInfoYearly
*/ */
private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void { private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void {
this.setState({ selectedWeekOrderMonth: item.text }); this.setState({ selectedWeekOrderMonth: item.key.toString() });
this.applyRecurrence(); this.applyRecurrence();
} }
@ -232,7 +232,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
* @memberof EventRecurrenceInfoYearly * @memberof EventRecurrenceInfoYearly
*/ */
private onSelectedWeekDayChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void { private onSelectedWeekDayChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void {
this.setState({ selectedWeekDay: item.text }); this.setState({ selectedWeekDay: item.key.toString() });
this.applyRecurrence(); this.applyRecurrence();
} }
@ -526,7 +526,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
]} ]}
/> />
</div> </div>
<Label styles={{ root: { display: 'inline-block', verticalAlign: 'top', width: '30px', paddingLeft: '10px' } }}>of</Label> <Label styles={{ root: { display: 'inline-block', verticalAlign: 'top', width: '30px', paddingLeft: '10px' } }}>{ strings.ofMonthLabel} </Label>
<div style={{ display: 'inline-block', verticalAlign: 'top', width: '100px', paddingLeft: '5px' }}> <div style={{ display: 'inline-block', verticalAlign: 'top', width: '100px', paddingLeft: '5px' }}>
<Dropdown <Dropdown
selectedKey={this.state.selectedYearlyByDayMonth} selectedKey={this.state.selectedYearlyByDayMonth}

View File

@ -1,7 +1,7 @@
define([], function () { define([], function () {
return { return {
WeeksOnLabel: "week(s) on", WeeksOnLabel: "week(s) on",
PaternLabel: "Patern", PaternLabel: "Pattern",
OcurrencesLabel: "Ocurrences", OcurrencesLabel: "Ocurrences",
dateRangeLabel: "Date Range", dateRangeLabel: "Date Range",
weekEndDay: "Weekend Day", weekEndDay: "Weekend Day",
@ -125,6 +125,7 @@ define([], function () {
yearlyLabel: "Yearly", yearlyLabel: "Yearly",
patternLabel: "Pattern", patternLabel: "Pattern",
dateRangeLabel: "Date Range", dateRangeLabel: "Date Range",
occurrencesLabel: "occurrences" occurrencesLabel: "occurrences",
ofMonthLabel: "of"
} }
}); });

View File

@ -126,6 +126,7 @@ declare interface ICalendarWebPartStrings {
patternLabel: string; patternLabel: string;
dateRangeLabel: string; dateRangeLabel: string;
occurrencesLabel: string; occurrencesLabel: string;
ofMonthLabel:string;
} }

View File

@ -125,7 +125,8 @@ define([], function () {
yearlyLabel: "Årligen", yearlyLabel: "Årligen",
patternLabel: "Schema", patternLabel: "Schema",
dateRangeLabel: "Datumintervall", dateRangeLabel: "Datumintervall",
occurrencesLabel: "tillfällen" occurrencesLabel: "tillfällen",
ofMonthLabel: "i"
} }
}); });