From 5a77ec62b57e886b5ea7b74c9ddae578499824c5 Mon Sep 17 00:00:00 2001 From: Michal Rudolf Date: Mon, 10 Jun 2024 13:46:17 +0200 Subject: [PATCH] Change japanese language code JP to ISO 639's JA --- CMakePresets.json | 16 +++++------ ProjectOptions.cmake | 2 +- src/gui/fonts.cpp | 4 +-- src/gui/res/mini_used_imgs.txt | 2 +- .../{flag_jp_16x11.png => flag_ja_16x11.png} | Bin .../{flag_jp_16x11.png => flag_ja_16x11.png} | Bin src/gui/screen_menu_languages.cpp | 4 +-- src/gui/screen_menu_languages.hpp | 8 ++++-- .../Prusa-Firmware-Buddy_ja.mo} | Bin .../Prusa-Firmware-Buddy_ja.po} | 0 src/lang/translation_provider_CPUFLASH.cpp | 20 +++++++------- src/lang/translation_provider_FILE.cpp | 8 +++--- .../translator/option/enable_translation_ja.h | 11 ++++++++ .../translator/option/enable_translation_jp.h | 11 -------- .../unit/lang/translator/providerCPUFLASH.cpp | 26 +++++++++--------- tests/unit/lang/translator/providerFILE.cpp | 10 +++---- utils/presets/presets.json | 6 ++-- 17 files changed, 65 insertions(+), 63 deletions(-) rename src/gui/res/png/{flag_jp_16x11.png => flag_ja_16x11.png} (100%) rename src/gui/res/png_before_resize/{flag_jp_16x11.png => flag_ja_16x11.png} (100%) rename src/lang/po/{jp/Prusa-Firmware-Buddy_jp.mo => ja/Prusa-Firmware-Buddy_ja.mo} (100%) rename src/lang/po/{jp/Prusa-Firmware-Buddy_jp.po => ja/Prusa-Firmware-Buddy_ja.po} (100%) create mode 100644 tests/unit/lang/translator/option/enable_translation_ja.h delete mode 100644 tests/unit/lang/translator/option/enable_translation_jp.h diff --git a/CMakePresets.json b/CMakePresets.json index 888a1f8c13..697f6e3f52 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1979,7 +1979,7 @@ } }, { - "name": "mini-en-jp_debug_boot", + "name": "mini-en-ja_debug_boot", "generator": "Ninja", "binaryDir": "build-vscode-buddy", "cacheVariables": { @@ -2009,7 +2009,7 @@ }, "TRANSLATIONS_LIST": { "type": "STRING", - "value": "jp" + "value": "ja" }, "BOOTLOADER": { "type": "STRING", @@ -2046,7 +2046,7 @@ } }, { - "name": "mini-en-jp_debug_noboot", + "name": "mini-en-ja_debug_noboot", "generator": "Ninja", "binaryDir": "build-vscode-buddy", "cacheVariables": { @@ -2076,7 +2076,7 @@ }, "TRANSLATIONS_LIST": { "type": "STRING", - "value": "jp" + "value": "ja" }, "BOOTLOADER": { "type": "STRING", @@ -2113,7 +2113,7 @@ } }, { - "name": "mini-en-jp_release_boot", + "name": "mini-en-ja_release_boot", "generator": "Ninja", "binaryDir": "build-vscode-buddy", "cacheVariables": { @@ -2143,7 +2143,7 @@ }, "TRANSLATIONS_LIST": { "type": "STRING", - "value": "jp" + "value": "ja" }, "BOOTLOADER": { "type": "STRING", @@ -2180,7 +2180,7 @@ } }, { - "name": "mini-en-jp_release_noboot", + "name": "mini-en-ja_release_noboot", "generator": "Ninja", "binaryDir": "build-vscode-buddy", "cacheVariables": { @@ -2210,7 +2210,7 @@ }, "TRANSLATIONS_LIST": { "type": "STRING", - "value": "jp" + "value": "ja" }, "BOOTLOADER": { "type": "STRING", diff --git a/ProjectOptions.cmake b/ProjectOptions.cmake index f94203069f..7321e92d95 100644 --- a/ProjectOptions.cmake +++ b/ProjectOptions.cmake @@ -359,7 +359,7 @@ set(LANGUAGES_AVAILABLE ES FR IT - JP + JA PL ) if("${TRANSLATIONS_LIST}" STREQUAL "") diff --git a/src/gui/fonts.cpp b/src/gui/fonts.cpp index 9eb10c2f60..f3249b5cd7 100644 --- a/src/gui/fonts.cpp +++ b/src/gui/fonts.cpp @@ -5,10 +5,10 @@ #include "fonts.hpp" #include "config.h" #include -#include