GetText from specific language
GetText from specific language
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
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
Hello,
Just use GetStringValue() method:
Just use GetStringValue() method:
Code: Select all
siLang1.GetStringValue(siLang1.Strings, 'YOUR_ID', [LANGUAGE_NUMBER]);
Best regards,
Igor Siticov.
Igor Siticov.
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
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?
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?
Code: Select all
silang1.GetStringValue(siLang1.Captions, 'mylabel1', 1);
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
But this was not the question. The question is how can i get a text for the caption of mylabel1 in this caseisiticov wrote:will return the value for the first language.Code: Select all
silang1.GetStringValue(siLang1.Captions, 'mylabel1', 1);
Code: Select all
silang1.GetStringValue(siLang1.Captions, 'Save', 1);
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm
-
- Posts: 29
- Joined: Tue Dec 21, 2010 7:34 pm