mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove Language and LanguageCode structures
Use ISO language codes directly instead, which has the advantage that new languages can be used in metadata without having up update the API to support them. Closes #5.
This commit is contained in:
@@ -12,6 +12,11 @@ String Encoding
|
||||
* File paths are case-sensitive if and only if the underlying file system is
|
||||
case-sensitive.
|
||||
|
||||
Language Codes
|
||||
==============
|
||||
|
||||
All language strings in the API are codes of the form ``ll`` or ``ll_CC``, where ``ll`` is an ISO 639-1 language code and ``CC`` is an ISO 3166 country code. For example, the default language for metadata message content is English, identified by the code ``en``, and Brazilian Portuguese is ``pt_BR``.
|
||||
|
||||
Errors
|
||||
======
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ Enumerations
|
||||
|
||||
.. doxygenenum:: loot::GameType
|
||||
|
||||
.. doxygenenum:: loot::LanguageCode
|
||||
|
||||
.. doxygenenum:: loot::LogVerbosity
|
||||
|
||||
.. doxygenenum:: loot::MessageType
|
||||
@@ -58,9 +56,6 @@ Classes
|
||||
.. doxygenclass:: loot::File
|
||||
:members:
|
||||
|
||||
.. doxygenclass:: loot::Language
|
||||
:members:
|
||||
|
||||
.. doxygenclass:: loot::Location
|
||||
:members:
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ The localised content data structure is a key-value string map.
|
||||
|
||||
.. describe:: lang
|
||||
|
||||
**Required.** The language that ``text`` is written in, given as a POSIX language code. LOOT supports the following languages and language codes:
|
||||
**Required.** The language that ``text`` is written in, given as a code of the form ``ll`` or ``ll_CC``, where ``ll`` is an ISO 639-1 language code and ``CC`` is an ISO 3166 country code. For example,
|
||||
|
||||
==================== ==========
|
||||
Language POSIX Code
|
||||
==================== ==========
|
||||
==================== =====
|
||||
Language Code
|
||||
==================== =====
|
||||
Brazilian Portuguese pt_BR
|
||||
Chinese zh_CN
|
||||
Danish da
|
||||
@@ -26,4 +26,4 @@ The localised content data structure is a key-value string map.
|
||||
Russian ru
|
||||
Spanish es
|
||||
Swedish sv
|
||||
==================== ==========
|
||||
==================== =====
|
||||
|
||||
Reference in New Issue
Block a user