- 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:
Paul Beckingham
2011-03-29 23:18:02 -04:00
parent ed3b4d587c
commit 976e480903
5 changed files with 65 additions and 106 deletions

View File

@@ -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);