Skip to content

Commit

Permalink
languages: add some mapping alpha-3 to alpha-2
Browse files Browse the repository at this point in the history
* Closes #748.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Jan 17, 2022
1 parent 556b3b9 commit 373db97
Showing 1 changed file with 179 additions and 8 deletions.
187 changes: 179 additions & 8 deletions sonar/config_sonar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,190 @@
SONAR_APP_ANGULAR_URL = 'https://localhost:5000/manage/'
"""Link to angular integrated app root."""

SONAR_APP_LANGUAGES_MAP = dict(fre='fr',
ger='de',
eng='en',
ita='it',
spa='sp',
SONAR_APP_LANGUAGES_MAP = dict(aar='aa',
abk='ab',
afr='af',
aka='ak',
alb='sq',
amh='am',
ara='ar',
arg='an',
arm='hy',
asm='as',
ava='av',
ave='ae',
aym='ay',
aze='az',
bak='ba',
bam='bm',
bel='be',
baq='eu',
ben='bn',
bih='bh',
bis='bi',
bos='bs',
bre='br',
bul='bg',
bur='my',
cat='ca',
cha='ch',
che='ce',
chi='zh',
lat='la',
heb='iw',
chu='cu',
chv='cv',
cor='kw',
cos='co',
cre='cr',
cze='cs',
dan='da',
div='dv',
dut='nl',
dzo='dz',
eng='en',
epo='eo',
est='et',
ewe='ee',
fao='fo',
fij='fj',
fin='fi',
fre='fr',
fry='fy',
ful='ff',
geo='ka',
ger='de',
gla='gd',
gle='ga',
glg='gl',
glv='gv',
gre='el',
grn='gn',
guj='gu',
hat='ht',
hau='ha',
heb='he',
her='hz',
hin='hi',
hmo='ho',
hrv='hr',
hun='hu',
ibo='ig',
ice='is',
ido='io',
iii='ii',
iku='iu',
ile='ie',
ina='ia',
ind='id',
ipk='ik',
ita='it',
jav='jv',
jpn='ja',
kal='kl',
kan='kn',
kas='ks',
kau='kr',
kaz='kk',
khm='km',
kik='ki',
kin='rw',
kir='ky',
kom='kv',
kon='kg',
kor='ko',
kua='kj',
kur='ku',
lao='lo',
lat='la',
lav='lv',
lim='li',
lin='ln',
lit='lt',
ltz='lb',
lub='lu',
lug='lg',
mac='mk',
mah='mh',
mal='ml',
mao='mi',
mar='mr',
may='ms',
mlg='mg',
mlt='mt',
mon='mn',
nau='na',
nav='nv',
nbl='nr',
nde='nd',
ndo='ng',
nep='ne',
nno='nn',
nob='nb',
nor='no',
nya='ny',
oci='oc',
oji='oj',
ori='or',
orm='om',
oss='os',
pan='pa',
per='fa',
pli='pi',
pol='pl',
por='pt',
pus='ps',
que='qu',
roh='rm',
rum='ro',
run='rn',
rus='ru',
afr='af')
sag='sg',
san='sa',
sin='si',
slo='sk',
slv='sl',
sme='se',
smo='sm',
sna='sn',
snd='sd',
som='so',
sot='st',
spa='es',
srd='sc',
srp='sr',
ssw='ss',
sun='su',
swa='sw',
swe='sv',
tah='ty',
tam='ta',
tat='tt',
tel='te',
tgk='tg',
tgl='tl',
tha='th',
tib='bo',
tir='ti',
ton='to',
tsn='tn',
tso='ts',
tuk='tk',
tur='tr',
twi='tw',
uig='ug',
ukr='uk',
urd='ur',
uzb='uz',
ven='ve',
vie='vi',
vol='vo',
wel='cy',
wln='wa',
wol='wo',
xho='xh',
yid='yi',
yor='yo',
zha='za',
zul='zu')

SONAR_APP_PREFERRED_LANGUAGES = ['eng', 'fre', 'ger', 'ita']
"""Order of preferred languages for displaying value in views."""
Expand Down

0 comments on commit 373db97

Please sign in to comment.