Skip to content

Commit

Permalink
Add Danish translation (#623)
Browse files Browse the repository at this point in the history
* Add Danish translation

* Update readme, source_to_anki and desc.html

Inspiration from the Italian translation PR (#558).

* Fix extraneous or unlabeled columns (minor typos)

* Andorra is spelled with two r's in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* The capital of Moldova is Chisinau in Danish

Or indeed Kisjinjov. I suggest we stick with Chisinau as it is closer to the
English spelling.

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Porto Novo without hyphen in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Just Manama in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Capital of Bhutan is Timphu in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Capital of Indonesia is Djakarta in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Capital of Iraq is Bagdad in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Capital of Kuwait is Kuwait in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter

* Belarus should be Belarus in Danish

Source: https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter#Belarus

* Fix some wordings in country info

* Fix some copy paste errors

* Palikir is a typo

* Capital of Kiribati should be South Tarawa in Danish

See #623 (review)

* Translate capital hint for Burundi

* Typo: Det Røde Have -> Det Røde Hav

* Forgot translation for Sint Maarten country info in Danish

* Typo: IRak -> Irak

* Typo (Danish): Jarap -> Japan

Don't know how I ended up with "Jarap"...

* Danish: Use definite articles for all countries and geographic areas

---------

Co-authored-by: Adam Plaice <plaice.adam+github@gmail.com>
  • Loading branch information
Munksgaard and aplaice authored Feb 12, 2024
1 parent bf7b607 commit 5ca1eea
Show file tree
Hide file tree
Showing 11 changed files with 1,097 additions and 1,055 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,15 @@ In cases where the Wikipedia article about the given country or city provides tw

As suggested above, the country or city names used in the other fields should be the Brazilian spellings.

### Danish

The Danish translation is based on the following sources (in addition to the
English deck), listed in order of priority:

- **[Lande og nationaliteter](https://sproget.dk/raad-og-regler/ordlister/andre-ordlister/lande-og-nationaliteter)** - This list is maintained by the "Danske Sprognævn".
- **[Den Store Danske](https://denstoredanske.lex.dk/)** - Denmarks national encyclopedia.
- **[Wikipedia in Danish](https://da.wikipedia.org)** - Used when neither of the above sources where enough to verify spelling.

## Maintainer's guide

### Versioning
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- **7 continents** (7 cards, maps only)
- for a total of **320 unique notes**, **982 cards**, **222 flags** and **320 maps**.

The deck is available in **English**, **German**, **Spanish**, **French**, **Norwegian Bokmål**, **Czech**, **Russian**, **Dutch**, **Swedish**, **Portuguese**, **Chinese**, **Polish** and **Italian**.
The deck is available in **English**, **German**, **Spanish**, **French**, **Norwegian Bokmål**, **Czech**, **Russian**, **Dutch**, **Swedish**, **Portuguese**, **Chinese**, **Polish**, **Italian** and **Danish**.

---

Expand Down
35 changes: 34 additions & 1 deletion recipes/source_to_anki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- guid:zh
- guid:pl
- guid:it
- guid:da

- build_parts:
- note_model_from_yaml_part:
Expand Down Expand Up @@ -329,6 +330,27 @@

file_mappings: *file_mappings

- notes_from_csvs:
part_id: danish
#save_to_file:

note_model_mappings:
- note_models: *note_models_in_mapping
columns_to_fields:
<<: *default_columns_to_fields

guid:da : guid
country:da : Country
country info:da : Country info
capital:da : Capital
capital info:da : Capital info
capital hint:da : Capital hint
flag similarity:da : Flag similarity

personal_fields: [ ]

file_mappings: *file_mappings

- generate_crowd_anki:
<<: &default_crowd_anki_gen
headers: default header
Expand Down Expand Up @@ -403,6 +425,11 @@
folder: build/Ultimate Geography [IT]
notes:
part_id: italian
- generate_crowd_anki:
<<: *default_crowd_anki_gen
folder: build/Ultimate Geography [DA]
notes:
part_id: danish


- generate_crowd_anki:
Expand Down Expand Up @@ -493,4 +520,10 @@
folder: build/Ultimate Geography [IT] [Extended]
notes:
part_id: italian
<<: *override_nm
<<: *override_nm
- generate_crowd_anki:
<<: *extended_deck
folder: build/Ultimate Geography [DA] [Extended]
notes:
part_id: danish
<<: *override_nm
440 changes: 220 additions & 220 deletions src/data/capital.csv

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/data/capital_hint.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
country,capital hint,capital hint:de,capital hint:es,capital hint:fr,capital hint:nb,capital hint:cs,capital hint:ru,capital hint:nl,capital hint:sv,capital hint:pt,capital hint:zh,capital hint:pl,capital hint:it
England,Not a sovereign country,Kein souveräner Staat,No es un país soberano,Pas une nation souveraine,Ikke selvstendig land,Nejedná se o suverénní stát,Не суверенная страна,Geen soevereine staat,Ej suverän stat,Não é um Estado soberano,不是主权国家,Nie jest suwerennym państwem,Non è uno Stato sovrano
United Kingdom,Sovereign country,Souveräner Staat,Es un país soberano,Nation souveraine,Selvstendig land,Suverénní stát,Суверенная страна,Soevereine staat,Suverän stat,Estado soberano,主权国家,Suwerenne państwo,È uno Stato sovrano
Israel,Claimed and controlled,Behauptet und kontrolliert,Reclamada y controlada,Revendiquée et contrôlée,Krevd og kontrollert,Nárokované a kontrolované,Заявленные и контролируемые,Geclaimd en gecontroleerd,Hävdas och kontrolleras,Reivindicado e controlado,声称对其拥有主权并拥有实际控制权,"Terytorium sporne, nad którym sprawuje on władzę",Rivendicata e controllata
Palestine,Claimed but not controlled,"Behauptet, aber nicht kontrolliert",Reclamada pero no controlada,Revendiquée mais non contrôlée,"Krevd, men ikke kontrollert","Nárokováno, ale nekontrolováno","Заявлено, но не контролируется",Geclaimd maar niet gecontroleerd,Påstått men inte kontrollerat,"Reivindicada, mas não controlada",声称对其拥有主权但没有实际控制权,"Terytorium sporne, nad którym nie sprawuje ona władzy",Rivendicata ma non controllata
Puerto Rico,,,,,,,,,,Não é um Estado soberano,,,
Antigua and Barbuda,,,,,,,,,,Estado soberano,,,
country,capital hint,capital hint:de,capital hint:es,capital hint:fr,capital hint:nb,capital hint:cs,capital hint:ru,capital hint:nl,capital hint:sv,capital hint:pt,capital hint:zh,capital hint:pl,capital hint:it,capital hint:da
England,Not a sovereign country,Kein souveräner Staat,No es un país soberano,Pas une nation souveraine,Ikke selvstendig land,Nejedná se o suverénní stát,Не суверенная страна,Geen soevereine staat,Ej suverän stat,Não é um Estado soberano,不是主权国家,Nie jest suwerennym państwem,Non è uno Stato sovrano,Ikke et selvstændigt land
United Kingdom,Sovereign country,Souveräner Staat,Es un país soberano,Nation souveraine,Selvstendig land,Suverénní stát,Суверенная страна,Soevereine staat,Suverän stat,Estado soberano,主权国家,Suwerenne państwo,È uno Stato sovrano,Selvstændigt land
Israel,Claimed and controlled,Behauptet und kontrolliert,Reclamada y controlada,Revendiquée et contrôlée,Krevd og kontrollert,Nárokované a kontrolované,Заявленные и контролируемые,Geclaimd en gecontroleerd,Hävdas och kontrolleras,Reivindicado e controlado,声称对其拥有主权并拥有实际控制权,"Terytorium sporne, nad którym sprawuje on władzę",Rivendicata e controllata,Gjort krav på og kontrolleret
Palestine,Claimed but not controlled,"Behauptet, aber nicht kontrolliert",Reclamada pero no controlada,Revendiquée mais non contrôlée,"Krevd, men ikke kontrollert","Nárokováno, ale nekontrolováno","Заявлено, но не контролируется",Geclaimd maar niet gecontroleerd,Påstått men inte kontrollerat,"Reivindicada, mas não controlada",声称对其拥有主权但没有实际控制权,"Terytorium sporne, nad którym nie sprawuje ona władzy",Rivendicata ma non controllata,"Gjort krav på, men ikke kontrolleret"
Puerto Rico,,,,,,,,,,Não é um Estado soberano,,,,
Antigua and Barbuda,,,,,,,,,,Estado soberano,,,,
Loading

0 comments on commit 5ca1eea

Please sign in to comment.