Page 1 of 1
GetText from specific language
Posted: Thu Jul 25, 2019 10:32 am
by alemio
Hi,
GetText method returns string constant by TextID depending on ActiveLanguage property.
I need to get text form specific language instead of ActiveLanguage.
How can I do?
Thx
Posted: Sun Jul 28, 2019 4:56 am
by isiticov
Hello,
Just use GetStringValue() method:
Code: Select all
siLang1.GetStringValue(siLang1.Strings, 'YOUR_ID', [LANGUAGE_NUMBER]);
Posted: Mon Dec 30, 2019 3:31 pm
by microtronx
Hi Support,
and how can we i.e. get the translation for a caption of a component?
i.e. i have a label named mylabel1 with a caption "Save" and this is translated to german as "Speichern".
Now i want to be able to translate the word "Save" in runtime. with silang1.getstringvalue or with silang1.gettext('Save') i get a empty result.
Is there something i'm missing?
Posted: Mon Dec 30, 2019 8:24 pm
by isiticov
Code: Select all
silang1.GetStringValue(siLang1.Captions, 'mylabel1', 1);
will return the value for the first language.
Posted: Tue Dec 31, 2019 7:13 am
by microtronx
isiticov wrote:Code: Select all
silang1.GetStringValue(siLang1.Captions, 'mylabel1', 1);
will return the value for the first language.
But this was not the question. The question is how can i get a text for the caption of mylabel1 in this case
Code: Select all
silang1.GetStringValue(siLang1.Captions, 'Save', 1);
is not working. I need a way to get a translation for a string which is already translated because it is used as a caption somewhere.
Posted: Tue Dec 31, 2019 9:06 am
by isiticov
Sorry, but there is no such functionality.
Posted: Tue Dec 31, 2019 9:18 am
by microtronx
isiticov wrote:Sorry, but there is no such functionality.
Any possibility to get such a functionality? We're on subscription and renewed it in the last days. Such functionality will be very good to be able to runtime translate some messages or dynamic created elements ...
Posted: Tue Dec 31, 2019 2:17 pm
by isiticov
We will check what could be done in this direction.
Posted: Thu Jan 02, 2020 7:21 am
by microtronx
isiticov wrote:We will check what could be done in this direction.
Thank you very much considering this.
Posted: Tue Jan 07, 2020 9:13 am
by microtronx
isiticov wrote:We will check what could be done in this direction.
Any news when we can expect something?
Posted: Tue Jan 07, 2020 1:23 pm
by isiticov
We don't have any ETA on this. But this functionality is under development.
Posted: Fri Jan 10, 2020 6:09 am
by microtronx
isiticov wrote:We don't have any ETA on this. But this functionality is under development.
Ok. Waiting for info / update from you.
Posted: Tue Jan 14, 2020 8:47 am
by isiticov
Hello,
Sent you an email message. Please check.
Posted: Thu Jan 16, 2020 6:36 am
by microtronx
isiticov wrote:Hello,
Sent you an email message. Please check.
Thank you very much for this update. It works as expected very good!