2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Replace MetaLang with codegen_lang.

This commit is contained in:
John Preston
2017-04-12 22:17:55 +03:00
parent 1725927aea
commit 7dd24a30b5
25 changed files with 1276 additions and 1046 deletions

View File

@@ -386,7 +386,8 @@ void Messenger::loadLanguage() {
LOG(("Lang load warnings: %1").arg(loader.warnings()));
}
}
QCoreApplication::instance()->installTranslator(_translator = new Translator());
_translator = std::make_unique<Translator>();
QCoreApplication::instance()->installTranslator(_translator.get());
}
void Messenger::startLocalStorage() {
@@ -751,7 +752,6 @@ Messenger::~Messenger() {
deinitLocationManager();
delete base::take(_uploader);
delete base::take(_translator);
Window::Theme::Unload();