Author: jleroux
Date: Sun Apr 19 21:01:01 2009
New Revision: 766516

URL: http://svn.apache.org/viewvc?rev=766516&view=rev
Log:
Fix an issue with CommonEmptyHeader

Modified:
    
ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/SaveLabelsToXmlFile.java

Modified: 
ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/SaveLabelsToXmlFile.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/SaveLabelsToXmlFile.java?rev=766516&r1=766515&r2=766516&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/SaveLabelsToXmlFile.java
 (original)
+++ 
ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/SaveLabelsToXmlFile.java
 Sun Apr 19 21:01:01 2009
@@ -88,7 +88,12 @@
                         LabelValue labelValue = 
labelInfo.getLabelValue(localeFound);
 
                         if (UtilValidate.isNotEmpty(labelValue)) {
-                             Element valueElem = 
UtilXml.addChildElementValue(propertyElem, "value", 
StringUtil.fromHtmlToSpecialChars(labelValue.getLabelValue(), true, true, 
false), resourceDocument);
+                            Element valueElem = null;
+                            if 
("CommonEmptyHeader#CommonUiLabels.xml".equalsIgnoreCase(labelKey)) {
+                                valueElem = 
UtilXml.addChildElementValue(propertyElem, "value", " ", 
resourceDocument); // This is needed to keep the label not "empty"
+                            } else {
+                                valueElem = 
UtilXml.addChildElementValue(propertyElem, "value", 
StringUtil.fromHtmlToSpecialChars(labelValue.getLabelValue(), true, true, 
false), resourceDocument);
+                            }
                             valueElem.setAttribute("xml:lang", localeFound);
 
                             if 
(UtilValidate.isNotEmpty(labelValue.getLabelComment())) {


Reply via email to