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

include nbjs.json / .mo in source ? #3924

Closed
Carreau opened this issue Sep 15, 2018 · 6 comments · Fixed by #3931
Closed

include nbjs.json / .mo in source ? #3924

Carreau opened this issue Sep 15, 2018 · 6 comments · Fixed by #3931

Comments

@Carreau
Copy link
Member

Carreau commented Sep 15, 2018

As far as I can tell, with current release process there is no translation included.

We can also make sure they are build into wheels ?
Otherwise there is no frontend translation in released wheel which can be weirdly hard to setup.

@Carreau Carreau added this to the 5.7 milestone Sep 15, 2018
@Carreau
Copy link
Member Author

Carreau commented Sep 15, 2018

@takluyver you excluded them initially.

@minrk
Copy link
Member

minrk commented Sep 18, 2018

Aren't only the LC_MESSAGES required for frontend translation? They are included in package_data and I get UI translations when I run

LANG=fr_FR jupyter notebook

after installing from a wheel

@Carreau
Copy link
Member Author

Carreau commented Sep 18, 2018

I did try and it did not work for me locally, If I read correctly there is also some translations in the json files and some translations in the .po files to to get everything translated you need both, and you need both LANG and the browser set to the same value

See https://github.com/jupyter/notebook/blob/master/notebook/i18n/README.md#known-issues-and-future-evolutions

@minrk
Copy link
Member

minrk commented Sep 19, 2018

I was able to confirm that with what's already packaged, frontend translations do work from a wheel (no files outside locale/xx_YY are used for translations at runtime).

This is the result from:

python setup.py bdist_wheel
pip install dist/*.whl
cd
LANG=fr_FR jupyter notebook

With language settings (chrome):

screen shot 2018-09-19 at 14 53 03

The result, where you can see frontend translations are using zh_CN and backend translations are using fr_FR:

screen shot 2018-09-19 at 14 53 14

So I think with #3931, which fixes the exclusions from sdists, we can release 5.7. Do you agree?

@Carreau
Copy link
Member Author

Carreau commented Sep 19, 2018

Do you agree?

Yes. Sound good to me.

@minrk
Copy link
Member

minrk commented Sep 19, 2018

Great! Notebook 5.7 is out

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants