From 2c40790c224a0e090c58b459b461fb13957e5663 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 1 Sep 2015 08:28:21 +0200 Subject: [PATCH] =?utf8?q?Some=20changes=20for=20internationalization=20Si?= =?utf8?q?gned-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcore/BaseFrameworkSystem.java | 4 ++-- src/org/mxchange/jcore/contact/Gender.java | 10 +++++----- .../jcore/criteria/searchable/SearchCriteria.java | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index 8d11742..b48ad50 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -1237,9 +1237,9 @@ public class BaseFrameworkSystem implements FrameworkInterface { // Search for proper field instance for (final Field field : fields) { // Is a dollar character there? - if (field.getName().startsWith("$")) { + if (field.getName().startsWith("$")) { //NOI18N // Debug message - this.getLogger().debug("Field name " + field.getName() + " starts with a dollar, skipped."); + this.getLogger().debug(MessageFormat.format("Field name {0} starts with a dollar, skipped.", field.getName())); //NOI18N // Skip this continue; } diff --git a/src/org/mxchange/jcore/contact/Gender.java b/src/org/mxchange/jcore/contact/Gender.java index 3ba9ef5..deaa4f3 100644 --- a/src/org/mxchange/jcore/contact/Gender.java +++ b/src/org/mxchange/jcore/contact/Gender.java @@ -28,22 +28,22 @@ public enum Gender { /** * Unknown enum */ - UNKNOWN('U', "BaseContact.gender.unknown.text"), + UNKNOWN('U', "BaseContact.gender.unknown.text"), //NOI18N /** * Male enum */ - MALE('M', "BaseContact.gender.male.text"), + MALE('M', "BaseContact.gender.male.text"), //NOI18N /** * Female enum */ - FEMALE('F', "BaseContact.gender.female.text"), + FEMALE('F', "BaseContact.gender.female.text"), //NOI18N /** * Company enum */ - COMPANY('C', "BaseContact.gender.company.text"); + COMPANY('C', "BaseContact.gender.company.text"); //NOI18N /** * Cache for valid chars @@ -83,7 +83,7 @@ public enum Gender { // Still null? if (null == g) { // Didn't found a valid one - throw new IllegalArgumentException(MessageFormat.format("Gender {0} is invalid.", c)); + throw new IllegalArgumentException(MessageFormat.format("Gender {0} is invalid.", c)); //NOI18N } // Return it diff --git a/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java b/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java index 668425d..79e222f 100644 --- a/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java +++ b/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java @@ -124,7 +124,7 @@ public class SearchCriteria extends BaseCriteria implements SearchableCriteria { throw new NullPointerException(MessageFormat.format("logical is not set, but more than one column ({0}/{1}) shall be matched.", this.entrySet().size(), criteriaMatches.size())); //NOI18N } else if (this.entrySet().size() == criteriaMatches.size()) { // Debug message - this.getLogger().debug(MessageFormat.format("entrySet.size()={0},criteriaMatches.size()={1} - Calling matches() on {2} ...", this.entrySet().size(), criteriaMatches.size(), this.getLogical())); + this.getLogger().debug(MessageFormat.format("entrySet.size()={0},criteriaMatches.size()={1} - Calling matches() on {2} ...", this.entrySet().size(), criteriaMatches.size(), this.getLogical())); //NOI18N // Now for the final test matches = this.getLogical().matches(this.entrySet(), criteriaMatches); -- 2.39.5