MOBILE-2430 wiki: Translate string inside the constructor

main
Pau Ferrer Ocaña 2018-06-20 14:48:32 +02:00
parent 647f9945a4
commit 482230a472
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
wiki: any; // The wiki instance.
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
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.
loadedSubwikis: any[] = []; // The loaded subwikis.
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 userProvider: CoreUserProvider, private popoverCtrl: PopoverController) {
super(injector, content);
this.pageStr = this.translate.instant('addon.mod_wiki.page');
}
/**