Difference between revisions of "Sublang"

From ReactOS Wiki
Jump to: navigation, search
(Add an exception for chinese, hope this is correct)
Line 7: Line 7:
 
* If the primary language is LANG_ENGLISH and you want to add a general english translation, you have to use SUBLANG_ENGLISH_US.<br>Every file, which contains translations, should have a LANG_ENGLISH, SUBLANG_ENGLISH_US translation as this is also used as a fallback.
 
* If the primary language is LANG_ENGLISH and you want to add a general english translation, you have to use SUBLANG_ENGLISH_US.<br>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.
 
* 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.<br>As both languages differ very much in the used alphabet, we should set no default or neutral language here.
== Languages that need to be discussed ==
 
* Simplified Chinese vs. Traditional Chinese, can we set a default or neutral language here or do we always need two different translations?
 
  
 
== Web Links ==
 
== Web Links ==
 
* [http://msdn2.microsoft.com/en-us/library/ms776294.aspx MSDN: Language Identifier Constants and Strings]
 
* [http://msdn2.microsoft.com/en-us/library/ms776294.aspx MSDN: Language Identifier Constants and Strings]
 
* [http://support.microsoft.com/kb/169483/en-us Resource Language Loading Order]
 
* [http://support.microsoft.com/kb/169483/en-us Resource Language Loading Order]

Revision as of 21:56, 10 July 2007

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.

Web Links