projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new editor image for infoblock
[supertux.git]
/
lib
/
app
/
tinygettext.h
diff --git
a/lib/app/tinygettext.h
b/lib/app/tinygettext.h
index
5d43063
..
207ce28
100644
(file)
--- a/
lib/app/tinygettext.h
+++ b/
lib/app/tinygettext.h
@@
-104,13
+104,14
@@
private:
SearchPath search_path;
typedef std::map<std::string, std::string> Aliases;
Aliases language_aliases;
SearchPath search_path;
typedef std::map<std::string, std::string> Aliases;
Aliases language_aliases;
+ std::string charset;
std::string language;
Dictionary* current_dict;
Dictionary empty_dict;
public:
DictionaryManager();
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()
/** 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 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);
/** Define an alias for a language */
void set_language_alias(const std::string& alias, const std::string& lang);