| 1 28 29 30 package com.opencms.workplace; 31 32 import org.opencms.file.CmsObject; 33 import org.opencms.main.CmsException; 34 35 import com.opencms.template.A_CmsXmlContent; 36 37 import java.util.Hashtable ; 38 39 import org.w3c.dom.Element ; 40 41 50 51 public class CmsLabel extends A_CmsWpElement { 52 53 71 72 public Object handleSpecialWorkplaceTag(CmsObject cms, Element n, A_CmsXmlContent doc, 73 Object callingObject, Hashtable parameters, CmsXmlLanguageFile lang) throws CmsException { 74 String labelValue = n.getAttribute(CmsWorkplaceDefault.C_LABEL_VALUE); 75 String outputValue = null; 76 String result = "+++missing+++"; 77 if(labelValue != null) { 78 CmsXmlWpLabelDefFile labeldef = getLabelDefinitions(cms); 79 outputValue = lang.getLanguageValue(labelValue); 80 result = labeldef.getLabel(outputValue); 81 } 82 return result; 83 } 84 } 85 | Popular Tags |