mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
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:
@@ -1,7 +1,7 @@
|
|||||||
mse version: 0.3.6
|
mse version: 0.3.7
|
||||||
installer group: translations/English
|
installer group: translations/English
|
||||||
full name: English
|
full name: English
|
||||||
version: 2007-09-23
|
version: 2008-08-08
|
||||||
icon: usgb.png
|
icon: usgb.png
|
||||||
|
|
||||||
############################################################## Menu items
|
############################################################## Menu items
|
||||||
|
|||||||
+7
-1
@@ -225,12 +225,18 @@ void Locale::validate(Version ver) {
|
|||||||
errors += translations[LOCALE_CAT_TYPE ].validate(_("type"), v.sublocales[_("type") ]);
|
errors += translations[LOCALE_CAT_TYPE ].validate(_("type"), v.sublocales[_("type") ]);
|
||||||
// errors?
|
// errors?
|
||||||
if (!errors.empty()) {
|
if (!errors.empty()) {
|
||||||
if (ver != app_version) {
|
if (ver != file_version_locale) {
|
||||||
errors = _("Errors in locale file ") + short_name + _(":") + errors;
|
errors = _("Errors in locale file ") + short_name + _(":") + errors;
|
||||||
} else {
|
} else {
|
||||||
errors = _("Errors in locale file ") + short_name +
|
errors = _("Errors in locale file ") + short_name +
|
||||||
_("\nThis is probably because the locale was made for a different version of MSE.") + errors;
|
_("\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);
|
handle_warning(errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user