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:
Oliver Hamlet
2017-02-12 10:08:37 +00:00
parent 0dbdadf5ab
commit 4ffd784d87
29 changed files with 134 additions and 486 deletions
@@ -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
==================== ==========
==================== =====