Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 8
Change the current translation to another language
#include <Ap.h>
int ApSetTranslation( char const *lang_ext );
- lang_ext
- NULL, or the extension for the language that you want
to switch to (e.g. ja_JP for Japanese).
Ap
ApSetTranslation()
changes the current translation file to the one defined by lang_ext.
If lang_ext is NULL, the translation is set to
the default (i.e. the original language used in the application).
If the extension pointed to by lang_ext
is invalid, the translation file isn't changed.
When you run your application outside of PhAB, it looks for the
translation files as follows:
- in the directories listed in the ABLPATH
environment variable, if defined. This list takes the form:
dir:dir:dir:dir
Unlike the PATH environment variable, the current
directory must be indicated by a period, not an empty string.
An empty string in ABLPATH
indicates the directory where the executable is.
- in the same directory as the executable, if the ABLPATH
environment variable isn't defined
|
In an application that loads PhAB DLLs, this function changes the current language for
all registered contexts (i.e. the program and all DLLs). It first unloads any existing language
translations for all the contexts, and then attempts to find a translation file for each context,
using the name and location of the executable or DLL to perform the ABLPATH search described above. |
- 0
- Successful completion.
- -1
- The translation extension is invalid.
/* Set the current translation to German: */
ApSetTranslation( "de_DE");
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ApAppendTranslation(),
ApOpenDBase(),
ApOpenDBaseFile(),
ApGetTextRes()
International Language Support
chapter of the Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 169
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ap/apsettranslation.html on line 169