summaryrefslogtreecommitdiffstats
path: root/loader/lang.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-10-08 20:18:30 +0000
committerMatt Wilson <msw@redhat.com>1999-10-08 20:18:30 +0000
commit16114547587f67eaa722d4cd4aac8fd7cdeb0921 (patch)
tree5f8f2ae58ecbf11d60126bf29f2fcbd7a5dc3ed5 /loader/lang.c
parentcdc65a99dc5506b12bf307f49dd8b3955703cc85 (diff)
downloadanaconda-16114547587f67eaa722d4cd4aac8fd7cdeb0921.tar.gz
anaconda-16114547587f67eaa722d4cd4aac8fd7cdeb0921.tar.xz
anaconda-16114547587f67eaa722d4cd4aac8fd7cdeb0921.zip
this should catch all cases
Diffstat (limited to 'loader/lang.c')
-rw-r--r--loader/lang.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/loader/lang.c b/loader/lang.c
index bd75e11a3..962e08c00 100644
--- a/loader/lang.c
+++ b/loader/lang.c
@@ -212,6 +212,20 @@ static int loadFont(char * fontFile, int flags) {
return 0;
}
+void setLanguage (char * key) {
+ int i;
+
+ for (i = 0; i < numLanguages; i++) {
+ if (!strcmp(languages[i].key, key))
+ break;
+ }
+ if (i < numLanguages) {
+ setenv("LANG", languages[i].key, 1);
+ setenv("LC_ALL", languages[i].lc_all, 1);
+ setenv("LINGUAS", languages[i].key, 1);
+ }
+}
+
int chooseLanguage(char ** lang, int flags) {
int choice = 0;
char ** langs;
@@ -356,8 +370,6 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) {
gzFile f;
struct kmapHeader hdr;
struct kmapInfo * infoTable;
- char ** argv;
- int argc;
char ** kbds;
char buf[16384]; /* I hope this is big enough */
int i;