Back to top
 
 
 

Customizing Resource Properties

Customers can add or update a resource property in the following places:
  • Under citrix.cpbm.custom.common:
    • For English: /src/main/resources/OSGI-INF/l10n/resources/CustomApplicationResources.properties
    • For other languages: /src/main/resources/OSGI-INF/l10n/resources/CustomApplicationResources_<languageCode>.properties
    Note: Also refer to the properties and their default values listed in /src/main/resources/OSGI-INF/l10n/resources/ApplicationResources.properties.
  • Under citrix.cpbm.custom.portal:
    • For English: src/main/resources/OSGI-INF/l10n/resources/PortalCustomApplicationResources.properties
    • For other languages: /src/main/resources/OSGI-INF/l10n/resources/PortalCustomApplicationResources_<languageCode>.properties

The language code is a valid ISO Language Code. These codes are the lower-case, two-letter codes as defined by ISO-639. You can find a full list of these codes at a number of sites, such as: http://www.loc.gov/standards/iso639-2/englangn.html

Typically, you should add all UI related custom resource properties in citrix.cpbm.custom.portal bundle and the rest in citrix.cpbm.custom.common bundle.

Properties defined in citrix.cpbm.custom.portal take precedence over other properties in the system.

After adding/updating resource properties, the property called Application-ResourceVersion in bundle's manifest needs to be bumped up to a higher version for the changes to take effect. For citrix.cpbm.custom.common bundle, this property can be found in /src/main/resources/META_INF/MANIFEST.MF and for citrix.cpbm.custom.portal bundle, this property can be found in /src/main/resources/PortalCustomApplicationResourceVersion.properties.

Note: Single quote handling in message strings:

For each key-value pair, any single quote in a "value" string must be written as 2 consecutive single quotes to prevent the single quote from acting as a string delimiter.

 

Comments