I18N - L10N

- Localized first strings in Context.
This commit is contained in:
Paul Beckingham
2009-06-04 23:13:17 -04:00
parent da88dfe15a
commit 531cffdc7f
3 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
# 1xx task shell # 1xx task shell
100 Unknown Error. 100 Unknown Error.
101 Could not read home directory from the passwd file.
# 2xx Commands # 2xx Commands
200 active 200 active

View File

@@ -33,6 +33,7 @@
#include "text.h" #include "text.h"
#include "util.h" #include "util.h"
#include "task.h" #include "task.h"
#include "i18n.h"
#include "../auto.h" #include "../auto.h"
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@@ -199,7 +200,9 @@ void Context::loadCorrectConfigFile (int argc, char** argv)
struct passwd* pw = getpwuid (getuid ()); struct passwd* pw = getpwuid (getuid ());
if (!pw) if (!pw)
throw std::string ("Could not read home directory from passwd file."); throw std::string (
stringtable.get (SHELL_READ_PASSWD,
"Could not read home directory from the passwd file."));
std::string file = pw->pw_dir; std::string file = pw->pw_dir;
config.createDefault (file); config.createDefault (file);

View File

@@ -30,6 +30,7 @@
// 1xx task shell // 1xx task shell
#define SHELL_UNKNOWN_ERROR 100 #define SHELL_UNKNOWN_ERROR 100
#define SHELL_READ_PASSWD 101
// 2xx Commands // 2xx Commands
#define CMD_ACTIVE 200 #define CMD_ACTIVE 200