Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Updating CLDR data #941

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing tests : translation
gavishpoddar authored Jul 7, 2021
commit 299e727143a95fbaf7ffe01021c2be534d7738aa
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@
@apply_settings
def given_settings(settings=None):

text = "16 फेब्रुवारी 1908 गुरु 02:03 pm"
text = "বৃহষ্পতিবাৰ 1 জুলাই 2009"


if settings.NORMALIZE:
text = normalize_unicode(text)

trst = default_loader.get_locale("mr")
trst = default_loader.get_locale("as")
print(trst.translate(text, settings=settings))

given_settings()
28 changes: 14 additions & 14 deletions tests/test_languages.py
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ def setUp(self):

# as
param('as', '17 জানুৱাৰী 1885', '17 january 1885'),
param('as', 'বৃহষ্পতিবাৰ 1 জুলাই 2009', 'thursday 1 july 2009'),
param('as', 'বৃহস্পতিবাৰ 1 জুলাই 2009', 'thursday 1 july 2009'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect previous test: I know the language


# asa
param('asa', '12 julai 1879 08:00 ichamthi', '12 july 1879 08:00 pm'),
@@ -270,7 +270,7 @@ def setUp(self):

# bs-Latn
param('bs-Latn', "23 septembar 1879, petak", "23 september 1879 friday"),
param('bs-Latn', "subota 1 avg 2009 02:27 popodne", "saturday 1 august 2009 02:27 pm"),
param('bs-Latn', "subota 1 aug 2009 02:27 popodne", "saturday 1 august 2009 02:27 pm"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't be verified but new CLDR 39 data updates this.


# bs
param('bs', "10 maj 2020 utorak", "10 may 2020 tuesday"),
@@ -281,8 +281,8 @@ def setUp(self):
param('ca', "3 de novembre 2004 dj", "3 november 2004 thursday"),

# ce
param('ce', "6 январь 1987 пӏераскан де", "6 january 1987 friday"),
param('ce', "оршотан де 3 июль 1890", "monday 3 july 1890"),
param('ce', "6 январь 1987 пӏераска", "6 january 1987 friday"),
param('ce', "оршот де 3 июль 1890", "monday 3 july 1890"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chechen Language: Can't be verified but new CLDR 39 data updates this.


# cgg
param('cgg', "20 okwakataana 2027 orwamukaaga", "20 may 2027 saturday"),
@@ -413,12 +413,12 @@ def setUp(self):
param('hsb', "štwórtk 2000 awg 14", "thursday 2000 august 14"),

# hy
param('hy', "2 դեկտեմբերի 2006 շբթ 02:00 կա", "2 december 2006 saturday 02:00 am"),
param('hy', "2 դեկտեմբերի 2006 շբթ 02:00", "2 december 2006 saturday 02:00"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Armenian: կա means there is so removed. Verified via Google translate

param('hy', "չորեքշաբթի մյս 17, 2009", "wednesday may 17 2009"),

# ig
param('ig', "1 ọgọọst 2001 wenezdee", "1 august 2001 wednesday"),
param('ig', "mbọsị ụka 23 epr 1980", "sunday 23 april 1980"),
param('ig', "sọn 23 epr 1980", "sunday 23 april 1980"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Igbo: Can't be verified but new CLDR 39 data updates this.


# ii
param('ii', "ꆏꊂꇖ 12 ꌕꆪ 1980", "thursday 12 march 1980"),
@@ -465,15 +465,15 @@ def setUp(self):
param('kk', "жексенбі 12 қыркүйек 1890", "sunday 12 september 1890"),

# kl
param('kl', "2 martsi 2001 ataasinngorneq", "2 march 2001 monday"),
param('kl', "pin 1 oktoberi 1901", "wednesday 1 october 1901"),
param('kl', "2 marsi 2001 ataasinngorneq", "2 march 2001 monday"),
param('kl', "pin 1 oktobari 1901", "wednesday 1 october 1901"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kalaallisut; Greenlandic: Can't be verified but new CLDR 39 data updates this.


# kln
param('kln', "3 ng'atyaato koang'wan 10:09 kooskoliny", "3 february thursday 10:09 pm"),
param('kln', "kipsuunde nebo aeng' 14 2009 kos", "december 14 2009 wednesday"),

# kok
param('kok', "1 नोव्हेंबर 2000 आदित्यवार 01:19 मनं", "1 november 2000 sunday 01:19 pm"),
param('kok', "1 नोव्हेंबर 2000 आयतार 01:19", "1 november 2000 sunday 01:19"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Konkani (Indian language): Can't be verified but new CLDR 39 data updates this.

param('kok', "मंगळार 2 फेब्रुवारी 2003", "tuesday 2 february 2003"),

# ksb
@@ -645,8 +645,8 @@ def setUp(self):
param('pa', "12 ਅਕਤੂ 11:08 ਪੂਦੁ", "12 october 11:08 am"),

# qu
param('qu', "5 pauqar waray 1878 miércoles", "5 march 1878 wednesday"),
param('qu', "6 int 2009 domingo", "6 june 2009 sunday"),
param('qu', "5 marzo 1878 miércoles", "5 march 1878 wednesday"),
param('qu', "6 jun 2009 domingo", "6 june 2009 sunday"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quechua : Can't be verified but new CLDR 39 data updates this.


# rm
param('rm', "1 schaner 1890 venderdi", "1 january 1890 friday"),
@@ -717,8 +717,8 @@ def setUp(self):
param('sn', "china 2 mbudzi 1890", "thursday 2 november 1890"),

# so
param('so', "sab 5 bisha saddexaad 1765 11:08 gn", "saturday 5 march 1765 11:08 pm"),
param('so', "16 lit 2008 axd", "16 december 2008 sunday"),
param('so', "sabti 5 bisha saddexaad 1765 11:08 gd", "saturday 5 march 1765 11:08 pm"),
param('so', "16 desembar 2008 axd", "16 december 2008 sunday"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somali: Verified via google translation.


# sq
param('sq', "2 qershor 1997 e mërkurë 10:08 pasdite", "2 june 1997 wednesday 10:08 pm"),
@@ -741,7 +741,7 @@ def setUp(self):
param('sv', "onsdag 16 mars 08:15 eftermiddag", "wednesday 16 march 08:15 pm"),

# sw
param('sw', "5 mei 1994 jumapili 10:17 asubuhi", "5 may 1994 sunday 10:17 am"),
param('sw', "5 mei 1994 jumapili 10:17", "5 may 1994 sunday 10:17"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swahili: asubuhi means in the morning . Verified via google translation.

param('sw', "jumanne 2 desemba 2003", "tuesday 2 december 2003"),

# ta