aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-04 22:51:02 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-04 22:51:02 +1000
commitec43c635cc65145dc4c36b4b284b86119534533e (patch)
treef563bf720ab28d1269a0be9805a3fef4dbd6e05d /builtin.h
parent26de6ba26b71f06c15ee7e8a54a7b52e0437047d (diff)
Add i18n through gettext, as well as a Swedish translation
darcs-hash:20060104125102-ac50b-5bf026578a69bd94f7a7a3c8dee0ebccd95e5c24.gz
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/builtin.h b/builtin.h
index ea633be9..548a668e 100644
--- a/builtin.h
+++ b/builtin.h
@@ -20,31 +20,36 @@ enum
/**
Error message on missing argument
*/
-#define BUILTIN_ERR_MISSING L": Expected argument"
+#define BUILTIN_ERR_MISSING _( L"%ls: Expected argument\n" )
/**
Error message on invalid combination of options
*/
-#define BUILTIN_ERR_COMBO L": Invalid combination of options"
+#define BUILTIN_ERR_COMBO _( L"%ls: Invalid combination of options\n" )
+
+/**
+ Error message on invalid combination of options
+*/
+#define BUILTIN_ERR_COMBO2 _( L"%ls: Invalid combination of options,\n%ls\n" )
/**
Error message on multiple scope levels for variables
*/
-#define BUILTIN_ERR_GLOCAL L": Variable can only be one of universal, global and local"
+#define BUILTIN_ERR_GLOCAL _( L"%ls: Variable can only be one of universal, global and local\n%ls\n" )
/**
Error message for specifying both export and unexport to set/read
*/
-#define BUILTIN_ERR_EXPUNEXP L": Variable can't be both exported and unexported"
+#define BUILTIN_ERR_EXPUNEXP _( L"%ls: Variable can't be both exported and unexported\n%ls\n" )
/**
Error message for unknown switch
*/
-#define BUILTIN_ERR_UNKNOWN L": Unknown option"
+#define BUILTIN_ERR_UNKNOWN _( L"%ls: Unknown option '%ls'\n" )
-#define BUILTIN_ERR_VARCHAR L"%ls: Invalid character in variable name: '%lc'. Only alphanumerical characters and underscores are valid in a variable name.\n"
+#define BUILTIN_ERR_VARCHAR _( L"%ls: Invalid character '%lc' in variable name. Only alphanumerical characters and underscores are valid in a variable name.\n" )
-#define BUILTIN_ERR_VARNAME_ZERO L"%ls: Variable name can not be the empty string\n"
+#define BUILTIN_ERR_VARNAME_ZERO _( L"%ls: Variable name can not be the empty string\n" )
/**
Stringbuffer used to represent standard output