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:
@@ -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