These instructions are sourced from the Debian wiki [https://wiki.debian.org/ChangeLanguage ChangeLanguage] and [https://wiki.debian.org/InputMethodBuster InputMethodBuster] entries. In Xfce, it is unnecessary to install additional language packs.
'''1.''' Open a terminal in {{project_name_workstation_long}} ([[Qubes|{{q_project_name_long}}]]: in Template).
<code>Start menu</code> → <code>Applications</code> → <code>System</code> → <code>Terminal</code>
'''2.''' Check the language environment variable.
Run. <ref>The Debian wiki notes: <blockquote>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.</blockquote></ref>
<pre>LANG=en_US.UTF-8</pre>
'''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:
* <u>Language</u>: 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 <code>ja</code>, Korean is <code>ko</code>, German is <code>de</code> and so on.
* <u>Country</u>: [https://www.iso.org/obp/ui/#search this website] ("Country Codes") identifies country codes. For example, Japan is <code>JP</code>, Korea is <code>KR</code>, Germany is <code>DE</code> and so on.
It is now possible to combine these codes to determine the language to export. For example, Japanese is <code>ja_JP.UTF-8</code>, Korean is <code>ko_KR.UTF-8</code>, German is <code>de_DE.UTF-8</code> and so on.
'''4.''' Reconfigure locales.
Reconfigure locales with the following command.
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]]
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 ([[Qubes|{{q_project_name_short}}]]: in Template):
* [https://packages.debian.org/stable/fonts/ Debian stable fonts packages].
* TrueType (TTF) and OpenType (OTF) fonts are generally recommended. These packages start with <code>fonts-</code>.
* For Korean fonts, [https://sourceforge.net/p/whonix/discussion/general/thread/fff34595/ forums] contributor previously recommended the following additional packages: <code>fonts-unfonts-core</code> (Korean TrueType fonts) and <code>nabi</code> (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. <ref>
sudo apt install fonts-unfonts-core
For example to install Japanese TrueType fonts:
sudo apt install fonts-ipaexfont
'''Figure:''' ''Japanese Font Installation in {{project_name_short}}''
[[File:Anonwhonixjapanesefont.png]]
The <code>ibus</code> package is recommended for languages other than English. As of 2021, this should work by default for the following languages:
<div style="column-count:4;-moz-column-count:4;-webkit-column-count:4">
* Romanian; Moldavian; Moldovan
'''1.''' Open a terminal in {{project_name_workstation_short}} ([[Qubes|{{q_project_name_short}}]]: in Template).
'''2.''' Install <code>ibus</code>.
'''3.''' Launch <code>ibus-setup</code> ([[Qubes|{{q_project_name_short}}]]: in Template so changes are permanent).
'''4.''' Add the preferred input method(s).
Multiple language input methods can be selected at this step.
'''Figure:''' ''Input Method Option''
[[File:Ibuslanguageselection.png]]
'''5.''' Select the preferred keyboard shortcut to change the input method.
'''Figure:''' ''Preferred Input Method Shortcut''
[[File:Languageinputshortcut.png]]
'''6.''' Reboot {{project_name_workstation_short}}.
In [[Qubes|{{q_project_name_short}}]]: shut down the Template and create a new AppVM based on the modified template.
'''7.''' 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.
'''8.''' ''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 <code>fcitx-mozc</code>] allows Japanese input. Readers who successfully configure functional Japanese and Thai input methods are encouraged to edit this wiki entry.