parent
cd428678f7
commit
ac823079ac
|
@ -260,6 +260,7 @@ proc load*(self: AppController) =
|
|||
singletonInstance.engine.setRootContextProperty("localAccountSensitiveSettings", self.localAccountSensitiveSettingsVariant)
|
||||
#################################################
|
||||
|
||||
self.languageService.init()
|
||||
self.settingService.init()
|
||||
self.contactsService.init()
|
||||
self.chatService.init()
|
||||
|
|
|
@ -21,8 +21,6 @@ proc newService*(): Service =
|
|||
|
||||
method init*(self: Service) =
|
||||
try:
|
||||
echo "init"
|
||||
|
||||
self.i18nPath = ""
|
||||
if defined(development):
|
||||
self.i18nPath = joinPath(getAppDir(), "../ui/i18n")
|
||||
|
@ -39,8 +37,6 @@ method init*(self: Service) =
|
|||
return
|
||||
|
||||
method setLanguage*(self: Service, locale: string) =
|
||||
echo "---------------"
|
||||
echo "--- setting language"
|
||||
if (locale == self.currentLanguageCode):
|
||||
return
|
||||
self.currentLanguageCode = locale
|
||||
|
|
|
@ -279,6 +279,7 @@ QtObject {
|
|||
}
|
||||
|
||||
function changeLocale(l) {
|
||||
localAppSettings.locale = l
|
||||
languageModuleInst.changeLocale(l)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue