Closed lsaffre closed 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.
I will make translations for Turkish then ;)
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.
These problems will work when the second commit has been merged. Sorry, I am still a beginner with Git...
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}
)
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.
I see. I does work after babel is installed. Thanks.
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.