OpenVZ Forum


Home » General » Support » *SOLVED* locales
*SOLVED* locales [message #3166] Mon, 15 May 2006 20:01 Go to next message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
My HN is feodora core 4.

But when I install a fedora core 4 VPS using the minimal template, locales are not installed in the same manner as the fedora HN, and I don't see any LANG setting in my VPS environment.

On the HN, the fedora installer handles this, and I don't know how to get locales installed and configured in the VPS. I want en_US, but in /usr/share/locale I only see en_GB, plus various non english languages.

Looks like the glibc installation is a default setup. Is there any way to control this?

In the template config directory, .rpmmacros contains:

%_install_langs C

and I changed it to

%_install_langs en_US

and now /usr/share/locale has en, en_CA, and en_GB, but there is still not any en_US.

Does anyone know how to get en_US locale installed? I could not find answers by searching the forums here.

[Updated on: Wed, 17 May 2006 06:41] by Moderator

Report message to a moderator

Re: locales [message #3179 is a reply to message #3166] Tue, 16 May 2006 14:02 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

That is right, you need to modify %_install_langs in .rpmmacros file, and run vzpkgcache -f <affected_templates> after that. In your existing VEs the only way to add more locales is to reinstall all the affecting packages.

%_install_langs can look like this:
%_install_langs C:pl_PL:en_GB:en_US:de_DE:pl:en:de


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: locales [message #3192 is a reply to message #3179] Tue, 16 May 2006 22:53 Go to previous messageGo to next message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
kir wrote on Tue, 16 May 2006 10:02

%_install_langs can look like this:
%_install_langs C:pl_PL:en_GB:en_US:de_DE:pl:en:de


I set mine to:
%_install_langs C:en_US:en_US.UTF-8

and ran vzpkgcache -f <affected_templates> like you said, recreated the VPS, then copied /etc/sysconfig/i18n from the HN to the VPS.

Now the LANG and SUPPORTED environment variables are set correctly, just like the HN.

Thanks, Kir.

Re: locales [message #3619 is a reply to message #3192] Wed, 07 June 2006 12:43 Go to previous message
laurent is currently offline  laurent
Messages: 18
Registered: April 2006
Junior Member
No Message Body

[Updated on: Wed, 07 June 2006 12:59]

Report message to a moderator

Previous Topic: *SOLVED* latest patch fails on kernel 2.6.16
Next Topic: Locale in VPS in production
Goto Forum:
  


Current Time: Fri Jun 02 19:13:29 GMT 2023

Total time taken to generate the page: 0.01421 seconds