Re: Bidi and format strings
Dov Grobgeld <[email protected]> Sat, 22 Jan 2011 22:04:56 +0200
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <[email protected]> |
Your problems is solved by first interpolating the strings and only as the very last step calling fribidi. According to your description you current do the opposite. I.e. if the translation is: FOO %s BAR, with %s=BAZ Your current two steps: 1. Fribidi => RAB s% OOF 2. Interpolate => error! Swapped steps: 1. Interpolate => FOO BAZ BAR 2. Fribidi => RAB ZAB OOF Which also has the advantage that your interpolated string is also passed through fribidi. Regards, Dov On Sat, Jan 22, 2011 at 21:59, M Gagnon <[email protected]> wrote: > Hi, > > I am part of a project where we use fribidi for RTL support. We make use of > format strings like > > "Player %s has won the game!" > > When an Hebrew version of this has gone into fribidi, however, the output > contains "s%" and not "%s". > > So my question(s) are/is: > 1) is this normal behavior, or a result of incorrect configuration or > similar issue? > 2) if normal, what is the usual way people use to work around this issue? > Note that simply writing > s% in the Hebrew translation is not possible because GNU gettext will > refuse to compile the catalog > in this case, saying the format strings don't match between original and > translation. > > Thanks > > -- Auria > > _______________________________________________ > fribidi mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/fribidi > _______________________________________________ fribidi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/fribidi