You are not logged in.

#1 2010-11-04 19:42:08

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

(SOLVED) Dutch locale with English language

I would like to have a Dutch locale with English language in Arch. I've have done this in Debian and Gentoo, the settings below work fine. In Gentoo you can edit  /etc/env.d/02locale. Which files do I need to edit in Arch? I've read the about locales in the wiki but I couldn't find the answer.

LANG=en_US.UTF-8
LANGUAGE="en_US:en"
LC_MESSAGES="en_US.UTF-8"
LC_CTYPE="nl_NL@euro"
LC_COLLATE="nl_NL@euro"
LC_TIME="nl_NL"
LC_NUMERIC="nl_NL"
LC_MONETARY="nl_NL@euro"
LC_PAPER="nl_NL"
LC_TELEPHONE="nl_NL"
LC_ADDRESS="nl_NL"
LC_MEASUREMENT="nl_NL"
LC_NAME="nl_NL"

Last edited by Kasumi_Ninja (2010-11-06 16:20:45)

Offline

#2 2010-11-04 20:08:20

oupsemma
Member
Registered: 2010-01-01
Posts: 70

Re: (SOLVED) Dutch locale with English language

Check here, under "Collation" https://wiki.archlinux.org/index.php/Locale

Otherwise, to get the appropriate keyboard layout, edit /etc/rc.conf with KEYMAP=nl and CONSOLE MAP=nl
https://wiki.archlinux.org/index.php/Rc.conf

and add the right option for Xkbd layout in /etc/xorg.conf
https://wiki.archlinux.org/index.php/Co … youts_in_X

Offline

#3 2010-11-04 20:17:53

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) Dutch locale with English language

Thanks for the help. Do you mean I have to add the following to /etc/profile?

LANG=en_US.UTF-8
LANGUAGE="en_US:en"
LC_MESSAGES="en_US.UTF-8"
LC_CTYPE="nl_NL@euro"
LC_COLLATE="nl_NL@euro"
LC_TIME="nl_NL"
LC_NUMERIC="nl_NL"
LC_MONETARY="nl_NL@euro"
LC_PAPER="nl_NL"
LC_TELEPHONE="nl_NL"
LC_ADDRESS="nl_NL"
LC_MEASUREMENT="nl_NL"
LC_NAME="nl_NL"

Offline

#4 2010-11-04 20:34:48

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: (SOLVED) Dutch locale with English language

Kasumi_Ninja wrote:

Thanks for the help. Do you mean I have to add the following to /etc/profile?

Yes!

Offline

#5 2010-11-05 07:57:58

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) Dutch locale with English language

I have uncommented the Dutch locale in /etc/locale.gen and ran locale-gen. And I've added my locale settings to /etc/profile and rebooted. Unfortunately my locale still isn't correct. Any ideas how I can solve this?

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
$ grep NL /etc/locale.gen
#fy_NL UTF-8  
#li_NL UTF-8  
#nds_NL UTF-8  
nl_NL.UTF-8 UTF-8  
nl_NL ISO-8859-1  
nl_NL@euro ISO-8859-15 
$ cat /etc/profile
# 
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)
#
# Sections taken from SuSe's /etc/profile
# Note the explicit use of 'test' to cover all bases
#  and potentially incompatible shells

#Determine our shell without using $SHELL, which may lie
shell="sh"
if test -f /proc/mounts; then
   case $(/bin/ls -l /proc/$$/exe) in
        *bash) shell=bash ;;
        *dash) shell=dash ;;
        *ash)  shell=ash ;;
        *ksh)  shell=ksh ;;
        *zsh)  shell=zsh ;;
    esac
fi

# Load shell specific profile settings
test -f "/etc/profile.$shell" &&  . "/etc/profile.$shell"
unset shell

#Set our umask
umask 022

# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
        test -x $profile && . $profile
    done
    unset profile
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

#locale settings
LANG=en_US.UTF-8
LANGUAGE="en_US:en"
LC_MESSAGES="en_US.UTF-8"
LC_CTYPE="nl_NL@euro"
LC_COLLATE="nl_NL@euro"
LC_TIME="nl_NL"
LC_NUMERIC="nl_NL"
LC_MONETARY="nl_NL@euro"
LC_PAPER="nl_NL"
LC_TELEPHONE="nl_NL"
LC_ADDRESS="nl_NL"
LC_MEASUREMENT="nl_NL"
LC_NAME="nl_NL"

Last edited by Kasumi_Ninja (2010-11-05 07:59:48)

Offline

#6 2010-11-05 09:46:41

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: (SOLVED) Dutch locale with English language

I think you must export the environment variables:

export LANG=en_US.UTF-8

and similarly for the other locales.

Offline

#7 2010-11-05 11:12:02

Tes--
Member
Registered: 2009-11-13
Posts: 42

Re: (SOLVED) Dutch locale with English language

Exporting should work.
You can also do that per-user from ~/.profile

Offline

#8 2010-11-06 16:22:42

Kasumi_Ninja
Member
Registered: 2009-12-31
Posts: 54

Re: (SOLVED) Dutch locale with English language

Thanks that worked!

$ locale
LANG=en_US.utf8
LC_CTYPE=nl_NL@euro
LC_NUMERIC=nl_NL
LC_TIME=nl_NL
LC_COLLATE=nl_NL@euro
LC_MONETARY=nl_NL@euro
LC_MESSAGES=en_US.UTF-8
LC_PAPER=nl_NL
LC_NAME=nl_NL
LC_ADDRESS=nl_NL
LC_TELEPHONE=nl_NL
LC_MEASUREMENT=nl_NL
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
$ cat /etc/profile
# 
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)

...

# Man is much better than us at figuring this out
unset MANPATH

#locale settings
export LANG=en_US.UTF-8
#export LANGUAGE="en_US:en"
export LC_MESSAGES="en_US.UTF-8"
export LC_CTYPE="nl_NL@euro"
export LC_COLLATE="nl_NL@euro"
export LC_TIME="nl_NL"
export LC_NUMERIC="nl_NL"
export LC_MONETARY="nl_NL@euro"
export LC_PAPER="nl_NL"
export LC_TELEPHONE="nl_NL"
export LC_ADDRESS="nl_NL"
export LC_MEASUREMENT="nl_NL"
export LC_NAME="nl_NL"

Last edited by Kasumi_Ninja (2010-11-06 16:23:30)

Offline

#9 2011-01-10 00:58:05

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 379

Re: (SOLVED) Dutch locale with English language

Kasumi_Ninja wrote:
$ cat /etc/profile
# 
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)

...

# Man is much better than us at figuring this out
unset MANPATH

#locale settings
export LANG=en_US.UTF-8
#export LANGUAGE="en_US:en"
export LC_MESSAGES="en_US.UTF-8"
export LC_CTYPE="nl_NL@euro"
export LC_COLLATE="nl_NL@euro"
export LC_TIME="nl_NL"
export LC_NUMERIC="nl_NL"
export LC_MONETARY="nl_NL@euro"
export LC_PAPER="nl_NL"
export LC_TELEPHONE="nl_NL"
export LC_ADDRESS="nl_NL"
export LC_MEASUREMENT="nl_NL"
export LC_NAME="nl_NL"

Thanks a lot, this is the right way to have the locale I need with a different language than the default.
This should be on ArchWiki, if no one puts it there I'll do it myself.


All your base are belong to us

Offline

Board footer

Powered by FluxBB