Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-2879

need to localize Feature description, Feature Type Description, etc

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
        pandeypranay 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
        pandeypranay 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:
            pandeypranay Pranay Pandey
            Reporter:
            buzlite Wai Tam
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development