error saving .po file

fretzl Administrator, Developer
Still busy with Dutch update of Zenphoto-translation...

When I try to save the translation I get this error:

`
"msgstr' is not a valid PHP format string,unlike "msgid".
Reason: In the directive number 1, the character "v" is not a valid conversion specifier.
`
This error occurs two times.

here
`
#: zenphoto-2008-11-14-trunk/zp-core/admin-options.php:1094
#, php-format
msgid "% of image"
msgstr "% van de afbeelding"
`
and here

`
#: zenphoto-2008-11-14-trunk/zp-core/plugins/flvplayer.php:62
#, php-format
msgid "Size of the buffer in % before the video starts."
msgstr "Grootte van de buffer in % voordat de video start."
`
Any ideas ?

Thanks

Comments

  • Seems like there is a complaint about the percent sign. Perhaps you can translate it into a word instead. Not sure why it would complain about the percent sign since there is a space after it. Maybe acrylian can help as he has done translations.
  • acrylian Administrator, Developer
    I have no idea, I did not encounter that error. What encoding do you use?
  • fretzl Administrator, Developer
    I also first thought it was something to do with the percent sign but when I change that into a word I get this error:

    `/.../zenphoto.po:2336: a format specification for argument 1 doesn't exist in 'msgstr'`

    I use the utf-8 encoding.
    (when I try another encoding like iso-8859-1 I get the same errors)
  • fretzl Administrator, Developer
    Somehow the `%` sign doesn't like a `v` as the following character.
    I tested that with other words following the `%`. I get no errors.

    But when I leave the `%` sign out alltogether I still get the error mentioned above.
  • fretzl Administrator, Developer
    Got it !

    Used a text editor and removed the php-format part from

    `
    #: zenphoto-2008-11-14-trunk/zp-core/admin-options.php:1094
    #, php-format
    msgid "% of image"
    msgstr "% van de afbeelding"
    `
    and from the other string.

    It probably was expecting a php variable. Not sure though.
  • acrylian Administrator, Developer
    Great, I just checked my German po-file and I don't have that php format part at all. Strange.
  • fretzl Administrator, Developer
    Well..... not so great, sadly :(

    I can edit the po-file all I want but each time I open a new(nightly) version I run into the same problem with only those two strings.
    On OS X 10.4.11 I used BBEdit as well as the standard Texteditor and both show me `#, php-format` parts in lots of entries.
    (You work on OS X and don't see any `#, php-format` parts. Strange !)
    That part probably depends on wether POedit finds a call to a PHP variable or function.
    What I really don't get is that POedit only dislikes the two entries from my first post.
    I'm at a loss here.
    Could it have something to do with the preferences of POedit? (I don't understand what those are all about)
  • acrylian Administrator, Developer
    Hm, I had taken just a quick look. I indeed have that php format part in some of the messages, but I had to search for them. That must be indeed related to the printf/springf formatting we do with strings that contain variables.

    But I did not encounter the error you got. I have exactly that perference setting as told on the tutorial, so I have sadly no idea about it at all. My translation is currently at 98% so maybe I will encounter it but those two line I already have translated.
  • fretzl Administrator, Developer
    No problems at all on a Windows PC !!! :-)
  • acrylian Administrator, Developer
    Well...:-)
Sign In or Register to comment.