also whine about 'mse version' declaration in locales.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1098 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-08 16:39:55 +00:00
parent 8389ed0c9a
commit 5baabc33d4
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
mse version: 0.3.6
mse version: 0.3.7
installer group: translations/English
full name: English
version: 2007-09-23
version: 2008-08-08
icon: usgb.png
############################################################## Menu items
+7 -1
View File
@@ -225,12 +225,18 @@ void Locale::validate(Version ver) {
errors += translations[LOCALE_CAT_TYPE ].validate(_("type"), v.sublocales[_("type") ]);
// errors?
if (!errors.empty()) {
if (ver != app_version) {
if (ver != file_version_locale) {
errors = _("Errors in locale file ") + short_name + _(":") + errors;
} else {
errors = _("Errors in locale file ") + short_name +
_("\nThis is probably because the locale was made for a different version of MSE.") + errors;
}
} else if (ver != file_version_locale) {
errors = _("Errors in locale file ") + short_name + _(":")
+ _("\n Locale file out of date, expected: mse version: ") + file_version_locale.toString()
+ _("\n found: ") + ver.toString();
}
if (!errors.empty()) {
handle_warning(errors);
}
}