[FriBidi] Bidi and format strings
dov.grobgeld at gmail.com
Sat Jan 22 12:04:56 PST 2011
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
I.e. if the translation is: FOO %s BAR, with %s=BAZ
Your current two steps:
1. Fribidi => RAB s% OOF
2. Interpolate => error!
1. Interpolate => FOO BAZ BAR
2. Fribidi => RAB ZAB OOF
Which also has the advantage that your interpolated string is also passed
On Sat, Jan 22, 2011 at 21:59, M Gagnon <auria.mg at gmail.com> wrote:
> 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
> -- Auria
> fribidi mailing list
> fribidi at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fribidi