2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support new plural keys format.

All the old plural phrases were changed to work with the new format.
This commit is contained in:
John Preston
2017-06-02 14:46:02 +03:00
parent b6046d829f
commit 85e6f55536
27 changed files with 593 additions and 298 deletions

View File

@@ -86,7 +86,11 @@ void LanguageBox::Inner::languageChanged(int languageIndex) {
activateCurrent();
auto languageId = (*_languages)[languageIndex].id;
Lang::CurrentCloudManager().switchToLanguage(languageId);
if (Lang::Current().id() != languageId) {
// "custom" is applied each time it is passed to switchToLanguage().
// So we check that the language really has changed.
Lang::CurrentCloudManager().switchToLanguage(languageId);
}
}
void LanguageBox::Inner::activateCurrent() {