From 59661e9b04dfd5144b78c1f46d9308ca20021489 Mon Sep 17 00:00:00 2001 From: ivojawer Date: Fri, 27 Dec 2024 21:23:48 -0300 Subject: [PATCH] Adding translations for validations --- src/validator/en.json | 1 + src/validator/es.json | 1 + 2 files changed, 2 insertions(+) diff --git a/src/validator/en.json b/src/validator/en.json index ae0648d6..d8f3e714 100644 --- a/src/validator/en.json +++ b/src/validator/en.json @@ -48,6 +48,7 @@ "shouldNotUseOverride": "Method does not override anything", "shouldNotUseReservedWords": "{0} is a reserved name for a core element", "shouldNotUseVoidMethodAsValue": "Message send \"{0}\" produces no value (missing return in method?)", + "shouldNotUseVoidSingleton": "Named object 'void' produces no value, use 'null' instead", "shouldOnlyInheritFromMixin": "Mixin can only inherit from another mixin", "shouldPassValuesToAllAttributes": "{0} cannot be instantiated, you must pass values to the following attributes: {1}", "shouldUseBooleanValueInIfCondition": "Expecting a boolean", diff --git a/src/validator/es.json b/src/validator/es.json index 9cb550a1..cc52fcd0 100644 --- a/src/validator/es.json +++ b/src/validator/es.json @@ -48,6 +48,7 @@ "shouldNotUseOverride": "Este método no sobrescribe ningún otro método", "shouldNotUseReservedWords": "{0} es una palabra reservada por la biblioteca de Wollok", "shouldNotUseVoidMethodAsValue": "El mensaje \"{0}\" no retorna ningún valor (quizás te falte un return en el método)", + "shouldNotUseVoidSingleton": "El objeto nombrado 'void' no retorna ningún valor (puede usar 'null' en su lugar)", "shouldOnlyInheritFromMixin": "Los mixines solo pueden heredar de otros mixines", "shouldPassValuesToAllAttributes": "No se puede instanciar {0}. Falta pasar valores a los siguientes atributos: {1}", "shouldUseBooleanValueInIfCondition": "Se espera un booleano",