MOBILE-2430 wiki: Translate string inside the constructor
parent
647f9945a4
commit
482230a472
|
@ -49,7 +49,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
wiki: any; // The wiki instance.
|
wiki: any; // The wiki instance.
|
||||||
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
|
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
|
||||||
canEdit = false; // Whether user can edit the page.
|
canEdit = false; // Whether user can edit the page.
|
||||||
pageStr = this.translate.instant('addon.mod_wiki.page');
|
pageStr = '';
|
||||||
pageWarning: string; // Message telling that the page was discarded.
|
pageWarning: string; // Message telling that the page was discarded.
|
||||||
loadedSubwikis: any[] = []; // The loaded subwikis.
|
loadedSubwikis: any[] = []; // The loaded subwikis.
|
||||||
pageIsOffline: boolean; // Whether the loaded page is an offline page.
|
pageIsOffline: boolean; // Whether the loaded page is an offline page.
|
||||||
|
@ -83,6 +83,8 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
protected navCtrl: NavController, protected utils: CoreUtilsProvider, protected groupsProvider: CoreGroupsProvider,
|
protected navCtrl: NavController, protected utils: CoreUtilsProvider, protected groupsProvider: CoreGroupsProvider,
|
||||||
protected userProvider: CoreUserProvider, private popoverCtrl: PopoverController) {
|
protected userProvider: CoreUserProvider, private popoverCtrl: PopoverController) {
|
||||||
super(injector, content);
|
super(injector, content);
|
||||||
|
|
||||||
|
this.pageStr = this.translate.instant('addon.mod_wiki.page');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue