VectorLinux
August 28, 2014, 05:08:53 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: language pt-Br ?  (Read 2091 times)
Demolition
Member
*
Posts: 1


« on: September 04, 2008, 12:16:54 pm »

How can I change the language for the Portuguese?
Logged
bigpaws
Vectorian
****
Posts: 1847


« Reply #1 on: September 04, 2008, 01:04:03 pm »

http://www.bigwebmaster.com/General/Howtos/Intkeyb/

Bigpaws
Logged
caitlyn
Packager
Vectorian
****
Posts: 2874


WWW
« 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:
export LANG=en_US

to:

Code:
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:
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 » Logged

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!