Re: Bidi and format strings

M Gagnon <[email protected]> Sat, 22 Jan 2011 15:20:00 -0500
Newsgroups gmane.comp.internationalization.fribidi
Message-ID <[email protected]>
Hi Dov,

thanks for your answer. Our current design does not allow that, but I 
will see if I am able to
modify our design to correct this issue.

-- Auria

> 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
>