Puja Shrivastava
|
Problem with providing Bilingual support to GUI applications in Momentics IDE
|
Puja Shrivastava
02/16/2009 4:01 AM
post22304
|
Problem with providing Bilingual support to GUI applications in Momentics IDE
I am using Momentics IDE 6.3.2 and PhAB version 2.03. I need to develop a GUI in two languages, English and German.
Following the PhAB tutorials for International language support, I could achieve what I want (only on PhAB IDE) but
when I am trying to do the same on Momentics IDE, Its not working. Following is the code i referred to-
ApDBase_t *mytext_db;
/* Open the text database. */
mytext_db = ApOpenDBaseFile( "/fullpath/mytext_db.wgtp" );
/* Set the translation to German. */
ApSetTranslation( "de_DE" );
/* Append the external German translation file to the
current list. This will read the translation file
"/usr/photon/translations/mystrings.de_DE" and append
it to the application's current translation list. */
ApAppendTranslation( "mystrings", "de_DE" );
/* Get a translated text string. */
text = ApGetTextRes( mytext_db, "msg001" );
I tried setting the ABLPATH & ABLANG environment variables also.
Can someone help me about what is going wrong?
|
|
|