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
I'm not 100% sure how to actually translate Sphinx themes. I believe it should use the same i18n infrastructure as Sphinx itself, but haven't done the research on it. This would be a great place for contribution and having folks who care about keeping the theme translated as part of our core team, if you're curious of a good way to contribute!
Reacted by Leonardo J. Caballero G. and Arto Bendiken
@ericholscher then I fork this repo, add support for localization language following the @mitya57 guide and return this improvement via a pull request!!!
Activity
ericholscher commentedon Mar 24, 2017
I'm not 100% sure how to actually translate Sphinx themes. I believe it should use the same i18n infrastructure as Sphinx itself, but haven't done the research on it. This would be a great place for contribution and having folks who care about keeping the theme translated as part of our core team, if you're curious of a good way to contribute!
mitya57 commentedon Mar 24, 2017
I can share the steps I was using in our project:
babel.cfg(in this repository) with this content:setup.cfg:python setup.py extract_messagesto generatesphinx-rtd-theme.pot..pofile for your language usingmsgmergetool (I think you can use Babel if you prefer).gtranslator)..pofile in your project aslocale/$LANG/LC_MESSAGES/sphinx.po.locale_dirs = ['locale/']to your project’sconf.py.macagua commentedon Mar 24, 2017
@mitya57 you are the man really thanks! 🍺
macagua commentedon Mar 24, 2017
@ericholscher then I fork this repo, add support for localization language following the @mitya57 guide and return this improvement via a pull request!!!
Blendify commentedon Mar 31, 2017
@macagua any update on this?
macagua commentedon Apr 1, 2017
@Blendify yes, please check out #405