mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
localize: add getString() function for a smoother string handling
Origin commit data
------------------
Branch: ni/coolstream
Commit: 83af9d836c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-05-29 (Mon, 29 May 2017)
Origin message was:
------------------
- localize: add getString() function for a smoother string handling
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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,
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user