View previous topic :: View next topic |
Author |
Message |
Bahry
Joined: 22 Jan 2017 Posts: 3
|
Posted: Sun Jan 22, 2017 1:59 pm Post subject: using tsiLang in UniGui |
|
|
Hi,
I am trying to use tsiLang in UniGui app, but the language does not change as
in Desktop app.
In UniGUIMainModuleCreate I try to change the language like normal way
siLangDispatcher1.ActiveLanguage := 2; but nothing happened
in spite of anywhere am going in the program the ActiveLanguage is = 2
but the captions still language 1.
is there any special technique I have to use?
Anyone used tsiLang with UniGui
Regards |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Mon Jan 23, 2017 1:27 pm Post subject: |
|
|
Hello,
May be you’re using loading translations from external file but file path is incorrect when running under web-server? |
|
Back to top |
|
 |
Bahry
Joined: 22 Jan 2017 Posts: 3
|
Posted: Mon Jan 23, 2017 2:40 pm Post subject: |
|
|
Hi,
No am using it without any external files, actually am very familiar with tsilang and am using it in my desktop app. but this is my first time to use it in
UniGui app, when I made debug the siLangDispatcher1.ActiveLanguage := 2
but it does not show the translation of the 2nd language.
There might be a trick I have to do in UniGui or tsiLang but I don't know how.
Regards |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Tue Jan 24, 2017 3:23 am Post subject: |
|
|
May be it is necessary to re-load web page or so in order to update UniGUI controls? |
|
Back to top |
|
 |
Bahry
Joined: 22 Jan 2017 Posts: 3
|
Posted: Tue Jan 24, 2017 12:16 pm Post subject: |
|
|
Actually am changing the ActiveLanguage in creating the main Datamodule
where the forms are not created or not shown yet. |
|
Back to top |
|
 |
|