Re: [poedit-users] How to use "%" in the string
tai <[email protected]> Wed, 23 Apr 2008 23:17:27 +0900
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much for your prompt reply. :-) I will ask bbPress folks about it and then file the bug. Thanks again, Tai On Wed, Apr 23, 2008 at 10:51 PM, Vaclav Slavik <[email protected]> wrote: > 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