[Interest] Dynamic translation

Jason H jhihn at gmx.com
Fri Jul 24 16:47:51 CEST 2015

Others can comment better but for a fast response that puts you on track.

There ia a Qt event called TraslateUI or RetranslateUI (or something like that) when your user initiates the change of language, the signal needs to be sent and the UI will retranslate itself via the TR macros.

> Sent: Friday, July 24, 2015 at 10:38 AM
> From: "Graham Labdon" <Graham.Labdon at avalonsciences.com>
> To: "Interest at qt-project.org" <Interest at qt-project.org>
> Subject: [Interest] Dynamic translation
> Hi 
> My Qt application supports dynamic translation IE the user can change languages whilst the application is running
> Now I have a need to find the English equivalent of a translated string and don't seem to be able to find a way 
> For example
> Given QString s = tr("Hello");
> I need to be able to get "Hello" from s after translation has taken place.
> Has anyone done this before or have any ideas on how (if) it can be achieved
> Thanks
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list