How to internationalize portlet property dropdowns

From Sense/Net Wiki
Jump to: navigation, search
  • 100%
  • 6.0.8
  • Enterprise
  • Community
  • Planned


Dropdown values in Portlet Property Editor dialogs can be localized according to the following.


To localize an enum value in a Portlet Property dropdown, simply create or update the value for the resource key under PortletFramework class in the following form:


Where PropertyName is the name of the property, and EnumValue is the value of the coded enum. You can easily find out the property name by moving your mouse over the property title:

Move mouse over property to find out PropertyName

The EnumValue is the element in the underlying enum in the C# code, but if it has not been localized yet, the dropdown will show the EnumValue.

Defining the string resources is easy from here:

  <ResourceClass name="PortletFramework">
      <Language cultureName="en">
        <data name="Enum-CacheableFor-Everyone" xml:space="preserve">
        <data name="Enum-CacheableFor-VisitorsOnly" xml:space="preserve">
          <value>Visitors only</value>

Related links


This page does not have external references.