Translations all in one file?

25 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

Kristina Hoeppner

unread,
May 7, 2026, 4:05:37 PM (8 days ago) May 7
to sphinx-users
Thank you so much for your suggestion, Rafael. That did work. We could get a single file now for all the components. 🤩

Cheers
Kristina
Reply all
Reply to author
Forward
0 new messages