Translations all in one file?

13 views
Skip to first unread message

Kristina Hoeppner

unread,
Apr 1, 2026, 5:18:14 AMApr 1
to sphinx-users
Hi,

When we export the language strings for translation, each folder is set up with its own file. Is it possible to combine all strings into one large file while maintaining a folder structure?

Thank you
Kristina

Rafael Fontenelle

unread,
Apr 2, 2026, 12:04:11 AMApr 2
to sphinx-users
Hi,

Have you tried using setting a string to '--gettext_compact' ? For instance, '--gettext-compact=foobar', should generate 'foobar.pot' besides possibly a 'sphinx.pot' depending on each scenario. This is different from --gettext_compact=1 where you get a POT per folder. See also https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-gettext_compact

Best regards,
Rafael
Reply all
Reply to author
Forward
0 new messages