Pyrogenesis
trunk
|
Classes | |
class | Dictionary |
A simple dictionary class that mimics gettext() behaviour. More... | |
class | DictionaryManager |
Manager class for dictionaries, you give it a bunch of directories with .po files and it will then automatically load the right file on demand depending on which language was set. More... | |
class | FileSystem |
class | IConv |
class | Language |
Lightweight wrapper around LanguageSpec. More... | |
struct | Language_hash |
struct | LanguageSpec |
class | Log |
class | PluralForms |
class | POParser |
class | POParserError |
class | UnixFileSystem |
Typedefs | |
typedef unsigned int(* | PluralFunc) (int n) |
Functions | |
bool | operator< (const Language &lhs, const Language &rhs) |
std::ostream & | operator<< (std::ostream &o, const std::vector< std::string > &v) |
static bool | has_suffix (const std::string &lhs, const std::string &rhs) |
std::string | resolve_language_alias (const std::string &name) |
unsigned int | plural1 (int) |
Plural functions are used to select a string that matches a given count. More... | |
unsigned int | plural2_1 (int n) |
unsigned int | plural2_2 (int n) |
unsigned int | plural2_mk (int n) |
unsigned int | plural3_lv (int n) |
unsigned int | plural3_ga (int n) |
unsigned int | plural3_lt (int n) |
unsigned int | plural3_1 (int n) |
unsigned int | plural3_sk (int n) |
unsigned int | plural3_pl (int n) |
unsigned int | plural3_sl (int n) |
unsigned int | plural4_gd (int n) |
unsigned int | plural6_ar (int n) |
static bool | has_prefix (const std::string &lhs, const std::string &rhs) |
Variables | |
static const LanguageSpec | languages [] |
Language Definitions. More... | |
typedef unsigned int(* tinygettext::PluralFunc) (int n) |
|
static |
|
static |
std::ostream& tinygettext::operator<< | ( | std::ostream & | o, |
const std::vector< std::string > & | v | ||
) |
unsigned int tinygettext::plural1 | ( | int | ) |
Plural functions are used to select a string that matches a given count.
n is the count and the return value is the string index used in the .po file, for example:
msgstr[0] = "You got %d error"; msgstr[1] = "You got %d errors"; ^– return value of plural function
unsigned int tinygettext::plural2_1 | ( | int | n | ) |
unsigned int tinygettext::plural2_2 | ( | int | n | ) |
unsigned int tinygettext::plural2_mk | ( | int | n | ) |
unsigned int tinygettext::plural3_1 | ( | int | n | ) |
unsigned int tinygettext::plural3_ga | ( | int | n | ) |
unsigned int tinygettext::plural3_lt | ( | int | n | ) |
unsigned int tinygettext::plural3_lv | ( | int | n | ) |
unsigned int tinygettext::plural3_pl | ( | int | n | ) |
unsigned int tinygettext::plural3_sk | ( | int | n | ) |
unsigned int tinygettext::plural3_sl | ( | int | n | ) |
unsigned int tinygettext::plural4_gd | ( | int | n | ) |
unsigned int tinygettext::plural6_ar | ( | int | n | ) |
std::string tinygettext::resolve_language_alias | ( | const std::string & | name | ) |
|
static |
Language Definitions.