[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PO format and libgettextpo: comment leading spaces
From: |
Dwayne Bailey |
Subject: |
PO format and libgettextpo: comment leading spaces |
Date: |
Thu, 18 Oct 2007 23:59:39 +0200 |
The PO spec is not clear on leading space in comments. In libgettextpo
the following translator comment:
# Comment1
# Comment2
Is returned as the following string when you ask for the translator
comment:
" Comment1\n Comment2"
I think the same happens for extracted comments "#."
Yet if a send msgcat this file:
#Comment1
# Comment2
It will change it to the first example by adding a space before
"Comment1"
This seems to indicate that this is the spec:
#[space]COMMENT
#.[SPACE]COMMENT
That space is part of the marker and shouldn't be returned when querying
the comment. I should in fact get back:
"Comment1\nComment2" i.e with no leading whitespace on any line.
This request is thus ti adjust the behaviour of libgettexpo to follow
the convention seen in msgcat and to not return leading spaces found in
comments but simply return the text from within the comment block.
--
Dwayne Bailey
Translate.org.za
+27-12-460-1095 (w)
+27-83-443-7114 (cell)
- PO format and libgettextpo: comment leading spaces,
Dwayne Bailey <=