]> git.mxchange.org Git - jcore.git/commitdiff
Some changes for internationalization
authorRoland Haeder <roland@mxchange.org>
Tue, 1 Sep 2015 06:28:21 +0000 (08:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 1 Sep 2015 06:28:21 +0000 (08:28 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/BaseFrameworkSystem.java
src/org/mxchange/jcore/contact/Gender.java
src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java

index 8d117424bb5a04a829db9215f07a39f896bdbd85..b48ad50e49d6a32faf7699efc7e860a0cfc2e47b 100644 (file)
@@ -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;
                        }
index 3ba9ef5ea3dba5a9f6febd03636a16ab3fe3235c..deaa4f3deff89a56276297b89afd73cd7d98d21f 100644 (file)
@@ -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
index 668425da05a1ea3ca4298f7e2e5f7c17def61d0c..79e222fc7a3839edab02c53961effe494bd8bc50 100644 (file)
@@ -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);