-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 15.03.2010 08:34, schrieb andreash:
> Is there any place where I can find out how to customize translations?
> What I did:
>
> * Create <project-dir>/locale/de/LC_MESSAGES
> * Create a file sphinx.po in that directory
> * Added "locale_dirs = ['../locale']" to conf.py
> * put the following content in sphinx.po::
>
> #: sphinx/themes/basic/layout.html:196
> #, python-format
> msgid ""
> "Created using <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> "
> "%(sphinx_version)s."
> msgstr ""
> "Erstellt mit <a href=\"http://sphinx.pocoo.org/\">Sphinx</a> "
> "%(sphinx_version)s."
>
> So obviously what I want to do is override some of the "official"
> translations for one project only. If now run ``make html``, nothing
> seems to happen. Sorry to have to ask this, but couldn't find it
> anywhere in the documentation ...
You have to compile that .po to a .mo using the "msgfmt" utility.
The docs for locale_dirs already says
"""the message catalogs must be in
:file:`./locale/{language}/LC_MESSAGES/sphinx.mo`."""
but of course it's easy to miss the "mo" vs "po". I've added an
explicit hint now so that it becomes more evident.
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEARECAAYFAku7b+AACgkQN9GcIYhpnLD39ACfX0wYKHkzScD4TGHPDTVaKQNu
qjcAnj23BuYP+hEijQcbmhbHY1SbWRwl
=QFpl
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.