[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cdebconf always falling back to English?



Should english (en) always be a fallback langauge?  I want it to be
able to use the content of en.po as the list of languages to choose.

I believe this patch should work.

Index: template.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/tools/cdebconf/src/template.c,v
retrieving revision 1.21
diff -u -3 -p -u -r1.21 template.c
--- template.c  19 Dec 2002 00:38:44 -0000      1.21
+++ template.c  2 Apr 2003 12:10:23 -0000
@@ -63,6 +63,13 @@ static const char *getlanguage(void)
                memset(cache_list_lang_ptr, 0, sizeof(struct cache_list_lang *));

                p = cache_list_lang_ptr;
+
+               /* Always fall back to English */
+               p->lang = strdup("en");
+               p->next = (struct cache_list_lang *) malloc(sizeof(*p->next));
+               p->next->next = NULL;
+               p = p->next;
+
                cache_cur_lang = strdup(envlang);
                cpb = cache_cur_lang;
                while((cpe = strchr(cpb, ':')) != NULL)



Reply to: