Classes | Static Public Member Functions

Tiny2D::Localization Class Reference

Text localization functionality. More...

#include <Tiny2D.h>

List of all members.

Classes

struct  Param
 Parameter value description within localized text. More...

Static Public Member Functions

static bool LoadSet (const std::string &name)
 Loads text localization set (loads file named 'name'.translations.xml)
static void UnloadSet (const std::string &name)
 Unloads specific text localization set.
static void UnloadAllSets ()
 Unloads all text localization sets.
static const std::string Get (const char *stringName, const Param *params=NULL, int numParams=0)
 Localizes given string (with optional parameters)

Detailed Description

Text localization functionality.


Member Function Documentation

static const std::string Tiny2D::Localization::Get ( const char *  stringName,
const Param params = NULL,
int  numParams = 0 
) [static]

Localizes given string (with optional parameters)

static bool Tiny2D::Localization::LoadSet ( const std::string &  name ) [static]

Loads text localization set (loads file named 'name'.translations.xml)

static void Tiny2D::Localization::UnloadAllSets (  ) [static]

Unloads all text localization sets.

static void Tiny2D::Localization::UnloadSet ( const std::string &  name ) [static]

Unloads specific text localization set.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines