bugGNU gettext - Bugs: bug #33451, xgettext ignores translation hints...

 
 

bug #33451: xgettext ignores translation hints when source contains two line breaks

Submitted by:  None
Submitted on:  Wed 01 Jun 2011 10:07:53 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 01 Jun 2011 10:07:53 AM UTC, original submission:

$ xgettext --version
xgettext (GNU gettext-tools) 0.18.1
[snip]

Note the line breaks in the following source code
1) after _(
2) before _(
3) before and after _(

$ cat bug.php
<?php

echo /* I18N: hint one */ _(
'text one');

echo /* I18N: hint two */
_('text two');

echo /* I18N: hint three */
_(
'text three');

?>

$ xgettext --language=PHP bug.php --add-comments=I18N --output=-
[snip]

#. I18N: hint one
#: bug.php:4
msgid "text one"
msgstr ""

#. I18N: hint two
#: bug.php:7
msgid "text two"
msgstr ""

#: bug.php:11
msgid "text three"
msgstr ""

It seems that xgettext correctly matches the translation hints in the first two cases, but not the third.

Greg Roach
-unavailable-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup