Localization
DITA-OT supports more than 40 languages. The full list of supported languages (and their codes) is available here: https://www.dita-ot.org/dev/topics/globalization-languages.
There are two ways to switch the labels to a specific language:
- Set the
@xml:lang
attribute on the DITA maps and/or topics root element with one of the supported values (e.g.de
,fr-FR
,ru
,zh-CN
). - Set the
default.language
parameter in the transformation dialog box to the desired language code.
You can create language-dependent CSS rules in your customization CSS by adding rules using the
:lang
pseudo-class (see https://developer.mozilla.org/en-US/docs/Web/CSS/:lang).
Tip:
It is recommended that you do this customization on a
DITA-OT distribution deployed outside of the Oxygen installation. Otherwise, you will
lose the customization when upgrading Oxygen. You can contact the
Oxygen support team to ask for the Oxygen Publishing Engine
package.