i18n
- Added en-US.h, which will be a header file full of string defines. - Added logic to i18n.h to include en-US.h based on cmake command line argument (cmake ... -DPACKAGE_LANGUAGE=1). - Added one sample string.
This commit is contained in:
@@ -135,9 +135,9 @@ void Context::initialize ()
|
||||
initializeColorRules ();
|
||||
|
||||
Directory location (config.get ("data.location"));
|
||||
std::string locale = config.get ("locale");
|
||||
|
||||
// If there is a locale variant (en-US.<variant>), then strip it.
|
||||
std::string locale = config.get ("locale");
|
||||
std::string::size_type period = locale.find ('.');
|
||||
if (period != std::string::npos)
|
||||
locale = locale.substr (0, period);
|
||||
|
||||
Reference in New Issue
Block a user