Multilingual Sites

YOOtheme Pro is multilingual-ready. With its modern language switcher, building multilingual websites in Joomla is easier than ever.

Joomla supports multilingual sites out of the box. Just install the needed languages in Joomla, duplicate and translate articles, menu items and modules, and assign them to the corresponding language. Add a language switcher to switch between these content translations. If some content is missing for a language, the assigned article or module of the default language will be shown. Learn more in the official Joomla documentation. Alternatively, use Falang or other multilingual extension to simplify the translation process.


Language Switcher

YOOtheme Pro provides a language switcher that seamlessly integrates into the main navigation or any other Joomla menu. The active language is shown as a parent item, with all available languages listed as submenu items.

To add a language switcher, simply create a new menu item in the Joomla menu manager, select System Links → URL as menu item type and enter #language-switcher as the link.

Language switcher

The language switcher is just like any other menu item. It inherits all menu position options and has all menu item options, for example, to add a globe icon next to the active language.

The language switcher menu item has additional layout options. Render the active language as a parent item with a list of all languages as submenu items to show the language switcher together with other menu items. Alternatively, render each language next to each other as top-level menu items, for example, to create a dedicated menu. Optionally, exclude the active language from the language list and show full language names instead of abbreviations.

Language switcher

Instead of the YOOtheme Pro language switcher, you can also use the Joomla language switcher module, which comes with its own options.


Translate Pages

Create multiple versions of the page for each language. Use one of the following two options:

[joomla]

Override Language Strings

Joomla allows you to easily override a specific language string without modifying any language files. Overrides can be created and managed in System → Language Overrides. Select a language, for example English (United Kingdom) - Site and create a new override. Learn more in the official Joomla documentation. To find all language strings defined by YOOtheme Pro, just search for the TPL_YOOTHEME constant.

Override language strings

Joomla stores custom language overrides in dedicated language files located in the language/overrides/ directory, with one file per language. This also makes it possible to manually copy language strings from the YOOtheme Pro language file into an override file. For example, copy strings from templates/yootheme/language/en-GB/en-GB.tpl_yootheme.ini to language/overrides/en-GB.override.ini. This approach allows all strings to be translated at once in a code editor. The resulting override file can then be reused by copying it to another Joomla installation.

Create New Language Strings

Apart from the predefined YOOtheme Pro language strings, you can create new language strings yourself. This allows you to translate any custom content within YOOtheme Pro, for example, the logo text or the newsletter messages.

Here is a short example on how to translate the logo text:

  1. Enter the language constant TPL_YOOTHEME_LOGO_TEXT to the Logo Text field. The language constant needs to be uppercase and without spaces.
  2. Create a new override in System → Language Overrides and use the TPL_YOOTHEME_LOGO_TEXT as language constant to translate it for all your languages. [/joomla]
YOOtheme Documentation