Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dcore:locale_in_ub-dcore [2017/09/25 16:55] – [Preparation] sm8psdcore:locale_in_ub-dcore [2018/07/15 17:58] (current) sm8ps
Line 6: Line 6:
   * dCore-trusty --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2015//   * 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//
 +  * dCore-bionic64 --- //[[sm8ps-tcl1@yahoo.com|sm8ps]] 2018/07/15 14:37//
  
 =====Preparation===== =====Preparation=====
Line 15: Line 16:
 #LANG=en_US.UTF-8 #LANG=en_US.UTF-8
 </code> </code>
-or change that line to the desired locale directly.+or change that line to the desired locale directly. 
  
-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. +==== Fallback Locales ====
- +
-=== Fallback Locales ===+
 International users may want US English as a fallback to be stored in LANGUAGE (source: [[https://wiki.archlinux.org/index.php/Locale#LANGUAGE:_fallback_locales|Archlinux-wiki]]). International users may want US English as a fallback to be stored in LANGUAGE (source: [[https://wiki.archlinux.org/index.php/Locale#LANGUAGE:_fallback_locales|Archlinux-wiki]]).
  
Line 25: Line 24:
 <code> <code>
 ~/.profile: ~/.profile:
-LANGUAGE=$LANG:en_US.UTF-8:en+export LANGUAGE=$LANG:en_US:en
 </code> </code>
  
 =====Generating Locale Files===== =====Generating Locale Files=====
  
-Create a temporary working directory (eg. ~/temp/).+Reboot for the changes to take effect.
  
-Create package list in (eg. ./mylocale.lst) with all desired language choices (egEnglish and German):+For 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.
  
 +Create a temporary working directory (eg. ~/temp/).
 +
 +Create a package list there (eg. ./mylocale-LIST) with all desired language choices (eg. English and German):
 <code> <code>
-./mylocale.lst:+./mylocale-LIST:
 coreutils coreutils
 bash bash
Line 43: Line 45:
 </code> </code>
  
-Import the package list using ''sce-import -n -l ./mylocale.lst'' and load them.+Import the package list using ''sce-import -nl ./mylocale-LIST'' 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 65: Line 67:
 <code Bash> <code Bash>
 mkdir -p ./mylocale/usr/lib/locale/ mkdir -p ./mylocale/usr/lib/locale/
-sudo mv /usr/lib/locale/locale-archive ./mylocale/usr/lib/locale/+sudo cp -a /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>
Line 80: Line 82:
 </code> </code>
  
-Optionally, the extension is included into 'sceboot.lst' so as to have it automatically loaded at boot.+The extension name "mylocale" should be included into 'sceboot.lst' so as to have it automatically loaded at boot. 
 ===Testing=== ===Testing===
  
Print/export
QR Code
QR Code dcore:locale_in_ub-dcore (generated for current page)