Hello,

I run into the following issue :
- start a new TG1.1 application,
- write a template with some accentuated characters (for example 
sentences in French)
- collect the i18n info (tg-admin i18n collect), then add a "en" locale 
and translate the sentences from your template, compile the .po file and 
try your application with "en" language....
It works :-), you get the translations

Then without modifying anything, do a "tg-admin i18n merge" then 
"tg-admin i18n compile"... It should not change anything.
Run your application again and : only sentences without diacriticals 
characters get translated !!!

I discovered that in the merged .po file, the "header" part (where you 
can find Project-id-version, ... and 
Content-Type/Content-Transfer-Encoding) has disappeared !

Why ?
I think it is because, during collect, when scanning genshi files, it 
generates some records like this one :
#: app/templates/test.html:25
msgid: ""
msgstr ""

Then during merge, when scanning the .pot file, each record is compared 
to current .po records and, for duplicates records (duplicated msgid), 
it keeps the last one...

The header record is an empty msgid record to it get replaced by an 
empty record.....

I'll fill up a ticket tomorrow and a patch for that.

By the way, don't you think that the collect phase should deduplicate 
the records on msgids ? It would be easier to deal with the translations 
files.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to