Commit cc120150 authored by Kyle Robertze's avatar Kyle Robertze
Browse files

generate arabic, french and english locales by default

parent d61c045c
---
type: "job"
name: "sources-final"
interface: "process"
command: "/usr/sbin/enable-locales"
#!/bin/bash
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
sed -i '/^#.ar_EG.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # Arabic - Egypt
sed -i '/^#.ar_LY.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # Arabic - Libya
sed -i '/^#.ar_MA.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # Arabic - Morocco
sed -i '/^#.ar_SD.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # Arabic - Sudan
sed -i '/^#.ar_TN.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # Arabic - Tunisia
sed -i '/^#.fr_FR.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # French
sed -i '/^#.en_ZA.UTF-8 UTF-8/s/^# //' $CHROOT/etc/locale.gen # English - South Africa
......@@ -39,6 +39,7 @@ sequence:
- machineid
- fstab
- locale
- enable-locales
- keyboard
- bootloader-eficonfig
- localecfg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment