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

[IMP] util: detect incorrect locale_dirs path #9176

Merged
merged 1 commit into from May 8, 2021

Conversation

mart-e
Copy link
Contributor

@mart-e mart-e commented May 7, 2021

In case the config is incorrect (e.g. wrong relative path), it is silently ignored.
This makes it easier for debugging.

Subject:

Feature or Bugfix

  • Feature/Improvement

Purpose

It was not clear to me that the locale_dirs variable was relative to the source dir and not to the config path. It took me a long time to detect this was the reason my translations were ignored when building.
With this logger, I could have understood the error was in my config file.

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

sphinx/util/i18n.py Outdated Show resolved Hide resolved
@tk0miya tk0miya added this to the 4.1.0 milestone May 8, 2021
In case the config is incorrect (e.g. wrong relative path), it is silently ignored.
This makes it easier for debugging.
@tk0miya
Copy link
Member

tk0miya commented May 8, 2021

Thank you for update. Merging now.

@tk0miya tk0miya merged commit 4b19792 into sphinx-doc:4.x May 8, 2021
tk0miya added a commit to tk0miya/sphinx that referenced this pull request May 8, 2021
@tk0miya
Copy link
Member

tk0miya commented May 8, 2021

FYI: I posted #9184 to describe this behavior.

tk0miya added a commit that referenced this pull request May 9, 2021
doc: Update CHANGES and docs for PR #9176
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants