QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
The ABLANG environment does not appear working to be working in certain situations |
Ref. No. |
QNX.000009915 |
Category(ies) |
Development |
Issue |
We are internationalizing a Photon application for a client and have run into a wierd problem. If we run the application from a pterm shell within Photon, the ABLANG setting is accepted and the strings for the specified language appear in the photon app. If we start photon, followed by the same app from the command line, e.g. x09ph x09sleep 5 x09app
the default (i.e. english) strings are displayed.
A getenv ("ABLANG") call in the app reports the correct language identifier (e.g. fr_FR) in both cases, but it seems to have no effect when we start from the command line.
What could be the problem?
|
Solution |
The ABLANG environment variable is set in the 'ph' script. Instead of starting your app from the command line after starting ph, add it to '~/.photon/phapps' |
|