Skip to content

Language entry

Horațiu Mlendea edited this page Nov 25, 2020 · 3 revisions

Description

The language entry represents a variant of a language for a given period of time, such as English (late 15th century - present) or Old English (5th century - late 11th century).

Example

  <LanguageEntity>
    <!-- The unique identifier of the language variant -->
    <Id>Exemplic</Id> 

    <!-- The ISO codes from the official ISO definitions -->
    <Code iso-639-2="exe" iso-639-3="exe" iso-639-6="exem" />

    <!-- List of game IDs of cultures/countries that will use the location names defined for this language.
         Please keep it sorted alphabetically first by game and then by ID. -->
    <GameIds> 
      <GameId game="CK2">exemplic</GameId>
      <GameId game="CK3">exemplic</GameId>
      <GameId game="HOI4">EXE</GameId>
    </GameIds>

    <!-- The list of fallback languages to take names from
         The order in which the IDs are put here is the order of priority (highest first) -->
    <FallbackLanguages>
      <LanguageId>Exemplic_Before1995</LanguageId>
      <LanguageId>Exemplic_Before16Century</LanguageId>
      <LanguageId>Exemplic_Old</LanguageId>
    </FallbackLanguages>
  </LanguageEntity>

Fields

  • Id
  • Code (Optional)
  • GameIds
  • FallbackLanguages (Optional)

Id

It is a unique identifier for a language variant

Conventions:

  • Each word should start with an uppercase letter
  • The parts of the name should be ordered from most to least descriptive (e.g. German_Middle_High instead of Middle_High_German)
  • The parts of the name should be separated by underscore (e.g. English_Old instead of English Old)
  • Should not contain any spaces
  • When referring to a very specific period of time, use the suffixes: _BeforeXXX (for years) and _BeforeXXCentury (for centuries)
  • When referring to more vague periods of time, like eras, use suffixes such as: _Medieval, _Ancient, etc
  • When there is an official name for a language for a period of time, use the parts of that name instead of suffixes such as _BeforeXXX or _Medieval (e.g. English_Middle instead of English_Medieval)
  • The _After* suffixes should not be used. Use _Before* instead
Clone this wiki locally