Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MO-P
CMS
Commits
0401c533
Unverified
Commit
0401c533
authored
3 years ago
by
Grace Hawkins
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Complete language codes list (#1197)
parent
16213940
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmscontrib/loaders/polygon.py
+63
-2
63 additions, 2 deletions
cmscontrib/loaders/polygon.py
with
63 additions
and
2 deletions
cmscontrib/loaders/polygon.py
+
63
−
2
View file @
0401c533
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
# Copyright © 2014-2017 Stefano Maggiolo <s.maggiolo@gmail.com>
# Copyright © 2014-2017 Stefano Maggiolo <s.maggiolo@gmail.com>
# Copyright © 2018 Edoardo Morassutto <edoardo.morassutto@gmail.com>
# Copyright © 2018 Edoardo Morassutto <edoardo.morassutto@gmail.com>
# Copyright © 2018 Luca Wehrstedt <luca.wehrstedt@gmail.com>
# Copyright © 2018 Luca Wehrstedt <luca.wehrstedt@gmail.com>
# Copyright © 2021 Grace Hawkins <amoomajid99@gmail.com>
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# it under the terms of the GNU Affero General Public License as
...
@@ -40,8 +41,68 @@ def make_timedelta(t):
...
@@ -40,8 +41,68 @@ def make_timedelta(t):
return
timedelta
(
seconds
=
t
)
return
timedelta
(
seconds
=
t
)
# TODO: add all languages.
LANGUAGE_MAP
=
{
LANGUAGE_MAP
=
{
'
english
'
:
'
en
'
,
'
russian
'
:
'
ru
'
,
'
italian
'
:
'
it
'
}
'
afrikaans
'
:
'
af
'
,
'
arabic
'
:
'
ar
'
,
'
armenian
'
:
'
hy
'
,
'
azerbaijani
'
:
'
az
'
,
'
belarusian
'
:
'
be
'
,
'
bengali
'
:
'
bn
'
,
'
bosnian
'
:
'
bs
'
,
'
bulgarian
'
:
'
bg
'
,
'
catalan
'
:
'
ca
'
,
'
chinese
'
:
'
zh
'
,
'
croatian
'
:
'
hr
'
,
'
czech
'
:
'
cs
'
,
'
danish
'
:
'
da
'
,
'
dutch
'
:
'
nl
'
,
'
english
'
:
'
en
'
,
'
estonian
'
:
'
et
'
,
'
filipino
'
:
'
fil
'
,
'
finnish
'
:
'
fi
'
,
'
french
'
:
'
fr
'
,
'
georgian
'
:
'
ka
'
,
'
german
'
:
'
de
'
,
'
greek
'
:
'
el
'
,
'
hebrew
'
:
'
he
'
,
'
hindi
'
:
'
hi
'
,
'
hungarian
'
:
'
hu
'
,
'
icelandic
'
:
'
is
'
,
'
indonesian
'
:
'
id
'
,
'
irish
'
:
'
ga
'
,
'
italian
'
:
'
it
'
,
'
japanese
'
:
'
ja
'
,
'
kazakh
'
:
'
kk
'
,
'
korean
'
:
'
ko
'
,
'
kyrgyz
'
:
'
ky
'
,
'
latvian
'
:
'
lv
'
,
'
lithuanian
'
:
'
lt
'
,
'
macedonian
'
:
'
mk
'
,
'
malay
'
:
'
ms
'
,
'
mongolian
'
:
'
mn
'
,
'
norwegian
'
:
'
no
'
,
'
persian
'
:
'
fa
'
,
'
polish
'
:
'
pl
'
,
'
portuguese
'
:
'
pt
'
,
'
romanian
'
:
'
ro
'
,
'
russian
'
:
'
ru
'
,
'
serbian
'
:
'
sr
'
,
'
sinhala
'
:
'
si
'
,
'
slovak
'
:
'
sk
'
,
'
slovene
'
:
'
sl
'
,
'
spanish
'
:
'
es
'
,
'
swedish
'
:
'
sv
'
,
'
tajik
'
:
'
tg
'
,
'
tamil
'
:
'
ta
'
,
'
thai
'
:
'
th
'
,
'
turkish
'
:
'
tr
'
,
'
turkmen
'
:
'
tk
'
,
'
ukrainian
'
:
'
uk
'
,
'
urdu
'
:
'
ur
'
,
'
uzbek
'
:
'
uz
'
,
'
vietnamese
'
:
'
vi
'
,
'
other
'
:
'
other
'
,
}
class
PolygonTaskLoader
(
TaskLoader
):
class
PolygonTaskLoader
(
TaskLoader
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment