Hack 4 Speak Different Languages 
One of the advantages of Linux is its native
language support. Knoppix is provided in English and German versions,
but other languages are supported.
Knoppix's popularity
has spanned the globe, and as a result, it comes bundled with support
for many different languages. While versions exist that default to
German or English, Knoppix can easily boot into many different
languages through the use of cheat codes. This hack covers the
following language cheat codes:
|
Cheat code
|
Purpose
|
|---|
knoppix lang=cn|de|da|es|fr|it|nl| pl|ru|sk|tr|tw|us
|
Specify language/keyboard
|
knoppix keyboard=us
|
Use different console keyboard
|
Knoppix xkeyboard=us
|
Use a different X keyboard
|
When changing language options, the
lang cheat code is the main cheat code to
use. To change the default language to Spanish, for instance, simply
pass the cheat code at the boot: prompt:
lang=es
This cheat code takes care of all of the locale options, so that all
menus, prompts, the desktop environment, and the keyboard are set to
the specified language.
 |
Many beta Knoppix CDs come
only in German versions. The differences in the German and English
keyboard layouts make themselves apparent when you try to enter the
lang=us cheat code. The = key on the German
keyboard can be entered with Shift-0, the / key is located at
Shift-7, and the _ key can be typed with Shift-/. If you want to
enter the keyboard or xkeyboard
cheat code, keep in mind that the Z and Y keys on the German keyboard
are swapped.
|
|
To change the
keyboard mapping separately from the
default locale, use the keyboard
and xkeyboard cheat codes. These options change
the keyboard language used on the console and graphical desktop
respectively.
If you have forgotten to set the
lang cheat code before booting up and find that
your German is a bit rusty, you can change the language settings from
the desktop without rebooting. The first step is to change
KDE's language
settings:
Click on the German flag at the bottom right of the desktop to the
left of the clock. Each click will cycle through a list of flags
corresponding to languages. Click K Menu Einstellungen Kontrollzentrum to
launch the KDE Control Center. From the KDE Control Center, click on Regionaleinstellungen &
Zugangshilfen Land/Region & Sprache. Pick out the appropriate country from the drop-down menu at the top,
choose your language from the Languages list, and click Anwenden at
the bottom to apply the changes.
While the Control Center is open, follow these steps to change your
keyboard layout:
Click on Tastaturlayout in the Control Center sidebar. Pick the appropriate language from the drop-down menu labeled
Verfugbare Belegungen. Click Hinzufugen to move that language to the list of active
languages. Click Anwenden to apply the changes. Changes to the language settings
apply only to new programs, so anything that is currently open must
be restarted if you want the menus to change.
This still does not change the language of any icons on the desktop.
To do this, you must completely restart the desktop environment, so
either click K Menu KNOPPIX Utilities
Choose/Restart KNOPPIX Desktop, or type this command in a
shell to drop down to text mode:
knoppix@ttyp0[knoppix]$ sudo init 2
Then bring the desktop back up by typing this command:
root@tty1[/]# init 5
Some applications, such as Mozilla, still must have their language
changed manually even after restarting the desktop. To change the
Mozilla menus:
Click on Bearbeiten Einstellungen to bring up the Mozilla
settings. Select Erscheinungsbild Sprachen/Inhalt. Choose your language under Installierte Sprachpakete and click OK. If
your language isn't listed there, click the Weitere
herunterladen button to download other language packs. Restart Mozilla for the changes to take effect.
If you need to change many programs, it is simpler and faster to just
reboot and use the correct cheat code.
|