Please login or register.

Login with username, password and session length
Advanced search  


Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

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


  • Member
  • *
  • Posts: 1
language pt-Br ?
« on: September 04, 2008, 01:16:54 pm »

How can I change the language for the Portuguese?


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



  • Packager
  • Vectorian
  • ****
  • Posts: 2921
    • The Linux Works
Re: language pt-Br ?
« Reply #2 on: September 04, 2008, 02: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/  To change the default system language to Brazilian Portuguese change:

Code: [Select]
export LANG=en_US

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]

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, 02:58:44 pm by caitlyn »
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VL64 7.1

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