src/tinygettext/tinygettext.cpp File Reference

#include <config.h>
#include <sys/types.h>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <SDL.h>
#include <SDL_stdinc.h>
#include "tinygettext.hpp"
#include "log.hpp"
#include "physfs/physfs_stream.hpp"
#include "findlocale.hpp"

Go to the source code of this file.

Namespaces

namespace  TinyGetText

Classes

class  TinyGetText::POFileReader

Functions

std::string TinyGetText::convert (const std::string &text, const std::string &from_charset, const std::string &to_charset)
 Convert which is in from_charset to to_charset and return it.
bool TinyGetText::has_suffix (const std::string &lhs, const std::string rhs)
bool TinyGetText::has_prefix (const std::string &lhs, const std::string rhs)
int TinyGetText::plural1 (int)
int TinyGetText::plural2_1 (int n)
int TinyGetText::plural2_2 (int n)
int TinyGetText::plural3_lv (int n)
int TinyGetText::plural3_ga (int n)
int TinyGetText::plural3_lt (int n)
int TinyGetText::plural3_1 (int n)
int TinyGetText::plural3_sk (int n)
int TinyGetText::plural3_pl (int n)
int TinyGetText::plural3_sl (int n)
LanguageDef & TinyGetText::get_language_def (const std::string &name)
void TinyGetText::read_po_file (Dictionary &dict, std::istream &in)
 Read the content of the .po file given as in into the dictionary given as dict.

Variables

LanguageDef TinyGetText::lang_hu ("hu","Hungarian", 1, plural1)
 Language Definitions.
LanguageDef TinyGetText::lang_ja ("ja","Japanese", 1, plural1)
LanguageDef TinyGetText::lang_ko ("ko","Korean", 1, plural1)
LanguageDef TinyGetText::lang_tr ("tr","Turkish", 1, plural1)
LanguageDef TinyGetText::lang_da ("da","Danish", 2, plural2_1)
LanguageDef TinyGetText::lang_nl ("nl","Dutch", 2, plural2_1)
LanguageDef TinyGetText::lang_en ("en","English", 2, plural2_1)
LanguageDef TinyGetText::lang_fo ("fo","Faroese", 2, plural2_1)
LanguageDef TinyGetText::lang_de ("de","German", 2, plural2_1)
LanguageDef TinyGetText::lang_nb ("nb","Norwegian Bokmal", 2, plural2_1)
LanguageDef TinyGetText::lang_no ("no","Norwegian", 2, plural2_1)
LanguageDef TinyGetText::lang_nn ("nn","Norwegian Nynorsk", 2, plural2_1)
LanguageDef TinyGetText::lang_sv ("sv","Swedish", 2, plural2_1)
LanguageDef TinyGetText::lang_et ("et","Estonian", 2, plural2_1)
LanguageDef TinyGetText::lang_fi ("fi","Finnish", 2, plural2_1)
LanguageDef TinyGetText::lang_el ("el","Greek", 2, plural2_1)
LanguageDef TinyGetText::lang_he ("he","Hebrew", 2, plural2_1)
LanguageDef TinyGetText::lang_it ("it","Italian", 2, plural2_1)
LanguageDef TinyGetText::lang_pt ("pt","Portuguese", 2, plural2_1)
LanguageDef TinyGetText::lang_es ("es","Spanish", 2, plural2_1)
LanguageDef TinyGetText::lang_eo ("eo","Esperanto", 2, plural2_1)
LanguageDef TinyGetText::lang_fr ("fr","French", 2, plural2_2)
LanguageDef TinyGetText::lang_pt_BR ("pt_BR","Brazilian", 2, plural2_2)
LanguageDef TinyGetText::lang_lv ("lv","Latvian", 3, plural3_lv)
LanguageDef TinyGetText::lang_ga ("ga","Irish", 3, plural3_ga)
LanguageDef TinyGetText::lang_lt ("lt","Lithuanian", 3, plural3_lt)
LanguageDef TinyGetText::lang_hr ("hr","Croatian", 3, plural3_1)
LanguageDef TinyGetText::lang_cs ("cs","Czech", 3, plural3_1)
LanguageDef TinyGetText::lang_ru ("ru","Russian", 3, plural3_1)
LanguageDef TinyGetText::lang_uk ("uk","Ukrainian", 3, plural3_1)
LanguageDef TinyGetText::lang_sk ("sk","Slovak", 3, plural3_sk)
LanguageDef TinyGetText::lang_pl ("pl","Polish", 3, plural3_pl)
LanguageDef TinyGetText::lang_sl ("sl","Slovenian", 3, plural3_sl)


Generated on Mon Apr 21 03:38:20 2014 for SuperTux by  doxygen 1.5.1