Hi,
I'm trying to add language support to my application for the first
time. From reading the docs and the i18n chapter of the TG book, I am
under the impression that running 'tg-admin i18n collect' should
extract all strings from my kid templates. When I run 'tg-admin
i18n collect' in a quickstarted project called 'foo', I see
Scanning source directory foo
Working on foo/controllers.py
Working on foo/json.py
Working on foo/model.py
Working on foo/release.py
Working on foo/__init__.py
Working on foo/templates/__init__.py
Working on foo/tests/test_model.py
Working on foo/tests/test_controllers.py
Working on foo/tests/__init__.py
Working on foo/config/__init__.py
working on foo/templates/welcome.kid
working on foo/templates/master.kid
working on foo/templates/login.kid
I expect strings in the kid templates to get extracted, but they don't
show up in locales/messages.pot. Supplying the option
--loose-kid-support Extract ALL messages from Kid templates (this
is
default)
doesn't help. Strings I mark in my controller with _() get added to
locales/messages.pot fine, and I have been able to add a new locale
'es' and succesfully switch between that and default 'en' with the
app.cfg option i18n.run_template_filter = True. Manually adding
new strings and their translations for the kid template strings works
fine as well. Is this the expected behavior or am I doing something
wrong?
I've tried this for the last few TG 1.0 releases, including the hot
and fresh 1.0.3.2. Thanks!
--Joseph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---