Designing and Implementing Composite Applications : webMethods CAF Development Help : Getting Started with Web Application Development : Preparing a Web Application for Localization
Preparing a Web Application for Localization
You can prepare a Composite Application Framework web application for localization by exporting the user interface strings into a message resource bundle.
The localization tool automatically replaces the strings with the appropriate binding expressions. For each control, the localization tool uses the following format for each binding expression, where the project identifies the name of the project, viewFilename is the name of the VDL file for the view, and stringID is derived from the first four words of the original string.
#{project.applicationResources["g11n.l10ndefault.viewFilename.stringID"]}
The externalized strings are included as resources to the message bundle associated with the page bean.
If you need to recover the original VDL file, you can use the Eclipse Local History feature. To access Local History, right-click the VDL file and click Replace with > Local History.
To prepare a web application strings for localization
1. In the Navigation view, open a web application project and expand the WebContent folder.
2. Right-click the default view and click CAF Tools > Externalize Strings from a view.
3. In the Externalize Strings wizard, accept the default prefix, or type a new prefix in the Enter a common prefix for generated keys (optional) text box.
The prefix automatically appears in the Key column.
(Optional) Clear the Filter all existing ignored and externalized entries check box to view ignored or externalized strings.
4. In the Strings to Externalize list box, select an entry in the list to change it. By default, each string is set to Externalize.
To Set this Column Display...
Click This Button...
Description
Externalize
Marks the string for export into a separate file.
Ignore
Marks the string as one to be ignored for localization; the string should not be localized.
Internalize
Removes marks to ignore the string for localization.
Key value
Edit
Allows you to edit the string and key.
Revert
Restores the original string.
Key
Rename keys
Inactive.
Resource Bundle
Click the column entry to select the resource bundle that you want to export.
5. Click Next.
6. In the Found Problems list, review the list for any error entries, and click Back to resolve them.
7. Click Next, and then click Finish.
Copyright © 2016- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback