Plone Placeless Translation Service metadata missing from po files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Launchpad itself |
Low
|
Dafydd Harries |
Bug Description
It would be nice if any header unknown by Rosetta found in .pot files could be added to the produced .po file :
This would allow a simple way of getting the right header metadata needed by Plone Placeless Translation Service
Changed in rosetta: | |
assignee: | nobody → carlos |
status: | New → Accepted |
Dafydd Harries (daf) wrote : | #1 |
Godefroid Chapelle (gotcha) wrote : | #2 |
The field in the header is 'domain'.
If it is on the .pot file, it could be copied to the .po files.
Thanks
Dafydd Harries (daf) wrote : | #3 |
I've implemented this. Should turn up in production next week.
Changed in rosetta: | |
status: | Accepted → PendingUpload |
Godefroid Chapelle (gotcha) wrote : | #4 |
looking forward to using it
Thanks
Changed in rosetta: | |
assignee: | carlos → daf |
Carlos Perelló Marín (carlos) wrote : | #5 |
From the current .pot file we have for plone in Rosetta, I can see that you are using this non standard headers:
"Language-Code: fr\n"
"Language-Name: French\n"
"Preferred-
"Domain: compopack\n"
"X-Is-Fallback-For: fr-be fr-ca fr-lu fr-mc fr-ch\n"
All them should start with a 'X-' prefix, like X-Is-Fallback-For
In fact, gettext's .po files already support something like:
domain "domain_1"
msgid "hello world"
msgstr "hei verden"
To define the translation domain so you don't need that 'Domain:' header.
Do you think you would promote the Plone fix for that? I suppose it's not easy, but you should follow the standard when possible...
Dafydd Harries (daf) wrote : | #6 |
Given that Rosetta doesn't support the Gettext domain declaration, I wouldn't encourage Plone to start using that.
It would be marginally nicer if the "Domain" header were an "X-Domain" header, but it's not of any practical difference as far as I can tell.
If all PO templates had a Domain header, it would make things a lot easier for Rosetta -- we could make most of Martin's hacks for working out the domain go away, I think.
Carlos Perelló Marín (carlos) wrote : | #7 |
Well, Rosetta it's not difficult to add support for standard domains in Rosetta.
I know that's unrelated with Rosetta, but we should follow the standards! As you already know, that's the only way to interoperate between applications...
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
visibility: | private → public |
Ubuntu QA Website (ubuntuqa) wrote : | #8 |
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here:
http://
tags: | added: iso-testing |
Hi Godefroid,
Can you tell me more about the headers you need included in the PO files? Do they follow the "X-" convention?
It should be fairly simple to copy headers from the PO template to exported PO files.