Difference between revisions of "Sublang"

From ReactOS Wiki
Jump to: navigation, search
(New rules :-))
Line 1: Line 1:
*Bulgarian
+
== General Rules ==
**SUBLANG_DEFAULT
+
* 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.
  
*Czech
+
== Exceptions of these Rules ==
**SUBLANG_DEFAULT (Visual Studio requires this.)
+
* 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.
  
*Chinese
+
== Web Links ==
 
+
* [http://msdn2.microsoft.com/en-us/library/ms776294.aspx MSDN: Language Identifier Constants and Strings]
*Danish
+
* [http://support.microsoft.com/kb/169483/en-us Resource Language Loading Order]
**SUBLANG_DEFAULT (Visual Studio requires this.)
 
 
 
*Dutch
 
 
 
*English
 
**SUBLANG_NEUTRAL (Visual Studio requires this.)
 
 
 
*French
 
**SUBLANG_NEUTRAL  (Visual Studio requires this.)
 
 
 
*Frisian
 
 
 
*Finnish
 
 
 
*German
 
**SUBLANG_NEUTRAL
 
 
 
*Greek
 
 
 
*Hungarian
 
 
 
*Icelandic
 
 
 
*Irish Gaelic
 
 
 
*Italian
 
 
 
*Japanese
 
**SUBLANG_DEFAULT (Visual Studio requires this.)
 
 
 
*Lithuanian
 
 
 
*Norweigan
 
**SUBLANG_NORWEGIAN_BOKMAL
 
**SUBLANG_NORWEGIAN_NYNORSK
 
 
 
*Persian
 
 
 
*Polish
 
**SUBLANG_NEUTRAL
 
 
 
*Portuguese
 
**SUBLANG_PORTUGUESE
 
**SUBLANG_PORTUGUESE_BRAZILIAN
 
 
 
*Romanian
 
 
 
*Russian
 
 
 
*Spanish
 
**SUBLANG_NEUTRAL (Visual Studio requires this.)
 
 
 
*Swedish
 
**SUBLANG_NEUTRAL (Visual Studio requires this.)
 
 
 
*Urdu
 
 
 
 
 
For more info see [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_19ir.asp SubLanguage Identifiers]
 
 
 
Taking a glance at the ReactOS source code, it looks like ROS doesn't support the new SUBLANG identifyers introduced in Windows Vista (for example, SUBLANG_PORTUGUESE_PORTUGAL).
 

Revision as of 13:55, 9 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.

Web Links