Tizen Native API  3.0
Internationalization

The Internationalization API provides functions to write multilingual applications through GNU gettext.

Required Header

#include <app.h>

Overview

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 Documentation

#define _ (   msg)    i18n_get_text(msg)

Definition to mark a string for translation, which is replaced with the translated string at runtime.

Parameters:
[in]msgThe string to be translated

Function Documentation

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.

Since :
2.3.1
Remarks:
Do not free the returned value.
Parameters:
[in]messageThe string to be translated
Returns:
The localized translation for the given message on success, otherwise the given message