Sublang

From ReactOS Wiki
Jump to: navigation, search

Main article: Translation Introduction

General Rules

  • If the primary language has only one sublanguage, use SUBLANG_DEFAULT or SUBLANG_NEUTRAL.
    We highly recommend using SUBLANG_DEFAULT here, but to retain compatibility with the Wine Sublang Rules we also allow using SUBLANG_NEUTRAL. This means that you also shouldn't change SUBLANG_NEUTRAL to SUBLANG_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 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.
  • For LANG_CHINESE, as the sublanguages differ very much in the used alphabet, you cannot use SUBLANG_DEFAULT for this language. You need to decide on one of the following sublanguage: SUBLANG_CHINESE_SIMPLIFIED, SUBLANG_CHINESE_TRADITIONAL or SUBLANG_CHINESE_HONGKONG.

Web Links