Skip to content

Commit

Permalink
chore(gui): update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Mar 27, 2024
1 parent e08a1dd commit cfa1597
Show file tree
Hide file tree
Showing 12 changed files with 1,084 additions and 1,583 deletions.
23 changes: 12 additions & 11 deletions src/gui/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ Window::Window(QWidget* parent)
const QVector<QPair<QString, QString>> languageToLocaleMapping = {
{tr("System Language"), ""},
{"", ""}, // Separator
{tr("Bosnian"), "bs_BA"},
{tr("Chinese (Simplified)"), "zh_CN"},
{tr("Dutch"), "nl" },
{tr("English"), "en" },
{tr("Japanese"), "ja" },
{tr("Italian"), "it" },
{tr("Polish"), "pl" },
{tr("Spanish"), "es" },
{tr("Swedish"), "sv" },
{tr("Russian"), "ru_RU"},
{u8"Bosanski", "bs_BA"},
{u8"简体中文", "zh_CN"},
{u8"Nederlands", "nl"},
{u8"English", "en"},
{u8"日本語", "ja"},
{u8"Italiano", "it"},
{u8"Polski", "pl"},
{u8"Español", "es"},
{u8"Svenska", "sv"},
{u8"Русский", "ru_RU"},
};
for (const auto& [language, locale] : languageToLocaleMapping) {
if (language.isEmpty() && locale.isEmpty()) {
Expand Down Expand Up @@ -221,7 +221,8 @@ Window::Window(QWidget* parent)
themeMenuGroup->addAction(action);
}

auto* discordMenu = optionsMenu->addMenu(QIcon{":/icons/discord.png"}, tr("Discord..."));
// Not translating this menu name, the translation is the same everywhere
auto* discordMenu = optionsMenu->addMenu(QIcon{":/icons/discord.png"}, "Discord...");
const auto setupDiscordRichPresence = [] {
DiscordPresence::init("1222285763459158056");
DiscordPresence::setState("Editing an archive file");
Expand Down
2 changes: 1 addition & 1 deletion src/gui/_gui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ qt_add_translations(${PROJECT_NAME}
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_bs_BA.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_en.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_es.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_ja.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_it.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_ja.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_nl.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_pl.ts"
"${CMAKE_CURRENT_LIST_DIR}/res/i18n/${PROJECT_NAME}_ru_RU.ts"
Expand Down
Loading

0 comments on commit cfa1597

Please sign in to comment.