[Qtscript-bindings] Making scripts translatable

Ian Monroe ian at monroe.nu
Wed Aug 27 14:12:13 CEST 2008


On Wed, Aug 27, 2008 at 5:11 AM, Kent Hansen <khansen at trolltech.com> wrote:
> Hi guys,
> Not strictly a bindings thing per see, but I'm hoping you have some
> thoughts...
> If you've looked at a few of the examples for the bindings generator,
> you've perhaps noticed that user-visible text is wrapped in calls to a
> tr() function. Currently this function is just a no-op. But I'd like to
> add proper support for QtScript translation in Qt; it's a bit sad that
> you can translate only the C++ part of your app, no? I have a solution
> finished up already, but before I describe it I'd like to ask if anyone
> has an opinion on how it should be done (in a perfect world), if there
> are any "issues" you foresee, or anything else you can think of. Any
> input is greatly appreciated.
>
> Regards,
> Kent

In a perfect world I suppose it would also use gettext and work just
like i18n (KDE's tr, not sure if they are any different really).

Ian


More information about the Qtscript-bindings mailing list