Tizen Native API
4.0
|
The Internationalization API provides functions to write multilingual applications through GNU gettext.
#include <app.h>
The Internationalization API provides functions to write multilingual applications through GNU gettext.
Tizen provides all the features of the GNU gettext library through the Internationalization API and allows you to manage message catalogs from SDK.
The Internationalization API consists of i18n_get_text() for message translation and macros to use i18n_get_text() in an easy to use form. These macros allow you to mark strings for translation in source codes, which are replaced with the translated strings at runtime.
Functions | |
char * | i18n_get_text (const char *message) |
Gets the localized translation for the specified string. | |
Defines | |
#define | _(msg) i18n_get_text(msg) |
Definition to mark a string for translation, which is replaced with the translated string at runtime. |
#define _ | ( | msg | ) | i18n_get_text(msg) |
Definition to mark a string for translation, which is replaced with the translated string at runtime.
[in] | msg | The string to be translated |
char* i18n_get_text | ( | const char * | message | ) |
Gets the localized translation for the specified string.
If a translation is not found in the localization file(.po file), message is returned.
[in] | message | The string to be translated |