[Interest] Dynamic translation

Graham Labdon Graham.Labdon at avalonsciences.com
Mon Jul 27 09:34:10 CEST 2015


Hi
My system maintains a system log which we require to be in English.
Some of the strings used to log messages are also used to present information to the user in the selected language

-----Original Message-----
From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On Behalf Of André Somers
Sent: 27 July 2015 07:38
To: interest at qt-project.org
Subject: Re: [Interest] Dynamic translation

Op 24-7-2015 om 16:38 schreef Graham Labdon:
> 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
>
Why do you (think you) need to do that? What is it want to achieve with that original string?
And in case you really need the original: keep the original around.

André

_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list