bugGNU gettext - Bugs: bug #27274, msgmerge drops chars after \0 in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27274: msgmerge drops chars after \0 in msgid/msgstr

Submitted by:  None
Submitted on:  Tue 18 Aug 2009 08:50:59 AM UTC  
 
Category: Translator toolsSeverity: 3 - Normal
Item Group: NoneStatus: Not a Bug
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Wed 19 Aug 2009 08:19:51 AM UTC, comment #1:

> #: heksedit.rc:1365
> #, c-format
> msgid "All Files (.)\0.\0\0"
> msgstr "Alle Dateien (.)\0.\0\0"


Control characters are generally not recommended in PO files,
because the translators would not have a way or know a way to
enter these control characters during their translation phase.

Additionally, the NUL escape is not possible because it is
used as end-of-string marker in .gmo files and inside the
gettext tools.

You will have to change the program's code, splitting this
string into two strings, so that xgettext produces a POT
file like this:

msgid "All Files (.)"
msgstr ""

msgid "."
msgstr ""

Possibly the second string is not meant to be translated
because what else can be the translation of ".". Then
the POT file will only contain

msgid "All Files (.)"
msgstr ""

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 18 Aug 2009 08:50:59 AM UTC, original submission:

In Frhed <frhed.sf.net> we have 3 translations that includes "\0" strings in the msgid/msgstr:

#: heksedit.rc:1365
#, c-format
msgid "All Files (.)\0.\0\0"
msgstr "Alle Dateien (.)\0.\0\0"

If I update the PO file from POT file with msgmerge (for Windows), all chars after the first \0 get drops:

#: heksedit.rc:1365
#, c-format
msgid "All Files (.)"
msgstr "Alle Dateien (.)"

msgmerge.exe "de-DE.po" "en-US.pot" -o "Test.po"

Greetings,
Tim Gerundt

Anonymous

 

Attached Files
file #18596:  de.po added by None (897B - application/octet-stream - PO(T) files with \0 in msgid/msgstr)
file #18595:  en-US.pot added by None (840B - application/vnd.ms-powerpoint - PO(T) files with \0 in msgid/msgstr)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  •  

    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):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:22:23 AM UTChaibleCategoryNone=>Translator tools
    Wed 19 Aug 2009 08:19:51 AM UTChaibleStatusNone=>Not a Bug
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed
      Summarymsgmerge drops chars after \\0 in msgid/msgstr=>msgmerge drops chars after \0 in msgid/msgstr
    Tue 18 Aug 2009 08:50:59 AM UTCNoneAttached File-=>Added en-US.pot, #18595
      Attached File-=>Added de.po, #18596

    Back to the top


    Powered by Savane 3.1-cleanup1