diff --git a/src/system/localize.cpp b/src/system/localize.cpp index 63f562437..ec0b9db5f 100644 --- a/src/system/localize.cpp +++ b/src/system/localize.cpp @@ -251,6 +251,12 @@ const char * CLocaleManager::getText(const neutrino_locale_t keyName) const return localeData[keyName]; } +//NI +std::string CLocaleManager::getString(const neutrino_locale_t keyName) const +{ + return (std::string) localeData[keyName]; +} + static const neutrino_locale_t locale_weekday[7] = { LOCALE_DATE_SUN, diff --git a/src/system/localize.h b/src/system/localize.h index b12b430fd..f05e03be8 100644 --- a/src/system/localize.h +++ b/src/system/localize.h @@ -69,6 +69,7 @@ class CLocaleManager loadLocale_ret_t loadLocale(const char * const locale, bool asdefault = false); const char * getText(const neutrino_locale_t keyName) const; + std::string getString(const neutrino_locale_t keyName) const; //NI static neutrino_locale_t getMonth (const struct tm * struct_tm_p); static neutrino_locale_t getMonth (const int mon);