-
LOCALE cannot be changed in Knoppix 5.1.1
Good morning to you all. I have installed Knoppix 5.1.1 . It is wonderful except for the fact that I live in Brazil and I use the language pt_BR with a lot of accents. Everything is perfect if I do not use Openoffice. I can use the accents (with the ABNT2 keyboard) wherever I want but not in Openoffice. I have installed the #apt-get install kde-i18n-ptbr and my KDE is now in Portuguese (from Brazil) but if I apply locale the result is:
root@knoppix:/home/cezar# dpkg-reconfigure locales
Generating locales (this might take a while)...
pt_BR.ISO-8859-1... done
Generation complete.
root@knoppix:/home/cezar# locale
LANG=C
LANGUAGE=us
LC_CTYPE="pt_BR"
LC_NUMERIC="pt_BR"
LC_TIME="pt_BR"
LC_COLLATE="pt_BR"
LC_MONETARY="pt_BR"
LC_MESSAGES="pt_BR"
LC_PAPER="pt_BR"
LC_NAME="pt_BR"
LC_ADDRESS="pt_BR"
LC_TELEPHONE="pt_BR"
LC_MEASUREMENT="pt_BR"
LC_IDENTIFICATION="pt_BR"
LC_ALL=pt_BR
even if I use #dpkg-reconfigure locales there is still the reference to the LANGUAGE=us...What else can I do, please. I thank you enormously for any possible help. Cezar
-
Senior Member
registered user
This might be too easy.... check the output of ` cat /proc/cmdline ` for a lang= statement ....if its not present then the system will override it with lang=us
Probably it will take editing /etc/init.d/knoppix-autoconfig
Find the localization section....
It starts out like this:
Code:
### localization
# Allow language specification via commandline. The default language
# will be overridden via "lang=de" boot commandline
# Default is now US
LANGUAGE="$(getbootparam lang 2>/dev/null)"
[ -n "$LANGUAGE" ] || LANGUAGE="us"
# The default language/keyboard to use. This CANNOT be autoprobed.
# Most of these variables will be used to generate the KDE defaults
# and will be inserted into /etc/sysconfig/* below.
case "$LANGUAGE" in
Notice all the sections are sepparated by ;; .... Youll need to add a section that looks something like this:
Code:
br)
# Brazil
COUNTRY="BR"
LANG="pt_BR@euro"
KEYTABLE="es"
XKEYBOARD="es"
KDEKEYBOARD="es"
CHARSET="iso8859-15"
# Additional KDE Keyboards
KDEKEYBOARDS="de(nodeadkeys),us,fr"
TZ="Europe/Madrid"
;;
Be sure to add this section BEFORE the " esac " statement at the end of the function
Unfortunatley I do not know the correct values for your locale... these values where taken from the spainish language set.... but hopefully this will get you pointed in the right direction....
Take Care,
-Justin
One Mynds Eye
-
Thank you very very very much I will try it and will inform you the result. Thanks again for your attention. All the best. Greetings from Brazil. Cezar
-
Senior Member
registered user
Similar Threads
-
By OErjan in forum General Support
Replies: 0
Last Post: 01-04-2010, 03:25 PM
-
By Terry Kemmerer in forum Networking
Replies: 6
Last Post: 02-21-2006, 07:19 AM
-
By honigbaer in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 01-16-2005, 01:31 PM
-
By leq75 in forum General Support
Replies: 2
Last Post: 02-28-2004, 05:39 AM
-
By kclawson in forum General Support
Replies: 1
Last Post: 12-03-2003, 02:18 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$12.90
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$21.50
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$13.50
Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM
$13.25
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$9.64
A-Tech 32GB 2x 16GB PC4-21300 Laptop SODIMM 260-Pin DDR4 2666 MHz Memory RAM Kit
$59.99
Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM
$20.99
Samsung PC4-19200 PC4 2400T 32GB DDR4 RAM Server Memory
$79.99
HyperX FURY DDR4 8GB 16GB 32GB 3200MHz PC4-25600 Desktop RAM Memory DIMM 288pins
$72.93