Re: [poedit-users] How to use "%" in the string
Vaclav Slavik <[email protected]> Wed, 23 Apr 2008 15:51:01 +0200
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <1208958661.2081.7.camel@localhost> |
Hi, On Wed, 2008-04-23 at 22:32 +0900, tai wrote: > When I saved a ja.po(*1) file of bbPress (*2), Poedit 1.4.1 got an > error which says "found 1 fatal error" and log.txt says: > **** > : /Users/tai/Desktop/ja.po:671: 'msgstr' is not a valid PHP format > string, unlike 'msgid'. Reason: The character that terminates the > directive number 1 is not a valid conversion specifier. > : /Applications/Poedit.app/Contents/MacOS/msgfmt: found 1 fatal error You may want to file a GNU gettext bug about this (at http://savannah.gnu.org/projects/gettext/), because even though it correctly (presumably) says the string is wrong, the "unlike 'msgid'" part is clearly wrong here. > While creating .mo with msgfmt command on the terminal got no error. The error above comes from msgfmt. You didn't get the error only because you didn't use the --check flag: $ msgfmt --check -o /dev/null ja.po ja.po:671: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: In the directive number 1, the character 'i' is not a valid conversion specifier. msgfmt: found 1 fatal error $ > I guess "%" is a kind of a special character used for directives and > needs to be escaped or something but I have no idea how to do it, so I > left the msgstr blank and got no error now. Note that the PO file was saved correctly despite the error, it's just that MO file wasn't compiled from it by Poedit. > So could you tell me how to use "%" in the string? I don't know. You'll have to either ask bbPress folks or find it in PHP documentation. Looks like either bbPress mistake or incorrect flagging of this string as "php-format" to me. > Also I would like to know whether the cause is bbPress's string or > Poedit, because the msgfmt command got no error. The former (for once). Regards, Vaclav ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Poedit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/poedit-users
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBIDz7FxDYa/UZSZMkRAqS1AJkBb4WH+3VUJQrUEpavNKtLdVROBgCfWhh0 0P55Oxp5QNRPSmZ/ZPTCb54= =oEvk -----END PGP SIGNATURE-----