[Interest] Dynamic translation

André Somers andre at familiesomers.nl
Mon Jul 27 10:01:00 CEST 2015


Op 27-7-2015 om 09:34 schreef Graham Labdon:
> 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
In that case, you will need to keep the message in English around where 
needed. I would not rely on doing a reverse lookup of the translation if 
you do manage to make it work. How will you deal with things like 
filled-in values?

André


>
> -----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