diff options
author | Ben V. Brown <[email protected]> | 2021-09-25 10:21:50 +1000 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2021-09-25 10:21:50 +1000 |
commit | 1bb9254365061e37882879906216b8a41aca78c1 (patch) | |
tree | f6b52809342d7c7b4d29c1089945b9c999b38961 | |
parent | e8d26c3159713b5abec1f89ee12317dd98112a3f (diff) | |
download | IronOS-1bb9254365061e37882879906216b8a41aca78c1.tar.gz IronOS-1bb9254365061e37882879906216b8a41aca78c1.zip |
Update translation
-rw-r--r-- | source/Core/Inc/Translation.h | 3 | ||||
-rw-r--r-- | source/Core/LangSupport/lang_multi.cpp | 5 | ||||
-rw-r--r-- | source/Core/LangSupport/lang_single.cpp | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/source/Core/Inc/Translation.h b/source/Core/Inc/Translation.h index 4f601fb8..f90d606c 100644 --- a/source/Core/Inc/Translation.h +++ b/source/Core/Inc/Translation.h @@ -145,7 +145,8 @@ constexpr uint8_t settings_item_index(const SettingsItemIndex i) { return static const char *translatedString(uint16_t index);
void prepareTranslations();
-bool settings_displayLanguageSwitch(void);
+void settings_displayLanguageSwitch(void);
+bool settings_showLanguageSwitch(void);
bool settings_setLanguageSwitch(void);
#endif /* TRANSLATION_H_ */
diff --git a/source/Core/LangSupport/lang_multi.cpp b/source/Core/LangSupport/lang_multi.cpp index c612d853..eea4176e 100644 --- a/source/Core/LangSupport/lang_multi.cpp +++ b/source/Core/LangSupport/lang_multi.cpp @@ -85,7 +85,4 @@ bool settings_setLanguageSwitch(void) { return selectedLangIndex == (LanguageCount - 1); } -bool settings_displayLanguageSwitch(void) { - OLED::printWholeScreen(translatedString(Tr->SettingsShortNames[static_cast<uint8_t>(SettingsItemIndex::LanguageSwitch)])); - return false; -} +void settings_displayLanguageSwitch(void) { OLED::printWholeScreen(translatedString(Tr->SettingsShortNames[static_cast<uint8_t>(SettingsItemIndex::LanguageSwitch)])); } diff --git a/source/Core/LangSupport/lang_single.cpp b/source/Core/LangSupport/lang_single.cpp index 75258521..019c0938 100644 --- a/source/Core/LangSupport/lang_single.cpp +++ b/source/Core/LangSupport/lang_single.cpp @@ -2,6 +2,5 @@ bool settings_setLanguageSwitch(void) { return false; } -bool settings_displayLanguageSwitch(void) { - return true; // skip -} +void settings_displayLanguageSwitch(void) {} +bool settings_showLanguageSwitch(void) { return false; } |