Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dcore:locale_in_ub-dcore [2017/09/23 08:53]
sm8ps +tested, clean-up
dcore:locale_in_ub-dcore [2017/11/18 13:14] (current)
sm8ps [Preparation] LANGUAGE +export
Line 4: Line 4:
  
 These instructions have been tested on ... These instructions have been tested on ...
-  * dCore-trusty --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2017/09/23 08:49//+  * dCore-trusty --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2015//
   * dCore-xenial --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2017/09/23 08:49//   * dCore-xenial --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2017/09/23 08:49//
  
 =====Preparation===== =====Preparation=====
  
-Import and load the //locales// package.  - Ordered List Item+Import and load the //locales// package. Review '/usr/share/i18n/SUPPORTED' for a list of locales to determine the desired locale code, ignoring the second string.
  
-Review '/usr/share/i18n/SUPPORTED' for a list of locales to determine the desired locale code, ignoring the second string. +Either use the //lang// boot code for the desired locale (eg''lang=de_CH.UTF-8'' for Swiss German) and comment out the line in '~/.profile' that hard codes LANG to "en_US.UTF-8" ...
- +
-Comment out the line in '~/.profile' that hard codes LANG to "en_US.UTF-8":+
 <code> <code>
 #LANG=en_US.UTF-8 #LANG=en_US.UTF-8
 </code> </code>
- +or change that line to the desired locale directly.
-Use the //lang// boot code instead for the desired locale (eg. ''lang=de_CH.UTF-8'' for Swiss German).+
  
 For a first test ''locale'' will complain that it cannot set some LC_ variables but will then list where all but LANGUAGE and LC_ALL are set to the chosen locale code. For a first test ''locale'' will complain that it cannot set some LC_ variables but will then list where all but LANGUAGE and LC_ALL are set to the chosen locale code.
Line 28: Line 25:
 <code> <code>
 ~/.profile: ~/.profile:
-LANGUAGE=$LANG:en_US.UTF-8:en+export LANGUAGE=$LANG:en_US:en
 </code> </code>
  
Line 35: Line 32:
 Create a temporary working directory (eg. ~/temp/). Create a temporary working directory (eg. ~/temp/).
  
-Create a package list in (eg. ./mylocale.lst) with all desired language choices (eg. English and German): +Create a package list there (eg. ./mylocale.lst) with all desired language choices (eg. English and German):
 <code> <code>
 ./mylocale.lst: ./mylocale.lst:
Line 46: Line 42:
 </code> </code>
  
-Import the package list using ''sce-import -n -l ./mylocale.lst'' and load them.+Import the package list using ''sce-import -n -l ./mylocale.lst'' and load the extension. Be aware that this may take quite a while.
  
-Run ''sudo locale-gen ''''-''''-''''archive'' to produce '/usr/lib/locale/locale-archive' containing all locales specified in the language packs.+Run ''sudo locale-gen ''''-''''-''''archive'' to produce '/usr/lib/locale/locale-archive' containing all locales specified in the language packs. Again, this will take a while.
  
 ===Package Selection=== ===Package Selection===
Line 70: Line 66:
 sudo mv /usr/lib/locale/locale-archive ./mylocale/usr/lib/locale/ sudo mv /usr/lib/locale/locale-archive ./mylocale/usr/lib/locale/
 </code> </code>
-The directory is packed into a SquashFS-file, that is an extension. That extension is then put in the right place.+The directory is packed into a SquashFS-file, an extension that is. That extension is then put in the right place.
  
 <code Bash> <code Bash>
Print/export