mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47:00 -04:00
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:
+3
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user