nicer options for defaults in localization tr() functions

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@808 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-01-01 16:06:58 +00:00
parent f0be49c2e4
commit ed060aeb04
9 changed files with 54 additions and 72 deletions
+3 -4
View File
@@ -25,10 +25,9 @@ class SubLocale : public IntrusivePtrBase<SubLocale> {
public:
map<String,String> translations;
/// Translate a key
String tr(const String& key);
/// Translate a key with a default value
String tr(const String& key, const String& def);
/// Translate a key, if not found, apply the default function to the key
String tr(const String& key, DefaultLocaleFun def);
String tr(const String& subcat, const String& key, DefaultLocaleFun def);
/// Is this a valid sublocale? Returns errors
String validate(const String& name, const SubLocaleValidatorP&) const;