From bbdca491933fd906bb65cc201c8636d24d4cda71 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Nov 2002 05:56:15 +0000 Subject: gettext is ready to rock and roll --- src/main.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index 4ea8aaf1..2bc4b3ce 100644 --- a/src/main.cc +++ b/src/main.cc @@ -94,6 +94,11 @@ int main(int argc, char **argv) { char *rc_file = (char *) 0; char *menu_file = (char *) 0; + // initialize the locale + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + for (int i = 1; i < argc; ++i) { if (! strcmp(argv[i], "-rc")) { // look for alternative rc file to use -- cgit v1.2.3