diff --git a/applications/securityext/config/EmailPassword.xml b/applications/securityext/config/EmailPasswordUiLabels.xml similarity index 100% rename from applications/securityext/config/EmailPassword.xml rename to applications/securityext/config/EmailPasswordUiLabels.xml diff --git a/applications/securityext/widget/EmailSecurityScreens.xml b/applications/securityext/widget/EmailSecurityScreens.xml index 16935a3c30..dc252db45b 100644 --- a/applications/securityext/widget/EmailSecurityScreens.xml +++ b/applications/securityext/widget/EmailSecurityScreens.xml @@ -24,7 +24,7 @@ under the License.
- + diff --git a/framework/minilang/config/DefaultMessages.xml b/framework/minilang/config/DefaultMessagesUiLabels similarity index 100% rename from framework/minilang/config/DefaultMessages.xml rename to framework/minilang/config/DefaultMessagesUiLabels diff --git a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/FlexibleMessage.java b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/FlexibleMessage.java index f69eacce07..b610f945a6 100644 --- a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/FlexibleMessage.java +++ b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/callops/FlexibleMessage.java @@ -47,12 +47,12 @@ public final class FlexibleMessage implements Serializable { } else { messageFse = null; propertykey = MiniLangValidate.checkAttribute(element.getAttribute("property"), defaultProperty); - propertyResource = MiniLangValidate.checkAttribute(element.getAttribute("resource"), "DefaultMessages"); + propertyResource = MiniLangValidate.checkAttribute(element.getAttribute("resource"), "DefaultMessagesUiLabels"); } } else { messageFse = null; propertykey = defaultProperty; - propertyResource = "DefaultMessages"; + propertyResource = "DefaultMessagesUiLabels"; } } diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/ServiceMultiEventHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/ServiceMultiEventHandler.java index 7f2ac8c805..b2d12cd4d4 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/ServiceMultiEventHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/ServiceMultiEventHandler.java @@ -148,10 +148,10 @@ public class ServiceMultiEventHandler implements EventHandler { } // some default message settings - String errorPrefixStr = UtilProperties.getMessage("DefaultMessages", "service.error.prefix", locale); - String errorSuffixStr = UtilProperties.getMessage("DefaultMessages", "service.error.suffix", locale); - String messagePrefixStr = UtilProperties.getMessage("DefaultMessages", "service.message.prefix", locale); - String messageSuffixStr = UtilProperties.getMessage("DefaultMessages", "service.message.suffix", locale); + String errorPrefixStr = UtilProperties.getMessage("DefaultMessagesUiLabels", "service.error.prefix", locale); + String errorSuffixStr = UtilProperties.getMessage("DefaultMessagesUiLabels", "service.error.suffix", locale); + String messagePrefixStr = UtilProperties.getMessage("DefaultMessagesUiLabels", "service.message.prefix", locale); + String messageSuffixStr = UtilProperties.getMessage("DefaultMessagesUiLabels", "service.message.suffix", locale); // prepare the error message and success message lists List errorMessages = new LinkedList(); diff --git a/framework/widget/config/conditional.xml b/framework/widget/config/conditionalUiLabels.xml similarity index 100% rename from framework/widget/config/conditional.xml rename to framework/widget/config/conditionalUiLabels.xml diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java index 18c5dd9e3f..50abc9dab5 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java @@ -1790,11 +1790,11 @@ public final class MacroFormRenderer implements FormStringRenderer { } Locale locale = (Locale) context.get("locale"); if (!textFindField.getHideOptions()) { - opEquals = UtilProperties.getMessage("conditional", "equals", locale); - opBeginsWith = UtilProperties.getMessage("conditional", "begins_with", locale); - opContains = UtilProperties.getMessage("conditional", "contains", locale); - opIsEmpty = UtilProperties.getMessage("conditional", "is_empty", locale); - opNotEqual = UtilProperties.getMessage("conditional", "not_equal", locale); + opEquals = UtilProperties.getMessage("conditionalUiLabels", "equals", locale); + opBeginsWith = UtilProperties.getMessage("conditionalUiLabels", "begins_with", locale); + opContains = UtilProperties.getMessage("conditionalUiLabels", "contains", locale); + opIsEmpty = UtilProperties.getMessage("conditionalUiLabels", "is_empty", locale); + opNotEqual = UtilProperties.getMessage("conditionalUiLabels", "not_equal", locale); } String value = modelFormField.getEntry(context, textFindField.getDefaultValue(context)); if (value == null) { @@ -1810,7 +1810,7 @@ public final class MacroFormRenderer implements FormStringRenderer { if (UtilValidate.isNotEmpty(modelFormField.getTitleStyle())) { titleStyle = modelFormField.getTitleStyle(); } - String ignoreCase = UtilProperties.getMessage("conditional", "ignore_case", locale); + String ignoreCase = UtilProperties.getMessage("conditionalUiLabels", "ignore_case", locale); boolean ignCase = textFindField.getIgnoreCase(context); boolean hideIgnoreCase = textFindField.getHideIgnoreCase(); String tabindex = modelFormField.getTabindex(); @@ -1860,12 +1860,12 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderRangeFindField(Appendable writer, Map context, RangeFindField rangeFindField) throws IOException { ModelFormField modelFormField = rangeFindField.getModelFormField(); Locale locale = (Locale) context.get("locale"); - String opEquals = UtilProperties.getMessage("conditional", "equals", locale); - String opGreaterThan = UtilProperties.getMessage("conditional", "greater_than", locale); - String opGreaterThanEquals = UtilProperties.getMessage("conditional", "greater_than_equals", locale); - String opLessThan = UtilProperties.getMessage("conditional", "less_than", locale); - String opLessThanEquals = UtilProperties.getMessage("conditional", "less_than_equals", locale); - //String opIsEmpty = UtilProperties.getMessage("conditional", "is_empty", locale); + String opEquals = UtilProperties.getMessage("conditionalUiLabels", "equals", locale); + String opGreaterThan = UtilProperties.getMessage("conditionalUiLabels", "greater_than", locale); + String opGreaterThanEquals = UtilProperties.getMessage("conditionalUiLabels", "greater_than_equals", locale); + String opLessThan = UtilProperties.getMessage("conditionalUiLabels", "less_than", locale); + String opLessThanEquals = UtilProperties.getMessage("conditionalUiLabels", "less_than_equals", locale); + //String opIsEmpty = UtilProperties.getMessage("conditionalUiLabels", "is_empty", locale); String className = ""; String alert = "false"; if (UtilValidate.isNotEmpty(modelFormField.getWidgetStyle())) { @@ -1944,14 +1944,14 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderDateFindField(Appendable writer, Map context, DateFindField dateFindField) throws IOException { ModelFormField modelFormField = dateFindField.getModelFormField(); Locale locale = (Locale) context.get("locale"); - String opEquals = UtilProperties.getMessage("conditional", "equals", locale); - String opGreaterThan = UtilProperties.getMessage("conditional", "greater_than", locale); - String opSameDay = UtilProperties.getMessage("conditional", "same_day", locale); - String opGreaterThanFromDayStart = UtilProperties.getMessage("conditional", "greater_than_from_day_start", locale); - String opLessThan = UtilProperties.getMessage("conditional", "less_than", locale); - String opUpToDay = UtilProperties.getMessage("conditional", "up_to_day", locale); - String opUpThruDay = UtilProperties.getMessage("conditional", "up_thru_day", locale); - String opIsEmpty = UtilProperties.getMessage("conditional", "is_empty", locale); + String opEquals = UtilProperties.getMessage("conditionalUiLabels", "equals", locale); + String opGreaterThan = UtilProperties.getMessage("conditionalUiLabels", "greater_than", locale); + String opSameDay = UtilProperties.getMessage("conditionalUiLabels", "same_day", locale); + String opGreaterThanFromDayStart = UtilProperties.getMessage("conditionalUiLabels", "greater_than_from_day_start", locale); + String opLessThan = UtilProperties.getMessage("conditionalUiLabels", "less_than", locale); + String opUpToDay = UtilProperties.getMessage("conditionalUiLabels", "up_to_day", locale); + String opUpThruDay = UtilProperties.getMessage("conditionalUiLabels", "up_thru_day", locale); + String opIsEmpty = UtilProperties.getMessage("conditionalUiLabels", "is_empty", locale); Map uiLabelMap = UtilGenerics.checkMap(context.get("uiLabelMap")); if (uiLabelMap == null) { Debug.logWarning("Could not find uiLabelMap in context", module);