namespace: ewol::translate


Description:

This is a simple interface to converte application display string in a generic current system language

Synopsis:

  void                addPath            (const std::string & _lib,
const std::string & _path,
bool _major);
const std::string & getPaths (const std::string & _lib);
void setLanguageDefault (const std::string & _lang);
const std::string & getLanguageDefault ();
void setLanguage (const std::string & _lang);
const std::string & getLanguage ();
void autoDetectLanguage ();
const std::string & get (const std::string & _instance);

Detail:

addPath

  void addPath (const std::string & _lib,
const std::string & _path,
bool _major);
Set the path folder of the translation files


getPaths

  const std::string & getPaths (const std::string & _lib);
Get the current paths of the library


setLanguageDefault

  void setLanguageDefault (const std::string & _lang);
Set the default language to load data (the default language might contain all internal data for the basic application)


getLanguageDefault

  const std::string & getLanguageDefault ();
Get the current language selected


setLanguage

  void setLanguage (const std::string & _lang);
Set the language to load data. when no data availlable, we get the default language.


getLanguage

  const std::string & getLanguage ();
Get the current language loaded


autoDetectLanguage

  void autoDetectLanguage ();
Automatic detection of the system language


get

  const std::string & get (const std::string & _instance);
Translate a specific text (if not find, it will be retured the same text).