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

Fix #2422 #2423

Merged
merged 2 commits into from Aug 2, 2016
Merged

Fix #2422 #2423

merged 2 commits into from Aug 2, 2016

Conversation

@ralsina
Copy link
Member

@ralsina ralsina commented Aug 2, 2016

Pass current language to docutils so things lik .. contents:: and admonitions are localized correctly.

ralsina added 2 commits Aug 2, 2016
'syntax_highlight': 'short',
'math_output': 'mathjax',
'template': default_template_path,
'language_code': LocaleBorg().current_lang,

This comment has been minimized.

@Kwpolska

Kwpolska Aug 2, 2016
Member

How does this react to pt_BR which docutils wants as pt_br? Should we perhaps make another dict for docutils languages in LEGAL_VALUES in nikola.py?

This comment has been minimized.

@ralsina

ralsina Aug 2, 2016
Author Member

ugh?

This comment has been minimized.

@ralsina

ralsina Aug 2, 2016
Author Member

Just checked, we also have pt_br as our translation name, so it all works out.

This comment has been minimized.

@Kwpolska

Kwpolska Aug 2, 2016
Member

There will be warnings if a language is unsupported by docutils, but I guess we can live with that. LGTM, merge at will.

@ralsina ralsina merged commit bc93e97 into master Aug 2, 2016
3 of 4 checks passed
3 of 4 checks passed
continuous-integration/appveyor/branch AppVeyor build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@ralsina ralsina deleted the fix-2422 branch Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants