Plone Placeless Translation Service metadata missing from po files

Bug #5 reported by Godefroid Chapelle on 2004-12-22
Affects Status Importance Assigned to Milestone
Launchpad itself
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 :

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.

Godefroid Chapelle (gotcha) wrote :

The field in the header is 'domain'.

If it is on the .pot file, it could be copied to the .po files.


Dafydd Harries (daf) wrote :

I've implemented this. Should turn up in production next week.

Changed in rosetta:
status: Accepted → PendingUpload
Godefroid Chapelle (gotcha) wrote :

looking forward to using it


Changed in rosetta:
assignee: carlos → daf
Carlos Perelló Marín (carlos) wrote :

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-Encodings: latin1 utf-8\n"
"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 :

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 :

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

Dafydd Harries (daf) on 2006-03-06
Changed in rosetta:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui) on 2012-05-10
visibility: private → public
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers