Merge pull request #310 from CJ-SPT/mod-loader-localization
add locale for pre-4.0.0 server mods
This commit is contained in:
@@ -202,6 +202,7 @@
|
||||
"modloader-invalid_sptVersion_field": "Mod: %s contains an invalid semver string in the sptVersion field. Examples of valid values: https://github.com/npm/node-semver#versions",
|
||||
"modloader-invalid_version_property": "Mod: %s package.json contains an invalid version string",
|
||||
"modloader-is_client_mod": "Mod (%s) is a client mod and should be placed in the following folder: /spt/bepinex/plugins",
|
||||
"modloader-is-old-js-mod": "Mod (%s) is a pre-4.0.0 server mod. Please find the appropriate version or wait for an update.",
|
||||
"modloader-load_order_conflict": "`{{modOneName}}` and `{{modTwoName}}` have conflicting load order requirements, the server is unable to start until this is fixed and will shut down",
|
||||
"modloader-loaded_mod": "Mod: {{name}} version: {{version}} by: {{author}} loaded",
|
||||
"modloader-loading_mods": "ModLoader: loading: %s server mods...",
|
||||
|
||||
@@ -396,8 +396,7 @@ public class ModValidator(
|
||||
|
||||
if (containsJs || containsTs)
|
||||
{
|
||||
// TODO: needs new localisation!
|
||||
logger.Error("The mod is an old server mod, JS/TS files detected");
|
||||
logger.Error(localisationService.GetText("modloader-is-old-js-mod", modName));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user