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.lab...@avalonsciences.com>
> To: "Interest@qt-project.org" <Interest@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to