Localisation, using Locale class

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@113 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-12 16:09:05 +00:00
parent c2a03bc445
commit ca42f31ccc
24 changed files with 540 additions and 40 deletions
+3 -3
View File
@@ -185,7 +185,7 @@ ScriptValueP get_member(const map<String,V>& m, const String& name) {
if (it != m.end()) {
return toScript(it->second);
} else {
throw ScriptError(_("Collection has no member '") + name + _("'"));
throw ScriptError(_ERROR_1_("collection has no member", name));
}
}
@@ -195,7 +195,7 @@ ScriptValueP get_member(const IndexMap<K,V>& m, const String& name) {
if (it != m.end()) {
return toScript(*it);
} else {
throw ScriptError(_("Collection has no member '") + name + _("'"));
throw ScriptError(_ERROR_1_("collection has no member", name));
}
}
@@ -253,7 +253,7 @@ class ScriptObject : public ScriptValue {
if (d) {
return d->getMember(name);
} else {
throw ScriptError(_("Object has no member '") + name + _("'"));
throw ScriptError(_ERROR_1_("object has no member", name));
}
}
}