Sublang
Main article: Translation Introduction
General Rules
- If the primary language has only one sublanguage, use
SUBLANG_DEFAULT
orSUBLANG_NEUTRAL
.
We highly recommend usingSUBLANG_DEFAULT
here, but to retain compatibility with the Wine Sublang Rules we also allow usingSUBLANG_NEUTRAL
. This means that you also shouldn't changeSUBLANG_NEUTRAL
toSUBLANG_DEFAULT
in a component we share with Wine. - If the primary language has more than one sublanguage and we have no general translation for this primary language yet, use
SUBLANG_NEUTRAL
for the general translation. - If the primary language has more than one sublanguage, we already have a general translation for this primary language and you want to add a translation specifically for this sublanguage, use SUBLANG_SubLanguageName for this specific translation.
Exceptions of these Rules
- If the primary language is
LANG_ENGLISH
and you want to add a general english translation, you have to useSUBLANG_ENGLISH_US
.
Every file, which contains translations, should have aLANG_ENGLISH
,SUBLANG_ENGLISH_US
translation as this is also used as a fallback. - For
LANG_IRISH
, you cannot useSUBLANG_DEFAULT
. In this case, you have to useSUBLANG_IRISH_IRELAND
. - If you want to add a chinese translation, decide on either
SUBLANG_CHINESE_SIMPLIFIED
orSUBLANG_CHINESE_TRADITIONAL
.
As both languages differ very much in the used alphabet, we should set no default or neutral language here.