| United States-English |
|
|
|
![]() |
Common Desktop Environment: Internationalization Programmer's Guide > Chapter 2 Internationalization
and the Common Desktop EnvironmentDrawing Localized Text |
|
There are several mechanisms provided to render a localized string, depending on the Motif or Xlib library being used. The following discusses the interfaces that are recommended for internationalized applications. Yet, it is recommended that all localized data be externalized from the program using the simple text. For more information on this subject, refer to Xlib - C Language Interface. The following Xlib multibyte (char*) drawing functions are available for internationalization:
The following Xlib wide character (wchar_t*) drawing functions are available for internationalization:
The following Xlib multibyte (char*) font metric functions are available for internationalization:
The following Xlib wide character (char_t*) font metric functions are available for internationalization:
For the Motif library, localized text should be inserted into XmString segments using XmStringGenerate(). The tag associated with localized text is XmFONTLIST_DEFAULT_TAG, which is used to match an entry in a render table. A localized string can be written in resource files because a compound string specified in resource files has a locale-encoded segment with Xm_FONTLIST_DEFAULT_TAG. For example, the renderTable resource in the following example is automatically associated with XmFONTLIST_DEFAULT_TAG.
The following set of XmString functions is recommend for internationalization:
The following set of XmString functions is not recommend for internationalization because it takes a direction that may not work with languages not covered:
|
|||||||||||||||||||||||||||||||
|
|||||||||||||||