You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If conf.py doesn't explicitly set locale_dirs, it's ["locales"].
When I pass such conf.py to sphinx-intl update command, it incorrectly puts .po files to <cwd>/locales/<lang>/LC_MESSAGES/ (under currently working directory).
But the paths of locale_dirs are relative to conf.py, i.e. it should puts .po files to <conf.py dir>/locales/<lang>/LC_MESSAGES/ instead.
For this buggy behavior, you need to explicitly set locale_dirs = ["locales/"] in your conf.py, i.e., to its default value.
The text was updated successfully, but these errors were encountered:
liborjelinek
changed the title
Update doesn't respect default value of locale_dirs is from -c passed conf.py
Update doesn't respect default value of locale_dirs from -c passed conf.pyFeb 7, 2025
If
conf.py
doesn't explicitly setlocale_dirs
, it's["locales"]
.When I pass such
conf.py
tosphinx-intl update
command, it incorrectly puts .po files to<cwd>/locales/<lang>/LC_MESSAGES/
(under currently working directory).But the paths of
locale_dirs
are relative toconf.py
, i.e. it should puts .po files to<conf.py dir>/locales/<lang>/LC_MESSAGES/
instead.For this buggy behavior, you need to explicitly set
locale_dirs = ["locales/"]
in yourconf.py
, i.e., to its default value.The text was updated successfully, but these errors were encountered: