Update locales/language handling
authorMichael Prokop <mika@grml.org>
Mon, 3 Nov 2008 00:27:53 +0000 (01:27 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 3 Nov 2008 00:27:53 +0000 (01:27 +0100)
autoconfig.functions
debian/changelog
language-functions

index 0084161..921be17 100755 (executable)
@@ -204,12 +204,16 @@ config_language(){
 
  # set default to 'en' in live-cd mode if $LANGUAGE is not yet set:
  if [ -z "$INSTALLED" ] ; then
 
  # set default to 'en' in live-cd mode if $LANGUAGE is not yet set:
  if [ -z "$INSTALLED" ] ; then
-    [ -n "$LANGUAGE" ] || LANGUAGE='en-utf8'
+    [ -n "$LANGUAGE" ] || LANGUAGE='us'
  fi
 
  # if bootoption lang is used update /etc/default/locale, otherwise *not*!
  fi
 
  # if bootoption lang is used update /etc/default/locale, otherwise *not*!
- if [ -n "$BOOT_LANGUAGE" ] ; then
-    [ -x /usr/sbin/grml-setlang ] && /usr/sbin/grml-setlang "$LANGUAGE"
+ if [ -n "$BOOT_LANGUAGE" -a -x /usr/sbin/grml-setlang ] ; then
+    if checkgrmlsmall ; then
+       /usr/sbin/grml-setlang "POSIX"
+    else
+       /usr/sbin/grml-setlang "$LANGUAGE"
+    fi
  fi
 
  # set console font
  fi
 
  # set console font
index 59ffc83..f8f5abc 100644 (file)
@@ -1,3 +1,12 @@
+grml-autoconfig (0.8.15) unstable; urgency=low
+
+  * Use us instead of en-utf8 as default locale (this is what we
+    are using as bootparam by default as well).
+  * Support C/POSIX locales within language setup.
+  * Use POSIX locales on grml-small.
+
+ -- Michael Prokop <mika@grml.org>  Mon, 03 Nov 2008 01:26:49 +0100
+
 grml-autoconfig (0.8.14) unstable; urgency=low
 
   * Rework config_swspeak once more, move most parts of the logic
 grml-autoconfig (0.8.14) unstable; urgency=low
 
   * Rework config_swspeak once more, move most parts of the logic
index 3a914c2..3c74fa9 100644 (file)
@@ -7,6 +7,10 @@
 
 # The default language/keyboard to use. This CAN NOT be autoprobed.
 case "$LANGUAGE" in
 
 # The default language/keyboard to use. This CAN NOT be autoprobed.
 case "$LANGUAGE" in
+        C|POSIX)
+                LANG="C"
+                LANGUAGE="C"
+                ;;
         at-iso)
                 # Austrian version
                 COUNTRY="at"
         at-iso)
                 # Austrian version
                 COUNTRY="at"