From af3debf2153eac52fec1844593d09191af23ce4d Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 18 Mar 2003 16:00:37 +0000 Subject: Gettext --- include/Main.h | 1 + include/gettext.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Main.h b/include/Main.h index 6d4ac9c..0e3885a 100644 --- a/include/Main.h +++ b/include/Main.h @@ -25,6 +25,7 @@ class Main : public Base { #define CODE_ENDS }; \ int main(int argc, char ** argv) { \ int r; \ + setlocale(LC_ALL, ""); \ Appli * Application = new Appli(); \ r = Main::truemain(Application, argc, argv, environ); \ delete Application; \ diff --git a/include/gettext.h b/include/gettext.h index ab2d962..248bf2e 100644 --- a/include/gettext.h +++ b/include/gettext.h @@ -66,7 +66,7 @@ initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String -#define _(Text) gettext (Text) +#define _(Text) dgettext ("Baltisot", Text) #define N_(Text) Text #endif /* _LIBGETTEXT_H */ -- cgit v1.2.3