chubin / pyphoon

:waning_gibbous_moon: ASCII Art Phase of the Moon (Python version)
http://wttr.in/Moon
MIT License
1.32k stars 93 forks source link

Missing hemisphere translations #32

Closed martinbra closed 4 years ago

martinbra commented 4 years ago

We are missing translations of North/South Hemisphere for: bg, ca, cs, da, et, el, es, fi, hr, ia, it, ja, nl, pl, ro, sk and sr.

chubin commented 4 years ago

I have an idea where we can find these translations (as well as many additional ones):

curl -ks https://www.wikidata.org/wiki/Q41228 | grep 'hreflang=".." title=' | sed s@.*'hreflang="\(..\)" title=@\1 @; s@">.*@"@'
curl -ks https://www.wikidata.org/wiki/Q39061 | grep 'hreflang=".." title=' | sed s@.*'hreflang="\(..\)" title=@\1 @; s@">.*@"@'

We could easily add these translations to our dictionary

martinbra commented 4 years ago

Nice finding and sed magic there... Too bad wiki data doesn't have the phases of the moon cataloged in the same way...

I will, by now, update the languages which we already have in the LITS dictionary.