Internationalization

Configure language support, regional settings, fonts, spell-checking dictionaries and input methods in MocaccinoOS.

Internationalization

MocaccinoOS provides internationalization features through modular packages and layers. These allow users to configure their preferred language, regional settings, fonts, spell-checking dictionaries and input methods.

Many language components are optional and can be installed when needed, keeping the base system lightweight.

This guide covers the following areas:

  • Locale and regional settings.
  • Keyboard layouts.
  • Fonts and support for additional writing systems.
  • Spell-checking dictionaries.
  • Input methods for Chinese, Japanese, Korean and other languages.

Locale and Regional Settings

A locale defines language and regional conventions used by applications. It controls settings such as:

  • Language used by applications.
  • Date and time formats.
  • Number formatting and decimal separators.
  • Currency formats.
  • Sorting and character classification.

The system locale is separate from the language settings of individual desktop applications.

Check the Current Locale

To display the current locale configuration:

1
$ locale

To list the locales available on the system:

1
$ locale -a

Configure the System Locale

MocaccinoOS uses systemd for system configuration. The localectl command can be used to inspect and configure the system locale.

Display the current locale configuration:

1
$ localectl status

List available locales:

1
$ localectl list-locales

Set the system locale, for example, to English (United States):

1
$ sudo localectl set-locale LANG=en_US.UTF-8

Replace en_US.UTF-8 with a locale available on your system.

You can verify the configuration with:

1
$ localectl status

The locale is normally applied to new login sessions. Log out and back in if applications continue using the previous settings.

Note: A locale must be available on the system before it can be selected. If the required locale is missing from locale -a, the corresponding locale data must be generated or installed first.

Desktop Language and Regional Formats

Desktop environments may provide their own language and regional settings.

These settings can control the language and formats used by the desktop session and applications, independently of the system-wide locale.

For example:

  • KDE Plasma: Configure language and regional formats in System Settings under the regional settings sections.
  • GNOME: Configure language and regional formats through Settings.
  • XFCE and MATE: Language and regional settings may depend on the installed desktop utilities and application configuration.
  • COSMIC: Use the available language and regional settings in COSMIC Settings. Options depend on the installed version.

Changing the desktop language does not necessarily change the system locale or keyboard layout.

Keyboard Layouts

A keyboard layout determines how physical keyboard keys are interpreted. It is independent of the language used by applications and of input methods such as Fcitx or IBus.

Desktop environments generally provide their own keyboard configuration interfaces.

For example, KDE Plasma provides keyboard layout configuration under System Settings → Keyboard → Layouts.

To inspect available console keyboard layouts:

1
$ localectl list-keymaps

To configure the console keyboard layout, use:

1
$ sudo localectl set-keymap us

Replace us with the appropriate keymap.

The console keymap and the keyboard layout used by a graphical desktop session are separate settings. Configure the latter through the desktop environment when necessary.

Fonts and Language Support

Some writing systems require additional fonts that may not be included in a minimal installation.

This is particularly relevant for:

  • Chinese, Japanese and Korean (CJK).
  • Arabic and other right-to-left scripts.
  • Indic writing systems.
  • Additional Unicode symbols and emoji.

If characters appear as empty boxes or are missing from applications, the required font may not be installed.

MocaccinoOS provides additional language and font components through its package repositories. Install the font packages appropriate for the writing systems you need.

After installing additional fonts, applications may need to be restarted before they detect them.

Spell-Checking Dictionaries

MocaccinoOS provides multilingual spell-checking dictionaries through the app/myspell-dicts package group.

These dictionaries can be used by applications such as:

  • LibreOffice.
  • Firefox and Chromium.
  • Text editors such as Kate and KWrite.
  • Other GTK and Qt applications that support spell checking.

Install Dictionaries

To install the available MySpell dictionaries:

1
$ sudo luet install app/myspell-dicts

The package group provides dictionaries for many languages, including:

  • Afrikaans, Bulgarian, Catalan, Czech and Danish.
  • German, Greek, English, Esperanto and Spanish.
  • Estonian, French, Irish and Galician.
  • Hebrew, Croatian, Hungarian and Icelandic.
  • Italian, Kazakh, Khmer, Lithuanian and Latvian.
  • Macedonian, Malay, Norwegian (Bokmål and Nynorsk).
  • Dutch, Polish, Portuguese (European and Brazilian).
  • Romanian, Russian, Slovak, Slovenian, Swedish and Ukrainian.

The dictionaries are installed system-wide and can be used by applications that support the MySpell dictionary format.

Select a Dictionary in Applications

