Sublang
Revision as of 21:56, 10 July 2007 by Colin Finck (talk | contribs) (Add an exception for chinese, hope this is correct)
General Rules
- If the primary language has only one sublanguage, use SUBLANG_DEFAULT.
- 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 use SUBLANG_ENGLISH_US.
Every file, which contains translations, should have a LANG_ENGLISH, SUBLANG_ENGLISH_US translation as this is also used as a fallback. - For LANG_IRISH, you cannot use SUBLANG_DEFAULT. In this case, you have to use SUBLANG_IRISH_IRELAND.
- If you want to add a chinese translation, decide on either SUBLANG_CHINESE_SIMPLIFIED or SUBLANG_CHINESE_TRADITIONAL.
As both languages differ very much in the used alphabet, we should set no default or neutral language here.