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
*/
private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption):void {
this.setState({selectedWeekOrderMonth: item.text});
this.setState({selectedWeekOrderMonth: item.key.toString()});
this.applyRecurrence();
}
@ -472,7 +472,7 @@ export class EventRecurrenceInfoMonthly extends React.Component<IEventRecurrence
</div>
<div style={{ width: '100%', paddingTop: '10px' }}>
<Label>Patern</Label>
<Label>{ strings.patternLabel }</Label>
<ChoiceGroup
selectedKey={this.state.selectPatern}
options={[
@ -521,9 +521,9 @@ export class EventRecurrenceInfoMonthly extends React.Component<IEventRecurrence
disabled={!this.state.disableDayOfMonth}
options={[
{ key: 'first', text: strings.firstLabel },
{ key: 'second', text:strings.secondLabel},
{ key: 'second', text: strings.secondLabel},
{ key: 'third', text: strings.thirdLabel },
{ key: 'fourth', text:strings.fourthLabel },
{ key: 'fourth', text: strings.fourthLabel },
{ key: 'last', text: strings.lastLabel },
]}

View File

@ -207,7 +207,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
* @memberof EventRecurrenceInfoYearly
*/
private onWeekOrderMonthChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void {
this.setState({ selectedWeekOrderMonth: item.text });
this.setState({ selectedWeekOrderMonth: item.key.toString() });
this.applyRecurrence();
}
@ -232,7 +232,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
* @memberof EventRecurrenceInfoYearly
*/
private onSelectedWeekDayChange(ev: React.FormEvent<HTMLDivElement>, item: IDropdownOption): void {
this.setState({ selectedWeekDay: item.text });
this.setState({ selectedWeekDay: item.key.toString() });
this.applyRecurrence();
}
@ -526,7 +526,7 @@ export class EventRecurrenceInfoYearly extends React.Component<IEventRecurrenceI
]}
/>
</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' }}>
<Dropdown
selectedKey={this.state.selectedYearlyByDayMonth}

View File

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

View File

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

View File

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