abakan-zz / ablog

ABlog for blogging with Sphinx
ablog.readthedocs.org
Other
122 stars 34 forks source link

Added internationalisation framework and locale 'de'. #6

Closed lsaffre closed 10 years ago

lsaffre commented 10 years ago

Hi Ahmet, this was now a bit more work. Adding the calls to "gettext" to your templates was only the first step. This changeset adds the remaining things. I'll explain more if needed.

lsaffre commented 10 years ago

Note that the docs/i18n.rst file is not yet integrated into the doc tree. I left that to you. I plan to make also translations for Estonian and maybe French.

abakan-zz commented 10 years ago

I will make translations for Turkish then ;)

abakan-zz commented 10 years ago

I had this in Issue comments too: Do we also need to change something to make command in i18n.rst to work? The problem is that setup.py does not know those commands.

lsaffre commented 10 years ago

These problems will work when the second commit has been merged. Sorry, I am still a beginner with Git...

abakan-zz commented 10 years ago

We need some more lines as in: http://babel.edgewall.org/wiki/Documentation/setup.html

from babel.messages import frontend as babel
setup(
    ...
    cmdclass = {'compile_catalog': babel.compile_catalog,
                'extract_messages': babel.extract_messages,
                'init_catalog': babel.init_catalog,
                'update_catalog': babel.update_catalog}
)
lsaffre commented 10 years ago

Did you "pip install babel"? Because "These commands are available by default when Babel has been properly installed, and setup.py is using setuptools."

On 25/07/14 21:57, Ahmet Bakan wrote:

We need some more lines in: http://babel.edgewall.org/wiki/Documentation/setup.html

from babel.messages import frontend as babel setup( ... cmdclass = {'compile_catalog': babel.compile_catalog, 'extract_messages': babel.extract_messages, 'init_catalog': babel.init_catalog, 'update_catalog': babel.update_catalog} )

— Reply to this email directly or view it on GitHub https://github.com/abakan/ablog/pull/6#issuecomment-50190223.

abakan-zz commented 10 years ago

I see. I does work after babel is installed. Thanks.