Since upgrading from Sphinx 1.8 to 2.1, the translated strings in the PO 
files in my */locale/**<language>**/LC_MESSAGES/* directory are no longer 
merged into the HTML output. However, the translated strings for my RTD 
theme *are* merged into the output. I've upgraded my copy of sphinx-intl to 
v2.0.0 in case that was the issue; it isn't. 

I'm following the same process as before the Sphinx upgrade:

1. Run make gettext to produce a set of POT files.
2. Run sphinx-intl update -p build/locale -l de (to produce PO files for 
German translation).
3. Translate the strings. For example:

#: ../../source/index.rst:8
msgid "English string"
msgstr "German string"

4. Run the command to build my HTML output:

make -e SPHINXOPTS="-D language='de' -D 
locale_dirs='locale/,_themes/rtd_theme/locale/' -D html_theme='rtd_theme'" 
BUILDDIR="build/de" clean html

Sphinx creates the MO files from my PO files. The HTML output shows the 
translated strings for my theme but not for my content files.

Any idea how I could troubleshoot this issue?

Thanks in advance for any suggestions.

Mark

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/1f2d0815-6f52-41c5-80d6-3db732d9c41a%40googlegroups.com.

Reply via email to