- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Creating, Adding and Referencing External Resource Bundles
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Creating, Adding and Referencing External Resource Bundles
Creating, Adding and Referencing External Resource Bundles
Summary
This article gives information on how to create, add and reference an external resource bundle.Synopsis
This article provides information about how to create, add, and reference an external resource bundle.
Discussion
<bundle_name>_<language_code>.properties
Note: bundle_name can be any name, however, this must be the same for the other locale properties file you have in the same external resource bundle
<language_code> is the language code for one of the InstallAnywhere supported locales. Note that you must create a properties file for each locale that you plan to support.
If you have an English locale file like custom_en.properties, then when you create locale files (in the same resource bundle) for other languages, like French for example, it should be custom_fr.properties. The naming format of the locale files should be same except the language code like fr, en in the above example.
You can define your key/value pairs for each localized string in the properties file
<Key>=<value>
- In InstallAnywhere Advanced Designer IDE, go to Project > Locales
- In the External Resource Bundle Settings, double click on the space below ?Bundle Name?
- Type a Bundle Name of the external resource bundle you want to use, such as 'custom' in the above example
- Double click on the space below Resource Bundle Path. It will pop up a ?Choose A File? window, from where you can browse and select one of the locale properties files
$L{<bundle_name>.<key>}
where bundle_name is the name provided in the External Resource Bundle Settings on the Project -> Locales task.