[xliff-tools] The PO header

Bruno Haible bruno at clisp.org
Wed Feb 16 07:01:12 PST 2005


1.2 PO header

I would go for alternative 4.

Alternative 1 has the drawback that it loses information.

Alternatives 2 and 3 have the drawbacks that
  - They are against the principle of XML, in particular they don't allow
    an XSLT access to the individual header elements.
  - They ignore the definition of the XLIFF <header> element, which is:
    "The <header> element contains metadata relating to the <file> element."
    This is precisely the role of the PO file header as well.

Details in alternative 4:

   <po:po-revision-date>2005-02-01 12:00+0900</po:po-revision-date>

This should be replaced by

   <file date="2005-02-01 12:00+0900">

   <po:mime-version>1.0</po:mime-version>
   <po:content-type>text/plain charset=utf-8</po:content-type>
   <po:content-transfer-encoding>8bit</po:content-transfer-encoding>

These can be dropped.

The comments of the PO file header, which usually come from the translator,
should IMO go into a <note> under the <header> element.

Bruno



More information about the xliff-tools mailing list