I'm having issue with activating the translation. I created a sample
project with paster create -t pyramid_routesalchemy, and I gone
through the following steps to setup the i18n:
1. changed the development.ini:
default_locale_name = zh
2. changed in the the mytemplate.pt:
<h2 i18n:translate="search-document">Search documentation</h2>
...
<p class="app-welcome" i18n:translate="">
Welcome to <span class="app-name" i18n:name='app-name'>$
{project}</span>, an application generated by<br/>
the Pyramid web application development framework.
</p>
3. easy_install "chameleon<1.999"
4. changed in the setup.py to make babel to consider **.pt files when
doing message id extraction.
5. python setup.py extract_messages
6. python setup.py init_catalog -l zh
7. make the translation in chinese in the po file
8. compile_catalog
9. changed in the __init__.py:
config.add_translation_dirs('myproject:locale/')
after all the above steps, I ran the server and open the page, but I
couldn't see my translation, even with http://localhost:6543/?_LOCALE_=zh
Can anybody in the group help me with this problem?
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.