Skip to content

Commit

Permalink
Merge pull request #5354 from berendjan/Added_NL_language
Browse files Browse the repository at this point in the history
Added nl language
  • Loading branch information
kevin-bates authored May 7, 2020
2 parents a291f31 + 42bc3f7 commit e577b6c
Show file tree
Hide file tree
Showing 8 changed files with 4,828 additions and 1 deletion.
4 changes: 4 additions & 0 deletions notebook/i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Hint: if running Windows, you can set it in PowerShell with `${Env:LANG} = "xx_X

## Contributing and managing translations

Finding and translating the `.pot` files could be (partially) done with a translation API, see the repo [Jupyter Notebook Azure Translator](https://github.com/berendjan/Jupyter-Notebook-Azure-Translator.git) for a possible starting point. (Not affiliated with Jupyter)

### Requirements

- *pybabel* (could be installed `pip install babel`)
Expand Down Expand Up @@ -53,6 +55,8 @@ pybabel extract -F babel_nbjs.cfg -o nbjs.pot --no-wrap --project Jupyter .

After this is complete you have 3 `.pot` files that you can give to a translator for your favorite language.

Finding and translating the `.pot` files could be (partially done with a translation API, see the repo [Jupyter Notebook Azure Translator](https://github.com/berendjan/Jupyter-Notebook-Azure-Translator.git) for a possible starting point. (Not affiliated with Jupyter)

### Messages compilation

After the source material has been translated, you should have 3 `.po` files with the same base names
Expand Down
3 changes: 2 additions & 1 deletion notebook/i18n/nbjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"domain": "nbjs",
"supported_languages": [
"fr-FR",
"zh-CN"
"zh-CN",
"nl"
],
"locale_data": {
"nbjs": {
Expand Down
Loading

0 comments on commit e577b6c

Please sign in to comment.