Global functions
function Inti::_
const char * _ (const char * str) |
The Inti::_() function looks up a string in the default message catalog, and
returns a translated string. If no translation exists, the original string is
returned. The default message catalog is specified with Inti::set_translation_domain().
function Inti::_
const char * _ (const string & str) |
The Inti::_() function looks up a string in the default message catalog, and
returns a translated string. If no translation exists, the original string is
returned. The default message catalog is specified with
Inti::set_translation_domain().
function Inti::_
const char * _ (const char * str, const char * domain) |
The Inti::_() function looks up a string in the message catalog, and returns a
translated string. This version takes a translation
domain argument; a translation domain is a string identifier for
your particular library or application that serves as an identifier for a
message catalog. Only the message catalog for the given domain will be searched
for a translation. Applications typically do not need to specify a translation
domain because they can use Inti::set_translation_domain() to specify the
default domain, but libraries should specify the domain each time rather
than setting the global default domain.
function Inti::_
const char * _ (const string & str, const char * domain) |
The Inti::_() function looks up a string in the message catalog, and returns a
translated string. This version takes a translation
domain argument; a translation domain is a string identifier for
your particular library or application that serves as an identifier for a
message catalog. Only the message catalog for the given domain will be searched
for a translation. Applications typically do not need to specify a translation
domain because they can use Inti::set_translation_domain() to specify the
default domain, but libraries should specify the domain each time rather
than setting the global default domain.
function Inti::i18n::set_domain_directory
This function associates a translation domain name with a message
catalog directory in the filesystem. Normally, you would associate your
application's translation domain with the directory where you plan to install
your message catalog files. Equivalent to the C function bindtextdomain().
function Inti::i18n::set_domain_directory
This function associates a translation domain name with a message
catalog directory in the filesystem. Normally, you would associate your
application's translation domain with the directory where you plan to install
your message catalog files. Equivalent to the C function bindtextdomain().
function Inti::i18n::set_translation_domain
This function should be called at the beginning of an application to specify the
default translation domain (message catalog). The default domain is used to find
translations if the Inti::_() function is called without specifying a
translation domain. Typically, you'll name your translation domain after your
application. This function is equivalent to the C function textdomain().
function Inti::i18n::set_translation_domain
This function should be called at the beginning of an application to specify the
default translation domain (message catalog). The default domain is used to find
translations if the Inti::_() function is called without specifying a
translation domain. Typically, you'll name your translation domain after your
application. This function is equivalent to the C function textdomain().