X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Ftinygettext.h;h=207ce28a6834e45d7f1f6fbaaa0f1772b9fb87f5;hb=c0093d25093395cb62fc2526ab42be65a9f015b8;hp=5d4306306d45e31554cc63da3b9b23d8c6cb3fa9;hpb=ac9e53e5d668d20fcae8c6ac728602d5359a6004;p=supertux.git diff --git a/lib/app/tinygettext.h b/lib/app/tinygettext.h index 5d4306306..207ce28a6 100644 --- a/lib/app/tinygettext.h +++ b/lib/app/tinygettext.h @@ -104,13 +104,14 @@ private: SearchPath search_path; typedef std::map Aliases; Aliases language_aliases; + std::string charset; std::string language; Dictionary* current_dict; Dictionary empty_dict; public: DictionaryManager(); - + /** Return the currently active dictionary, if none is set, an empty dictionary is returned. */ Dictionary& get_dictionary() @@ -122,6 +123,9 @@ public: /** Set a language based on a four? letter country code */ void set_language(const std::string& langspec); + /** Set a charset that will be set on the returned dictionaries */ + void set_charset(const std::string& charset); + /** Define an alias for a language */ void set_language_alias(const std::string& alias, const std::string& lang);