Dummy string to better work with JSON locales

This commit is contained in:
Eric Kotato 2020-07-08 08:44:03 +03:00
parent b7a483fc53
commit 5928853923
6 changed files with 24 additions and 5 deletions

View file

@ -164,5 +164,8 @@
"ktg_admin_log_banned_send_stickers": "Send stickers",
"ktg_admin_log_banned_send_gif": "Send GIFs",
"ktg_admin_log_banned_send_games": "Send games",
"ktg_admin_log_banned_use_inline": "Use inline bots"
"ktg_admin_log_banned_use_inline": "Use inline bots",
// This string should always be last for better work with Git.
"dummy_last_string": ""
}

View file

@ -172,5 +172,8 @@
"ktg_admin_log_banned_send_stickers": "Wyślij naklejki",
"ktg_admin_log_banned_send_gif": "Wyślij GIFy",
"ktg_admin_log_banned_send_games": "Wyślij gry",
"ktg_admin_log_banned_use_inline": "Użyj bota liniowego (inline)"
"ktg_admin_log_banned_use_inline": "Użyj bota liniowego (inline)",
// This string should always be last for better work with Git.
"dummy_last_string": ""
}

View file

@ -171,5 +171,8 @@
"ktg_admin_log_banned_send_stickers": "Отправка стикеров",
"ktg_admin_log_banned_send_gif": "Отправка GIF",
"ktg_admin_log_banned_send_games": "Отправка игр",
"ktg_admin_log_banned_use_inline": "Отправка через ботов"
"ktg_admin_log_banned_use_inline": "Отправка через ботов",
// This string should always be last for better work with Git.
"dummy_last_string": ""
}

View file

@ -164,5 +164,8 @@
"ktg_admin_log_banned_send_stickers": "Etiket Gönder",
"ktg_admin_log_banned_send_gif": "GIF'ler Gönder",
"ktg_admin_log_banned_send_games": "Oyunlar Gönder",
"ktg_admin_log_banned_use_inline": "İnline Bot'lar Kullan"
"ktg_admin_log_banned_use_inline": "İnline Bot'lar Kullan",
// This string should always be last for better work with Git.
"dummy_last_string": ""
}

View file

@ -171,5 +171,8 @@
"ktg_admin_log_banned_send_stickers": "Надсилати наліпки",
"ktg_admin_log_banned_send_gif": "Надсилати GIF",
"ktg_admin_log_banned_send_games": "Надсилати ігри",
"ktg_admin_log_banned_use_inline": "Використання інлайн-ботів"
"ktg_admin_log_banned_use_inline": "Використання інлайн-ботів",
// This string should always be last for better work with Git.
"dummy_last_string": ""
}

View file

@ -634,6 +634,10 @@ void Instance::loadFromJson(const QString &filename) {
for (auto i = keyList.constBegin(), e = keyList.constEnd(); i != e; ++i) {
const auto key = *i;
if (key.startsWith("dummy_")) {
continue;
}
const auto value = langKeys.constFind(key);
if ((*value).isString()) {