I make multilanguage Photon program. The languages is switching by ABLANG
envirorment
variable before program start.
Is it possible to change a program language “on a fly”, when the program is
already running?
Thank You
I make multilanguage Photon program. The languages is switching by ABLANG
envirorment
variable before program start.
Is it possible to change a program language “on a fly”, when the program is
already running?
Thank You
“Leonid Khait” <khait@diaspro.com> wrote in message
news:d6n3bl$h9f$1@inn.qnx.com…
I make multilanguage Photon program. The languages is switching by ABLANG
envirorment
variable before program start.Is it possible to change a program language “on a fly”, when the program
is already running?
You can change the language using ApSetTranslation(), but that only affects
widgets that you create afterwards. If you want to change the strings in
existing widgets, you will have to either destroy them and create them
again, or open your module(s) as a widget database and use ApGetTextRes()
and PtSetResource() to find the strings and replace them by hand.
It seems so strange that my bilingual phab app can only run under
PhAB! If in terminal , set ABLANG as :
$export ABLANG=de_DE
$./myapp
$pwd
/root/myapp/src/gcc_ntox86
then myapp still run in default language. I have copied
myapp.de_DE,myapp.ldb to the directory: myapp/src/gcc_ntox86 where
the execution file exists. What’s the problem? Thanks a lot!
Also if set ABLPATH as:
$export ABLPATH=root:myapp
myapp still run in default language! How to solve this problem?
Thanks!