OFBiz
  1. OFBiz
  2. OFBIZ-2879

need to localize Feature description, Feature Type Description, etc

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: product
    • Labels:
      None

      Description

      when configuring features. there is not way to localize
      feature description
      feature type description
      feature category...???dont know if it is necessary to localize this
      feature group description...???dont know if it is necessary to localize this

      This would present a problem as users of ecommerce would see these description.

        Activity

        Hide
        Pranay Pandey added a comment -

        Hi Wai,

        This is achievable in OFBiz using UI Labels and can be done this way-

        <#assign productFeatureType = delegator.findOne("ProductFeatureType", {"productFeatureTypeId" : feature.productFeatureTypeId}, false)/>
        <div>${productFeatureType.get("description",locale)}: 
          <select id="FT${feature.productFeatureTypeId}" name="FT${feature.productFeatureTypeId}" onchange="javascript:checkRadioButton();">
            <option value="select" selected="selected">${uiLabelMap.EcommerceSelectOption}</option>
          </select>
        </div>
        
        Ui Label can be defined for the same:- 
        <property key="ProductFeatureType.description.COLOR">
            <value xml:lang="de">Farbe</value>
            <value xml:lang="en">Color</value>
            <value xml:lang="es">Color</value>
        </property>
        

        Please use user/dev mailing list for the questions.

        Show
        Pranay Pandey added a comment - Hi Wai, This is achievable in OFBiz using UI Labels and can be done this way- <#assign productFeatureType = delegator.findOne( "ProductFeatureType" , { "productFeatureTypeId" : feature.productFeatureTypeId}, false )/> <div>${productFeatureType.get( "description" ,locale)}: <select id= "FT${feature.productFeatureTypeId}" name= "FT${feature.productFeatureTypeId}" onchange= "javascript:checkRadioButton();" > <option value= "select" selected= "selected" >${uiLabelMap.EcommerceSelectOption}</option> </select> </div> Ui Label can be defined for the same:- <property key= "ProductFeatureType.description.COLOR" > <value xml:lang= "de" >Farbe</value> <value xml:lang= "en" >Color</value> <value xml:lang= "es" >Color</value> </property> Please use user/dev mailing list for the questions.

          People

          • Assignee:
            Pranay Pandey
            Reporter:
            Wai Tam
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development