Gnome Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
This module allows the programmer to internationalize his application by providing a number macros that can be used to tag his texts and some functions that control the internationalization of the application or library.
All of the function in this module do either map to an empty action if the ENABLE_NLS macro is not defined or to actual functions if it is defined.
See the
Use this to tag strings in an executable path, this macro expands to gettext() or dgettext() if the application supports internationalization.
String : |
This macro is just an identity macro, the only purpose of this macros is to allow gettext to identify the string as a translatable message. This macro can be used in static initializers, while the _() macros can not be used.
String : |
Returns current language (contents of "LANG" environment variable).
Returns : |
This computes a list of language strings. It searches in the standard environment variables to find the list, which is sorted in order from most desirable to least desirable. The `C' locale is appended to the list if it does not already appear. If category_name is NULL, then LC_ALL is assumed.
category_name : | Name of category to look up, e.g. "LC_MESSAGES". |
Returns : | the list of languages |
This sets the user's preferred language in the Gnome config database. This value can always be overridden by the standard environment variables. It exists so that a config applet which chooses the preferred language has a standard place to put the resulting information.
val : | Preferred language |
Returns : | the preferred language as set in the Gnome config database. |