Commit 1dca03d6 authored by twanvl's avatar twanvl

also whine about 'mse version' declaration in locales.

parent 232095bf
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
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment