You are not logged in.

#1 2008-06-05 22:33:39

halcor
Member
Registered: 2008-05-15
Posts: 71

locale trouble (I'd read FAQ)

http://wiki.archlinux.org/index.php/Configuring_locales

I try to do that, but when I do locale -a I got 3 errors:

Locale: cannot set LC_CTYPE to default locale: No suche file or directory
Locale: cannot set LC_MESSAGES to default locale: No suche file or directory
Locale: cannot set LC_ALL to default locale: No suche file or directory

LAN=es_ES.utf8
all of them are in es_ES.iso8859 an they will be in es_ES.utf8

I try to do

Enabling necessary locales

First you have to enable the locales you want being supported by your system. To enable or disable them, the file /etc/locale.gen is used. It contains every locale you can enable, and you have just to uncomment lines you want to do so. 

As we want to setup an english UTF-8 conform system, we want to enable en_US.UTF-8. But for compatibility to programs that don't support UTF-8 yet, it's recommended to support any other locale, prefixed with en_US as well. Having this in mind, we enable this set of locales: 
en_US.UTF8    UTF-8
en_US  ISO-8859-1

After you've enabled the necessary locales, you have to run locale-gen as root to update them: 
# locale-gen
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.

Note: Though it's most likely just one language you use on your computer it can be helpful or even necessary to enable other locales as well. For example if you're running a multi-user system with users that don't speak en_US, they won't be happy until their individual locale is at least supported by your system. 
[edit]
Setting system wide locale

To define which locale should be used by the system, you can easily add your locale to your /etc/rc.conf file. As we've just added ISO-8859 support just for (backward-)compability, we add en_US.utf-8 here: 
LOCALE="en_US.utf8"

The system wide locale will be updated after rebooting your computer.

And no works, xfce is in english, and so program do not open because has a locale trouble. I only think that I must format the computer, because I don't find the solve.

Thanks to everybody.

Offline

#2 2008-06-05 22:55:55

droog
Member
Registered: 2004-11-18
Posts: 877

Re: locale trouble (I'd read FAQ)

Don't reformat your computer its probably a typo somewhere. you want english or spanish locale?

what have you changed so far rc.conf or .bashrc and what did you change it to?

Offline

#3 2008-06-06 11:27:59

halcor
Member
Registered: 2008-05-15
Posts: 71

Re: locale trouble (I'd read FAQ)

I prefer a spanish locale, but if one program needs to open, I prefer that it opens in english that it won't open.


rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="es_ES.utf8"
HARDWARECLOCK="UTC"
TIMEZONE="Europa/Madrid"
KEYMAP="es"
CONSOLEFONT="lat2-16.psfu.gz"
CONSOLEMAP="es.map.gz"
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=(pcspkr)
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to blacklist it
#
MODULES=(slhc tulip ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-maestro3 soundcore)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="arch"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
# Don't use this for wireless interfaces, see network profiles below
#
eth0="eth0 192.168.1.40 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)

#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(slim hal syslog-ng network @fam  netfs !crond @alsa)


# End of file

~/.bashrc

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
complete -cf sudo
export LC_ALL=es_ES.iso8859
export LC_LANG=es_ES.utf8

Offline

#4 2008-06-08 11:52:59

halcor
Member
Registered: 2008-05-15
Posts: 71

Re: locale trouble (I'd read FAQ)

Nobody knows the trouble, I think that it would be in ~/.bashrc because both languages are different.

Offline

Board footer

Powered by FluxBB