Please support VectorLinux!

Author Topic: language pt-Br ?  (Read 2339 times)

Demolition

  • Member
  • *
  • Posts: 1
language pt-Br ?
« on: September 04, 2008, 12:16:54 pm »
How can I change the language for the Portuguese?

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: language pt-Br ?
« Reply #1 on: September 04, 2008, 01:04:03 pm »

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2876
    • The Linux Works
Re: language pt-Br ?
« Reply #2 on: September 04, 2008, 01:53:20 pm »
Errr... bigpaws... what you gave him only changes the keyboard and that really isn't necessary.  He can change the keyboard without going through all the mess with xmodmap by just selecting the proper default keyboard in X.  I'm reasonably sure what Demolition wants is to change the default language so that menus, help files, icon text, etc... are all in Portuguese.  Localization is much more than a keyboard change.

What really needs to be done is to change the default locale and language to Brazilian Portuguese.  Unfortunately Vector Linux doesn't have an easy tool to do this so you need to edit some configuration files.  You can make the change for either system default, a single user, or both.

System default language (not locale) is controlled from /etc/profile.d/lang.sh  To change the default system language to Brazilian Portuguese change:

Code: [Select]
export LANG=en_US
to:

Code: [Select]
export LANG=pt_BR
If you use csh you'll also need to change your /etc/profile.d/lang.csh file.

You also want to set your language, locale, and messages in your .bashrc file in your home directory.  You'll need to add the following four lines:

Code: [Select]
LANG=pt_BR
LANGUAGE=pt_BR
LC_MESSAGES=pt_BR
LC_ALL=pt_BR

Before the end of the file you then export all four variables and you'll be all set.  If you install KDE or run SOHO you will also need to install the KDE i18n package.

You probably will also want language packs for Firefox and Portuguese dictionaries.  We have those in the repository though you may have to enable testing to install them with gslapt or slapt-get.  There are also language packs for Thunderbird and Sunbird if you choose to install those.  VL does NOT include language packs for OpenOffice or Seamonkey as of yet.  Please note that the Vector Linux aspell-pt package includes both Portuguese for Portugal and for Brazil, unlike some other distros.

Changes take effect the next time you login.

I hope this helps...



« Last Edit: September 04, 2008, 01:58:44 pm by caitlyn »
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1