Page 1 of 1

DevExpress resource strings

Posted: Fri Dec 13, 2024 2:38 pm
by moppelstroppel
Hi support,

I'm using the the components TSiLang for translation purpose.

I tried to get the resource strings from the EXE wich is build without RTL and dynamic libaries.
For example I got the string "Freitag" and translated also the string, but nothing changed if I switch between the languages.

Here I also add the sample file
https://supportcenter.devexpress.com/ti ... th-tsilang

Thanks
Thomas

Re: DevExpress resource strings

Posted: Mon Dec 16, 2024 1:29 am
by isiticov
Hello,
The most possible that these strings are taken not from the resources but from the Locales. Try to translate locale strings in Locales section of TsiLang and don't forget to set ChangeLocales property to True:
Screenshot 2024-12-16 052621.png
Screenshot 2024-12-16 052621.png (67.46 KiB) Viewed 22964 times

Re: DevExpress resource strings

Posted: Wed Dec 18, 2024 8:59 am
by moppelstroppel
Hi,

I have set the property but I don't have the Locales

Thanks
Thomas

Re: DevExpress resource strings

Posted: Wed Dec 18, 2024 9:35 am
by moppelstroppel
I have to delete the component TsiLang and add again.
Now I have the "Locales" but the strings still are not changing.

The wizard found the resource strings but the text will not be changed during runtime.

Re: DevExpress resource strings

Posted: Wed Dec 18, 2024 12:22 pm
by isiticov
Hello,
You don't need to use the Resource Import Wizard in this case. Just enter the translations for the items in Locales section of TsiLang.
If this still won't work then this would mean that DevExpress controls initialize the UI strings once upon creation using the Locales and don't update them lately.
Maybe as a trick (workaround) would be to use the following at run-time:
1. Change the active language in TsiLang with translated Locales.
2. Re-create DevExpress controls.
To re-create controls it might be enough to save and then load them to the stream.

Re: DevExpress resource strings

Posted: Thu Dec 19, 2024 7:36 am
by moppelstroppel
Hi,

I tried it with the DEBUG version and this is working. The string are located in "Strings".

So something is different between DEBUG and RELEASE but I use in both versions NO dynamic link lib.

So I will chekc each option for both and then I should find the problem.

Thomas

Re: DevExpress resource strings

Posted: Thu Dec 19, 2024 7:20 pm
by moppelstroppel
Hi,

the most parts are translated but DateNavigator from the component Scheduler is not transalated.

Re: DevExpress resource strings

Posted: Mon Dec 23, 2024 4:25 pm
by moppelstroppel
Hi,

so everyting is working nearly fine.
1. The dialog property is not available for TSiLangLinked only for TSiLang
2. If I switch to "French" the Button for standard dialog with "Yes" and "No" is "Abort" and "Retry". I think it related to issue 1.
3. The resource String from DEBUG version can be used also for Release. But the Resource string from Release cannot be used
4. The resource string "Dezember" from the calendar is not a resource string it is shown due to the locale/region of the windows system
5. All other parts of the control Scheduler are changing the language after getting the focus (clicking with mouse)

Thomas

Re: DevExpress resource strings

Posted: Mon Dec 23, 2024 4:43 pm
by isiticov
Hello,
1. The dialog property is not available for TSiLangLinked only for TSiLang
2. If I switch to "French" the Button for standard dialog with "Yes" and "No" is "Abort" and "Retry". I think it related to issue 1.
Just set CommonContainer property of TsiLangLinked to any TsiLang from the project and translate the Dialogs property of that TsiLang.
3. The resource String from DEBUG version can be used also for Release. But the Resource string from Release cannot be used
I don't know how DevExpress components use resource strings for display, sorry.
4. The resource string "Dezember" from the calendar is not a resource string it is shown due to the locale/region of the windows system
Try to translate the Locales property in TsiLang, this might help with this one.