Finalized localization issues

This commit is contained in:
Anders Mörtsell 2019-08-24 22:18:29 +02:00
parent bb42cdbb0c
commit 5fc7a8b3a4
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={[
@ -521,9 +521,9 @@ export class EventRecurrenceInfoMonthly extends React.Component<IEventRecurrence
disabled={!this.state.disableDayOfMonth} disabled={!this.state.disableDayOfMonth}
options={[ options={[
{ key: 'first', text: strings.firstLabel }, { key: 'first', text: strings.firstLabel },
{ key: 'second', text:strings.secondLabel}, { key: 'second', text: strings.secondLabel},
{ key: 'third', text: strings.thirdLabel }, { key: 'third', text: strings.thirdLabel },
{ key: 'fourth', text:strings.fourthLabel }, { key: 'fourth', text: strings.fourthLabel },
{ key: 'last', text: strings.lastLabel }, { key: 'last', text: strings.lastLabel },
]} ]}

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"
} }
}); });