[FriBidi] Bidi and format strings

Dov Grobgeld 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
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.


On Sat, Jan 22, 2011 at 21:59, M Gagnon <auria.mg at gmail.com> 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
> fribidi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fribidi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fribidi/attachments/20110122/9e225248/attachment.html>

More information about the fribidi mailing list