]> git.pld-linux.org Git - packages/xpat2.git/blame - xpat2-qt-locales.patch
- new doc
[packages/xpat2.git] / xpat2-qt-locales.patch
CommitLineData
2a3bf0da
JB
1--- xpat2-1.07/src/XQt-main.cpp.orig Sun Nov 5 21:12:35 2000
2+++ xpat2-1.07/src/XQt-main.cpp Thu Oct 4 20:07:24 2001
3@@ -61,7 +61,7 @@
4 (decks != -1 || Xslots != -1 || faceup != -1 || facedown != -1))
5 fprintf(stderr, "warning: customization parameters are ignored\n");
6
7-
8+ read_message_file("messages");
9 XQtXPat2Window * mw = new XQtXPat2Window(ruleset, seed);
10 mw->resize(800,600);
11 a.setMainWidget(mw);
12--- xpat2-1.07/src/messages.c.orig Wed May 5 22:04:48 1999
13+++ xpat2-1.07/src/messages.c Thu Oct 4 20:14:43 2001
14@@ -183,7 +183,11 @@
15 return langdir; /* directory was checked before */
16
17 /* first call, read environment */
18- langdir = getenv("LANG");
19+ langdir = getenv("LC_ALL");
20+ if(!langdir)
21+ langdir = getenv("LC_MESSAGES");
22+ if(!langdir)
23+ langdir = getenv("LANG");
24 if (!langdir)
25 langdir = ""; /* set to empty */
26 if (!*langdir)
95239078
JB
27@@ -203,7 +203,7 @@
28 sprintf(buff, "%s/%s", LIBDIR, langdir);
29
30 if (strlen(langdir) < 2)
31- return langdir; /* no idea how to change, keep it! */
32+ return (langdir="");
33
34 #ifdef _POSIX_SOURCE
35 /* on posix-systems, we can check if the directory is accessible */
This page took 0.068126 seconds and 4 git commands to generate.