{{Header}} {{Title|title= Change the System or Browser Language }} {{#seo: |description=How to change the User Interface Language for your Operating System and Tor Browser |image=Language.png }}
First, you have to set EnvironmentVariables such as LANG, LANGUAGE, LC_CTYPE, LC_MESSAGES to your local language. Usually LANG (or LC_ALL) is sufficient.{{CodeSelect|code= env {{!}} grep LANG }} The output should show.
LANG=en_US.UTF-8'''3.''' Determine the code for your language and country. Before re-configuring the locale to your local language it is necessary to identify the two letter code for your language and country: * Language: the two-letter ISO 639-1 language code is found in the fourth column (639-1) [https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes here]. For example, Japanese is
ja
, Korean is ko
, German is de
and so on.
* Country: [https://www.iso.org/obp/ui/#search this website] ("Country Codes") identifies country codes. For example, Japan is JP
, Korea is KR
, Germany is DE
and so on.
It is now possible to combine these codes to determine the language to export. For example, Japanese is ja_JP.UTF-8
, Korean is ko_KR.UTF-8
, German is de_DE.UTF-8
and so on.
'''4.''' Reconfigure locales.
Reconfigure locales with the following command.
{{CodeSelect|code=
sudo dpkg-reconfigure locales
}}
A window will prompt for the preferred the locale(s) to be made available. Select the preferred option(s) with the space bar -- multiple locales can be chosen.
'''5.''' Reboot {{project_name_workstation_short}}.
This is required for the changes to take effect.
'''Figure:''' ''Japanese Locale in {{project_name_short}}''
[[File:Anonwhonixjapanese.png]]
}}
== Fonts ==
Depending on the locale, it may be necessary to install [https://wiki.debian.org/Fonts additional fonts] in {{project_name_workstation_short}} so characters present correctly system-wide
'''1.''' Platform specific notice.
* [[{{project_name_short}}|{{project_name_short}}]]: No special notice.
* [[{{q_project_name_short}}|{{q_project_name_short}}]]: In Template.
'''2.''' Font installation.
* [https://packages.debian.org/stable/fonts/ Debian stable fonts packages].
* TrueType (TTF) and OpenType (OTF) fonts are generally recommended. These packages start with fonts-
.
* For Korean fonts, [https://sourceforge.net/p/whonix/discussion/general/thread/fff34595/ forums] contributor previously recommended the following additional packages: fonts-unfonts-core
(Korean TrueType fonts) and nabi
(Korean X input method). After restarting {{project_name_workstation_short}} and starting nabi, the Korean script should be available system-wide for writing and reading.
{{CodeSelect|code=
sudo apt install fonts-unfonts-core
}}
{{CodeSelect|code=
sudo apt install nabi
}}
For example to install Japanese TrueType fonts:
{{CodeSelect|code=
sudo apt update
}}
{{CodeSelect|code=
sudo apt install fonts-ipaexfont
}}
'''Figure:''' ''Japanese Font Installation in {{project_name_short}}''
[[File:Anonwhonixjapanesefont.png]]
== Input Method ==
The ibus
package is recommended for languages other than English. As of 2021, this should work by default for the following languages:
ibus
.
{{CodeSelect|code=
sudo apt install ibus
}}
'''4.''' Launch ibus-setup
([[Qubes|{{q_project_name_short}}]]: in Template so changes are permanent).
{{CodeSelect|code=
ibus-setup
}}
'''5.''' Add the preferred input method(s).
Multiple language input methods can be selected at this step.
'''Figure:''' ''Input Method Option''
[[File:Ibuslanguageselection.png]]
'''6.''' Select the preferred keyboard shortcut to change the input method.
'''Figure:''' ''Preferred Input Method Shortcut''
[[File:Languageinputshortcut.png]]
'''7.''' Reboot.
* {{project_name_short}}: No special notice.
* {{q_project_name_short}}: Shut down the Template and create a new AppVM based on the modified template.
Reboot {{project_name_workstation_short}}.
{{CodeSelect|code=
reboot
}}
'''8.''' Test the preferred input method(s) functionality.
* Open a terminal in {{project_name_workstation_short}}.
* Use either the language icon on the system tray or the keyboard shortcut to change the input method.
* If the procedure was successful, languages other than English will present correctly.
'''9.''' ''Optional:'' Asian input method(s).
Preliminary tests reveal additional Input Method Engine (IME) packages must be installed for Chinese and Korean functionality; refer to the Debian [https://wiki.debian.org/InputMethodBuster InputMethodBuster] entry for further information. After installation of IME packages, follow steps 3-7.
Be aware that this method seems it does not appear to work for Japanese and Thai. Additional libraries, IME packages or fonts are likely necessary; for instance [https://forums.whonix.org/t/adding-language-support/1757 one {{project_name_short}} user] has reported that [https://www.ubuntubuzz.com/2019/07/mozc-and-fcitx-for-japanese-writings-on-debian-10-buster.html installing fcitx-mozc
] allows Japanese input. Readers who successfully configure functional Japanese and Thai input methods are encouraged to edit this wiki entry.
}}
= Firefox =
Using one of the methods below is sufficient to change the language in [https://www.mozilla.org/en-US/firefox/new/ Firefox].
== about:preferences Method ==
# Type about:preferences
in the URL bar.
# Scroll down to the languages section and search for the preferred language: Language
→ Search for more languages
# Add the preferred language.
# Restart Firefox.
'''Figure:''' ''Firefox Language Selection''
[[File:Torbrowserlanguageselection.png]]
== Mozilla Firefox Language Pack Method ==
https://addons.mozilla.org/en-US/firefox/language-tools/
== Debian Firefox Language Pack Method ==
{{mbox
| type = notice
| image = [[File:Ambox_notice.png|40px|alt=Info]]
| text = Untested. Please test and leave feedback.
}}
Complete these steps in {{project_name_workstation_short}}.
{{Box|text=
'''1.''' Update the package lists.
{{CodeSelect|code=
sudo apt update
}}
'''2.''' Search for available language packs.
{{CodeSelect|code=
apt-cache search firefox-esr-l10n-
}}
'''3.''' Install a language pack.
In the example below, replace -de with the preferred language.
{{CodeSelect|code=
sudo apt install firefox-esr-l10n-de
}}
}}
= See Also =
* [[Keyboard Layout]]
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]