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

Re: Language and locale setting in /root/dbootstrap_setting



[Phil Blundell]
> Some of the language definition files (e.g. german, which I guess Eduard
> was using) just set ->locale to the language code.  It does seem like
> these are in error.

> Also, if we can make LANG come out right, I don't think there is any
> need to set LANGUAGE at all.  So, to summarise, I think we should:

I would say it is good to pass the msgcat language code on to
base-config/libc/gettext.  Parhaps combine the locale value and the
language value: LANGUAGE=de_DE:de

>  - inspect, and fix if necessary, the locale values in all the 
>    .src files so that they include country codes

I found these bugs:

Index: german.src
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/utilities/dbootstrap/langs/german.src,vretrieving revision 1.7
diff -u -3 -p -u -r1.7 german.src
--- german.src  2001/12/26 16:04:27     1.7
+++ german.src  2002/02/12 10:57:16
@@ -3,10 +3,10 @@
     <hint>de - Sie haben Deutsch ausgewählt.  Return drücken um weiterzumachen</hint>
     <list>
         <name>Wähle die Sprach-Version</name>
-        <item arch="i386 m68k powerpc arm alpha" locale="de" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwertz/de-latin1-nodeadkeys" msgcat="de">
+        <item arch="i386 m68k powerpc arm alpha" locale="de_DE.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwertz/de-latin1-nodeadkeys" msgcat="de">
             <name>Deutsch</name>
         </item>
-        <item arch="powerpc" locale="de" acm="iso01" font="LatArCyrHeb-16" keymap="mac/mac-de-latin1-nodeadkeys" msgcat="de">
+        <item arch="powerpc" locale="de_DE.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="mac/mac-de-latin1-nodeadkeys" msgcat="de">
             <name>Deutsch (Mac)</name>
         </item>
     </list>
Index: swedish.src
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/utilities/dbootstrap/langs/swedish.src,v
retrieving revision 1.3
diff -u -3 -p -u -r1.3 swedish.src
--- swedish.src 2000/12/03 01:28:25     1.3
+++ swedish.src 2002/02/12 10:57:16
@@ -4,23 +4,23 @@
     <list>
         <name>Välj språkvariant</name>

-        <item arch="i386" locale="sv_SE" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/se-latin1" msgcat="sv">
+        <item arch="i386" locale="sv_SE.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/se-latin1" msgcat="sv">
             <name>Sverige</name>
         </item>
-        <item arch="i386" locale="sv_SE" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi" msgcat="sv">
+        <item arch="i386" locale="sv_SE.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi" msgcat="sv">
             <name>Sverige (inga döda tangenter)</name>
         </item>
-        <item arch="i386" locale="sv_FI" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi-latin1" msgcat="sv">
+        <item arch="i386" locale="sv_FI.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi-latin1" msgcat="sv">
             <name>Finland</name>
         </item>
-        <item arch="i386" locale="sv_FI" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi" msgcat="sv">
+        <item arch="i386" locale="sv_FI.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="i386/qwerty/fi" msgcat="sv">
             <name>Finland (inga döda tangenter)</name>
         </item>

-        <item arch="sparc" locale="sv_SE" acm="iso01" font="LatArCyrHeb-16" keymap="sun/sunt5-fi-latin1" msgcat="sv">
+        <item arch="sparc" locale="sv_SE.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="sun/sunt5-fi-latin1" msgcat="sv">
             <name>Sverige</name>
         </item>
-        <item arch="sparc" locale="sv_FI" acm="iso01" font="LatArCyrHeb-16" keymap="sun/sunt5-fi-latin1" msgcat="sv">
+        <item arch="sparc" locale="sv_FI.ISO-8859-1" acm="iso01" font="LatArCyrHeb-16" keymap="sun/sunt5-fi-latin1" msgcat="sv">
             <name>Finland</name>
         </item>

>  - turn on the code protected by USE_LANGUAGE_VARIANTS in boxes.c, but
>    not the bit in main_menu.c

Haven't looked at this part yet. :-)

[Phil Blundell]
> If you are putting "en_US.ISO-8859-1" in $LANG, you need to put
> "en_US.ISO-8859-1 ISO-8859-1" in /etc/locale.gen.  But yes, "." is
> always the separator for the character set part.

Are you sure?  I believe this is wrong.  I use LANG=no_NO.ISO-8859-1
but only need 'no_NO ISO-8859-1' in /etc/locale.gen.



Reply to: