{{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 }}
* [[Language]] * [[Keyboard Layout]]
[[File:Language.png|thumb|200px]] {{intro| This wiki page provides information on how to change the system language in Kicksecure, as well as how to install additional languages and input methods. }} = Introduction = The system language used in {{project_name_long}} is easily changed. The technical steps are identical to the Debian method because {{project_name_long}} is based on Debian GNU/Linux and LXQt. Users can also refer to Debian or LXQt upstream documentation. It is also easy to change the language in Firefox Browser (see further below). Native English speakers do not need to make any changes. = System = These instructions are sourced from the Debian wiki [https://wiki.debian.org/ChangeLanguage ChangeLanguage] and [https://wiki.debian.org/InputMethodBuster InputMethodBuster] entries. == All Languages == {{Box|text= '''1.''' Open a terminal in {{project_name_workstation_long}}. {{Open a product ws terminal}} '''2.''' Check the language environment variable. Run. The Debian wiki notes:
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. Do not omit the LC_ALL=C component of the following command, as dpkg-reconfigure may crash without it in some instances. {{CodeSelect|code= sudo LC_ALL=C dpkg-reconfigure locales }} A window will prompt for the preferred 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:Kicksecure-terminal-japanese.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, an anonymous 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. {{Install_Package|package= fonts-unfonts-core nabi }} For example to install Japanese TrueType fonts: {{Install_Package|package= fonts-noto-cjk }} '''Figure:''' ''Japanese Font Installation in {{project_name_short}}'' [[File:Anonwhonixjapanesefont.png]] == Input Method == The ibus package is not recommended in {{project_name_short}} 18. It can interfere with both keyboard and mouse input in the default LXQt session. It is also non-trivial to configure. Most keyboard layouts are handled natively by labwc without issues. Some languages (like Japanese) require an input method application to write in the language's usual script. fcitx is known to work. To set it up: {{Box|text= '''1.''' Open a terminal in {{project_name_workstation_long}}. {{Open a product ws terminal}} '''2.''' Install fcitx. {{CodeSelect|code= sudo apt install fcitx }} '''3.''' Install an input method engine for your language. For Japanese, fcitx-mozc is known to work. {{CodeSelect|code= sudo apt install fcitx-mozc }} '''4.''' Configure fcitx to autostart on login. Run: {{CodeSelect|code= mkdir -p ~/.config/labwc nano ~/.config/labwc/autostart }} Type in the following line at the end of the file: {{CodeSelect|code= fcitx }} Save with Ctrl + S, then exit with Ctrl + X. '''5.''' Configure applications to use fcitx as an input method. Run: {{CodeSelect|code= nano ~/.config/labwc/environment }} Type in the following lines at the end of the file: {{CodeSelect|code= XMODIFIERS=@im=fcitx GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx }} '''6.''' Log out and log back in. You should see a keyboard icon in the system tray; this indicates that fcitx is running. '''7.''' Right-click the fcitx icon in the system tray, and click Configure. '''8.''' Click the + button in the lower-left corner of the window. '''9.''' Uncheck Only Show Current Language. '''10.''' Search for the input method you installed (note that this is NOT the same as the name of the language you want to write text in!). For instance, if you installed fcitx-mozc, search for mozc here. '''11.''' Click the input method, then click OK. '''12.''' Close the fcitx configuration window. '''13.''' To switch between input methods, press Ctrl + Space. The newly chosen input method will be displayed on screen. Note that fcitx tracks input methods on a per-window basis. For example, if you have two Firefox windows open, and you switch to Japanese input via Mozc in one window, the other window will still be using an English (or other) input method. '''14.''' Done. Input method configuration is now complete. '''Figure:''' ''Japanese Input in {{project_name_short}}'' [[File:Kicksecure-japanese-input-featherpad.png]] }} = 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: LanguageSet Alternatives... # 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]]