On Wed, Jul 09, 2003 at 12:47:13PM +0200, Stefan Dirsch wrote:
> Hi Mantas
> 
> Your proposal looks like a hack for non-UTF-8 locales. Did you already
> read the message of John Popplewell and Pablo Saratxaga (in Cc) ?

Seeing as I'm testing it, and it seems to be working...

In other words, I'm using "bind_textdomain_codeset("tuxpaint", "UTF8");"
along with "TTF_RenderUTF8_Blending", and both Lithuanian and Spanish come
out correct (whereas before, one would work, but not the other; and if
I switched to "TTF_RenderText_Blended", the results would be the opposite)...


I think it's all okay!  I think that happens is that gettext() actually
CONVERTS the text to UTF8 for me, even though they're not UTF8 in the PO file.


Before, when using the UTF8 rendering function, if the translation was not
in UTF8, it would cause the string to come out wrong (e.g., truncated, as
in the case of "Si'" in Spanish coming out as just "S")

Now, telling gettext() "ALWAYS give me UTF8" (if I'm understanding the
gettext() docs right :^) ), it should work for ALL languages, no matter the
translation's encoding...


I hope this all makes sense, and that I've not missed something blindingly,
stupidly obvious! ;^)  (It IS kind of late at night right now ;^) )

-bill!
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to