Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:clinicedc/edc-constants into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
erikvw committed Sep 20, 2023
2 parents 282bd5b + f225f9f commit f2ee573
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ repos:
- "-x *test*.py"

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
language_version: python3.10

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
args:
Expand All @@ -42,12 +42,12 @@ repos:
- id: detect-private-key

- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
rev: v6.2.0
hooks:
- id: rstcheck

- repo: https://github.com/adrienverge/yamllint
rev: v1.31.0
rev: v1.32.0
hooks:
- id: yamllint
args:
Expand Down
61 changes: 61 additions & 0 deletions edc_constants/internationalization.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"""
EXTRA_LANG_INFO is a dictionary structure to provide meta information
about 'custom' languages not provided by Django (i.e. those not already
defined in: django.conf.locale.LANG_INFO).
Use 2 digit (639-1) code over 3 digit (639-2) code where available
`code` src: https://www.loc.gov/standards/iso639-2/php/code_list.php
`name_local` src: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
"""

EXTRA_LANG_INFO = {
"lg": {
"bidi": False,
"code": "lg",
"name": "Ganda",
"name_local": "Luganda",
},
"mas": {
"bidi": False,
"code": "mas",
"name": "Maasai",
"name_local": "ɔl Maa",
},
"ry": {
"bidi": False,
"code": "ry",
"name": "Runyakitara",
"name_local": "Runyakitara",
},
"rny": {
"bidi": False,
"code": "rny",
"name": "Runyankore",
"name_local": "Runyankore",
},
"st": {
"bidi": False,
"code": "st",
"name": "Sotho, Southern",
"name_local": "Sesotho [southern]",
},
"tn": {
"bidi": False,
"code": "tn",
"name": "Tswana",
"name_local": "Setswana",
},
"xh": {
"bidi": False,
"code": "xh",
"name": "Xhosa",
"name_local": "isiXhosa",
},
"zu": {
"bidi": False,
"code": "zu",
"name": "Zulu",
"name_local": "isiZulu",
},
}

0 comments on commit f2ee573

Please sign in to comment.