UF_TEXT_load_translation_file (查看源代码)
定义在: uf_text.h
概述
This routine allows the programmer to load a translation file that will be
used to translate strings from English into the users native language. This
file will be used in addition to the standard ugii.lng that contains the
translations for NX messages and dialogs.
The Open API programmer is responsible for creating this file using the
NLDMGR tool as described in the NX Internationalization and
Localization online help.
环境
内部和外部
历史
Originally released in V18.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_TEXT_load_translation_file
(
const char * file
)
| const char * | file | Input(输入) | This is the complete path to the file to be loaded. When NX displays the user interface, it will use the contents of this file to try and translate strings into the users language. Translation strings that exist in the NX language file found in $UGII_LANGUAGE/ugii.lng will always be used first. If a translation is not found in that file, then this file will be searched. |
UF_TEXT_set_text_mode (查看源代码)
定义在: uf_text.h
概述
This routine sets the text mode for a user function program. UF_initialize
defaults the text mode to UF_TEXT_LOCALE. This routine is provided to let the
user function programmer change the default behavior. When text strings are
returned in the locale, International characters may be lost, if they exist in
the part.
环境
内部和外部
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_TEXT_set_text_mode
(
UF_TEXT_mode_t mode
)
| UF_TEXT_mode_t | mode | Input(输入) | One of the following enumerated text mode constants: UF_TEXT_LOCALE UF_TEXT_UTF8 |
UF_TEXT_translate_string (查看源代码)
定义在: uf_text.h
概述
This routine allows the programmer to translate a C string
from English into the users native language. The strings to translate
should be contained in the file loaded using UF_TEXT_load_translation_file.
If no translation is found the original string is used.
环境
内部和外部
历史
Originally released in NX 2
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_TEXT_translate_string
(
const char* source,
int size,
char* const xstring
)
| const char* | source | Input(输入) | This is the English source string to be translated. |
| int (整数型) | size | Input(输入) | size in bytes of the xstring buffer |
| char* const | xstring | Output(输出) | This is the buffer to return the string translated into the users native language. If the source string is not translated xstring receives the source string unchanged. This buffer must be allocated by the caller of UF_TEXT_translate_string. |