mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
replaced static validation error text
This commit is contained in:
@@ -151,7 +151,7 @@ public class Validator {
|
||||
private void checkBlankOrNull(Config columnConfig, String value, List<String> result) {
|
||||
if (getBoolean(columnConfig, "not empty")) {
|
||||
if (isBlankOrNull(value)) {
|
||||
result.add("should not be empty");
|
||||
result.add("validation.message.not.empty");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -159,7 +159,7 @@ public class Validator {
|
||||
private void checkInteger(Config columnConfig, String value, List<String> result) {
|
||||
if (getBoolean(columnConfig, "integer")) {
|
||||
if (!isInt(value)) {
|
||||
result.add("should be an integer");
|
||||
result.add("validation.message.integer");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public class Validator {
|
||||
private void checkAlphaNumeric(Config columnConfig, String value, List<String> result) {
|
||||
if (getBoolean(columnConfig, "alphanumeric")) {
|
||||
if (!matchRegexp(value, "[0-9a-zA-Z]*")) {
|
||||
result.add("should not be alphanumeric");
|
||||
result.add("validation.message.alphanumeric");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,9 @@ menu.about = About
|
||||
menu.file = File
|
||||
menu.edit = Edit
|
||||
menu.help = Help
|
||||
title.validation.errors = Validation Errors:
|
||||
title.validation.errors = Validation Errors:
|
||||
|
||||
# validaton messages
|
||||
validation.message.not.empty = should not be empty
|
||||
validation.message.integer = should be an integer
|
||||
validation.message.alphanumeric = should be alphanumeric
|
||||
@@ -15,4 +15,9 @@ menu.about = \u00dcber ...
|
||||
menu.file = Datei
|
||||
menu.edit = Bearbeiten
|
||||
menu.help = Hilfe
|
||||
title.validation.errors = Fehler in der Datei:
|
||||
title.validation.errors = Fehler in der Datei:
|
||||
|
||||
# validaton messages
|
||||
validation.message.not.empty = Darf nicht leer sein.
|
||||
validation.message.integer = Muss eine Zahl sein.
|
||||
validation.message.alphanumeric = Darf nur Zahlen und Buchstaben enthalten.
|
||||
Reference in New Issue
Block a user