diff --git a/Source/hoc-clk/sysmodule/src/hos/lang.cpp b/Source/hoc-clk/sysmodule/src/hos/lang.cpp index 180a4d24..6d959c01 100644 --- a/Source/hoc-clk/sysmodule/src/hos/lang.cpp +++ b/Source/hoc-clk/sysmodule/src/hos/lang.cpp @@ -27,8 +27,8 @@ namespace lang { namespace { - constexpr const char *kUltrahandConfigPath = "sdmc:/config/ultrahand/config.ini"; - constexpr const char *kLangDir = "sdmc:" FILE_CONFIG_DIR "/lang/"; + constexpr const char *UltrahandConfigPath = "sdmc:/config/ultrahand/config.ini"; + constexpr const char *LangDir = "sdmc:" FILE_CONFIG_DIR "/lang/"; std::string gLoadedLang; std::unordered_map gCache; @@ -89,7 +89,7 @@ namespace lang { } bool LoadLangFile(const std::string &langCode) { - const std::string path = std::string(kLangDir) + langCode + ".json"; + const std::string path = std::string(LangDir) + langCode + ".json"; std::string content; if (!ReadFileContent(path, content)) { return false; @@ -103,7 +103,7 @@ namespace lang { std::string GetDefaultLang() { char buf[32] = {}; - ini_gets("ultrahand", "default_lang", "en", buf, sizeof(buf), kUltrahandConfigPath); + ini_gets("ultrahand", "default_lang", "en", buf, sizeof(buf), UltrahandConfigPath); if (buf[0] == '\0') { return "en"; } @@ -123,7 +123,7 @@ namespace lang { } // namespace - std::string translate(const std::string &text) { + std::string Translate(const std::string &text) { if (text.empty()) { return text; } diff --git a/Source/hoc-clk/sysmodule/src/hos/lang.hpp b/Source/hoc-clk/sysmodule/src/hos/lang.hpp index 81aff87c..7b03635b 100644 --- a/Source/hoc-clk/sysmodule/src/hos/lang.hpp +++ b/Source/hoc-clk/sysmodule/src/hos/lang.hpp @@ -24,6 +24,6 @@ namespace lang { // Translates text using Ultrahand's language setting and // /config/horizon-oc/lang/.json (same format as the overlay). // Returns the original text when no translation is available. - std::string translate(const std::string &text); + std::string Translate(const std::string &text); } // namespace lang diff --git a/Source/hoc-clk/sysmodule/src/hos/notification.cpp b/Source/hoc-clk/sysmodule/src/hos/notification.cpp index 70d9e343..333b0604 100644 --- a/Source/hoc-clk/sysmodule/src/hos/notification.cpp +++ b/Source/hoc-clk/sysmodule/src/hos/notification.cpp @@ -28,7 +28,7 @@ namespace notification { } fclose(flagFile); - const std::string translated = lang::translate(message); + const std::string translated = lang::Translate(message); std::string filename = "hoc-" + std::to_string(std::time(nullptr)) + ".notify"; std::string fullPath = "sdmc:/config/ultrahand/notifications/" + filename;