From: Roland Haeder Date: Tue, 1 Sep 2015 06:28:21 +0000 (+0200) Subject: Some changes for internationalization X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c40790c224a0e090c58b459b461fb13957e5663;p=jcore.git Some changes for internationalization Signed-off-by:Roland Häder --- 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);