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

Added nl language #5354

Merged
merged 11 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
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
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)

kevin-bates marked this conversation as resolved.
Show resolved Hide resolved
### 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