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
*/
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={[

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