After installation, supported applications should detect the available dictionaries.

The language can usually be selected through the application’s spell-checking settings.

For example:

  • LibreOffice: Select the language in the document or paragraph language settings.
  • Kate and KWrite: Select the spell-checking language in the application settings or document tools.
  • Firefox and Chromium: Select the appropriate language in the spell-checking settings.

Multiple dictionaries can be installed and used simultaneously.

The dictionary package group contains runtime dictionary data and does not include development files.

Input Methods

Input methods allow users to enter text using languages and writing systems that cannot be conveniently typed using a standard keyboard layout.

They are particularly useful for Chinese, Japanese and Korean, where text is commonly entered using phonetic input, conversion engines or character tables.

MocaccinoOS provides input method support through the layers/input layer.

Install Input Method Support

Install the input layer:

1
$ sudo luet install layers/input

This layer includes both Fcitx and IBus, together with their input engines and integration components.

The layer includes:

Fcitx:

  • Fcitx5 core and configuration tool.
  • Chinese input engines and tables.
  • Anthy engine for Japanese input.
  • GTK and Qt integration modules.
  • libime and OpenCC support for Simplified and Traditional Chinese conversion.

IBus:

  • IBus framework.
  • Hangul input support.
  • Pinyin input.
  • Anthy engine for Japanese input.
  • Table-based input methods.

Both frameworks share several underlying libraries and runtime components.

The layers/input layer depends on layers/kde-common.

Choose an Input Method Framework

Both Fcitx and IBus are installed by the same layer. You only need to activate one framework in your desktop session.

Feature Fcitx IBus
KDE Plasma integration Yes Yes
GNOME integration Yes Yes
X11 support Yes Yes
Wayland support Yes Yes
GTK integration Yes Yes
Qt integration Yes Yes

Fcitx is commonly used with KDE Plasma, while IBus is commonly used with GNOME. Both frameworks can be used in other desktop environments as well.

KDE Plasma

KDE Plasma provides input method selection through its virtual keyboard settings.

Open System Settings → Input Devices → Virtual Keyboard.

Select either Fcitx or IBus as the virtual keyboard framework.

Log out and log back in after changing the selection.

On Plasma Wayland sessions, Fcitx is usually detected automatically after installation.

Configure Fcitx

Fcitx provides a graphical configuration tool for managing input methods and engines.

Start the configuration tool:

1
$ fcitx-configtool

Use it to add and configure the input methods you need, such as:

  • Pinyin for Chinese.
  • Anthy for Japanese.
  • Hangul for Korean.
  • Table-based input methods.

The available engines depend on the components installed with layers/input.

Environment Variables

For some X11 sessions and desktop environments, input method environment variables may need to be configured manually.

For example, when using a login manager that reads ~/.xprofile, the following settings can be used for Fcitx:

1
2
3
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

These settings are intended for X11 sessions. Do not apply them indiscriminately to Wayland sessions, where input method integration is handled differently.

Log out and back in after changing session environment variables.

Configure IBus

IBus provides its own configuration tool for managing input methods.

Start the configuration tool:

1
$ ibus-setup

Use the interface to add and configure the required input methods, such as Pinyin, Anthy or Hangul.

Environment Variables

For some X11 sessions and desktop environments, the following environment variables may be required:

1
2
3
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus

These settings are intended for X11 sessions. Wayland sessions use their own input method integration.

Log out and back in after changing session environment variables.

Troubleshooting

Characters Are Missing or Display Incorrectly

If applications display empty boxes or missing characters, the required font may not be installed.

Install suitable fonts for the writing system and restart the affected applications.

A Spell-Checking Language Is Not Available

Check that the dictionary package group is installed:

1
$ sudo luet search app/myspell-dicts -q --installed

If it is not installed, install it:

1
$ sudo luet install app/myspell-dicts

Restart the application and check its spell-checking language settings.

Input Methods Are Not Available

Check that the input layer is installed:

1
$ sudo luet search layers/input -q --installed

Make sure that the correct framework is selected in the desktop environment.

After installing or changing input method configuration, log out and back in.

Input Methods Do Not Work in Applications

Input method integration can differ between GTK and Qt applications and between X11 and Wayland sessions.

Check that:

  • The intended framework (Fcitx or IBus) is selected.
  • The required input engine is available.
  • The relevant GTK or Qt integration components are installed.
  • X11 environment variables are configured when required.
  • The desktop session has been restarted after configuration changes.

Avoid enabling Fcitx and IBus simultaneously as the active input method frameworks.

Further Reading

Last modified November 29, 2026: Update SFTP (f553589)