Skip to content

Commit

Permalink
Update CONTRIBUTING.md
Browse files Browse the repository at this point in the history
Added a link to missing translations and updated the language chooser to be in line with the new code without flags.
  • Loading branch information
Felienne authored Feb 26, 2021
1 parent e68acd7 commit 84075bb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Contributing to Hedy
Help Hedy with translations
------------

Hedy is now available in Dutch, French, English and Spanish, but we'd love to support more languages!
Hedy is now available in Dutch, French, English, Brazilian Portugese and Spanish, but we'd love to support more languages!

If you would like to add a translation, there a three places where files that need to be translated:
If you would like to add a new translation, there a three places where files that need to be translated:

1) The folder [level-defaults](https://github.com/Felienne/hedy/blob/master/coursedata/level-defaults/) has a file for each language. That file controls what the landing page for each levels looks like. It is probably easiest to copy the [English file](https://github.com/Felienne/hedy/blob/master/coursedata/level-defaults/en.yaml), rename it and translate that. Tip: example variables can be translated too, that is probably helpful for learners!

Expand All @@ -24,13 +24,14 @@ Two more small things to do!
2) Now go to [app.py](https://github.com/Felienne/hedy/blob/master/app.py) and add your language to this list:

ALL_LANGUAGES = {
'en': '🇺🇸',
'nl': '🇳🇱',
'es': '🇪🇸',
'fr': '🇫🇷',
'en': 'English',
'nl': 'Nederlands',
'es': 'Español',
'fr': 'Français',
'pt_br': 'Português',
}

You can check the status of the several translation efforts [here](/STATUS.md) and see what you can best work on. Would be lovely if you update your own translations there too :)
In some places, we are missing translations to the existing language. You can find those locations as [issues](https://github.com/Felienne/hedy/issues?q=is%3Aissue+is%3Aopen+label%3A%22translation+needed%22)


Run Hedy code on your machine
Expand Down Expand Up @@ -78,4 +79,4 @@ To push the current commit to the Alpha environment on Heroku:

```bash
$ git push -f origin HEAD:development
```
```

0 comments on commit 84075bb

Please sign in to comment.