This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit 8b432cc4f33bd55b9fe7f43ee484f80b5d105336 Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Sep 5 10:01:54 2016 +0200 Fix typo --- .../swing/decoration/ObserveI18nDecoratorHelper.java | 10 +++++----- .../swing/ui/tree/loadors/AbstractNodeChildLoador.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/application-swing-decoration/src/main/java/fr/ird/observe/application/swing/decoration/ObserveI18nDecoratorHelper.java b/application-swing-decoration/src/main/java/fr/ird/observe/application/swing/decoration/ObserveI18nDecoratorHelper.java index 06016a3..1059155 100644 --- a/application-swing-decoration/src/main/java/fr/ird/observe/application/swing/decoration/ObserveI18nDecoratorHelper.java +++ b/application-swing-decoration/src/main/java/fr/ird/observe/application/swing/decoration/ObserveI18nDecoratorHelper.java @@ -34,7 +34,7 @@ public class ObserveI18nDecoratorHelper { return Introspector.decapitalize(name); } - public static String getPlurialPropertyName(Class key) { + public static String getPluralPropertyName(Class key) { return English.plural(getPropertyName(key), 2); } @@ -42,14 +42,14 @@ public class ObserveI18nDecoratorHelper { return TYPE_CACHE.get(key); } - public static String getTypePlurialI18nKey(String name) { + public static String getTypePluralI18nKey(String name) { name = StringUtils.removeEnd(name, "Dto"); String propertyName = Introspector.decapitalize(name); return OBSERVE_TYPE_PREFIX + English.plural(propertyName); } - public static String getTypePlurialI18nKey(Class entityClass) { - return TYPE_PLURALIZE_CACHE.get(entityClass); + public static String getTypePluralI18nKey(Class entityClass) { + return TYPE_PLURAL_CACHE.get(entityClass); } public static String getPropertyI18nKey(String propertyName) { @@ -62,7 +62,7 @@ public class ObserveI18nDecoratorHelper { private static final ClassToI18nKeyCache TYPE_CACHE = new ClassToI18nKeyCache(type -> OBSERVE_TYPE_PREFIX + getPropertyName(type)); - private static final ClassToI18nKeyCache TYPE_PLURALIZE_CACHE = new ClassToI18nKeyCache(type -> OBSERVE_TYPE_PREFIX + getPlurialPropertyName(type)); + private static final ClassToI18nKeyCache TYPE_PLURAL_CACHE = new ClassToI18nKeyCache(type -> OBSERVE_TYPE_PREFIX + getPluralPropertyName(type)); private static class ClassToI18nKeyCache extends AbstractLoadingCache<Class, String> { diff --git a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/tree/loadors/AbstractNodeChildLoador.java b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/tree/loadors/AbstractNodeChildLoador.java index 2f7c820..7bb246d 100644 --- a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/tree/loadors/AbstractNodeChildLoador.java +++ b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/tree/loadors/AbstractNodeChildLoador.java @@ -83,7 +83,7 @@ public abstract class AbstractNodeChildLoador<T, O> extends NavTreeNodeChildLoad Objects.requireNonNull(context, "Ne peut pas ajouter un context null"); L childLoador = loadorType == null ? null : ObserveTreeHelper.getChildLoador(loadorType); - String propertyLabel = ObserveI18nDecoratorHelper.getTypePlurialI18nKey(context); + String propertyLabel = ObserveI18nDecoratorHelper.getTypePluralI18nKey(context); return new ObserveNode(String.class, propertyLabel, context.getName(), -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.