I18N.h File Reference

Internationalization utilities. More...

#include <PVLE/Config.h>
#include <PVLE/Export.h>
#include <boost/filesystem/path.hpp>
#include <osgText/String>

Include dependency graph for I18N.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  I18N
 Internationalization (I18N) and localization (L10N) functions.

Defines

#define _(String)   (String)
#define N_(String)   String
#define textdomain(Domain)
#define bindtextdomain(Package, Directory)

Functions

void I18N::init (const std::string &, const boost::filesystem::path &)
void I18N::changeDomain (const std::string &)
void I18N::setLocale (const std::string &)
void I18N::setEncoding (const std::string &domainName, const osgText::String::Encoding encoding)
osgText::String::Encoding I18N::getEncoding (const std::string &domainName)
void I18N::setEncoding (const osgText::String::Encoding encoding)
osgText::String::Encoding I18N::getEncoding ()
osgText::String _osgText (const char *const msgid)
 Convenience function equivalent to osgText::String(_(msgid), I18N::getEncoding()).


Detailed Description

Internationalization utilities.

Please note that these are only wrappers to gettext functions, not a (strictly speaking) library inclusion.

Definition in file I18N.h.


Define Documentation

#define _ ( String   )     (String)

Definition at line 46 of file I18N.h.

Referenced by _osgText().

#define bindtextdomain ( Package,
Directory   ) 

Definition at line 49 of file I18N.h.

#define N_ ( String   )     String

Definition at line 47 of file I18N.h.

#define textdomain ( Domain   ) 

Definition at line 48 of file I18N.h.


Function Documentation

osgText::String _osgText ( const char *const   msgid  )  [inline]

Convenience function equivalent to osgText::String(_(msgid), I18N::getEncoding()).

Definition at line 89 of file I18N.h.

References _, and I18N::getEncoding().


Generated on Sun Jan 17 11:39:07 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9