resources-xx.prop
This language resource file enables you to localize the text elements, such as labels and tooltips, of LiveContent S1000D user interface elements.
The LiveContent S1000D installer delivers the default version of this file to the skins/Carbon/templates/config subdirectory under the LiveContent S1000D program file folder.
You can use multiple resources-xx.prop files (where xx is a two-character ISO code representing a language such as en for English. The file contains line-based records, each consisting of a name/value pair separated by an assignment operator (=), and represents an element that can be localized. For example to localize a control, a name/value pair would correspond to a key defined in the controls.xml file as a child element of a <control> element.
The key is used as a placeholder for the related text. At runtime, the resource file related to the language defined for the current session is parsed to return the text for the provided key to be used in the associated control object's text and tooltip. For example, if the defined language is set to fr, text from a language resource file named resources-fr.prop will be returned; if en is the assigned language, text from a file named resource-en.prop will be returned.
XSL support in language resource files
You can define name/value pairs to display IETM content, XSL style text values, application control text, and error and warning messages in a language you specify for a collection or IETM. Names of variables that will be used in XSL stylesheets must start with style as in the following example.
style.common.category=Category
As a best practice, you should include the name or type of the XSL stylesheet in the variable name as in the following example.
style.matreq.supplies=Supplies
A variable defined for one stylesheet can also be used in another stylesheet using the same variable.
resources-en.prop example
<control> element defined in the controls.xml file to contain a <text> element whose value matches the name to the left of the operator.
ctrl.back=Back
ctrl.fwd=Forward
ctrl.home=Home
ctrl.history=History
ctrl.refresh=Refresh
ctrl.print=Print
ctrl.install=Install
ctrl.find=Find
ctrl.clear=Clear
ctrl.admin=Admin
ctrl.config=Applicability
ctrl.tools=Tools
ctrl.exit=Exit
ctrl.help=Help
ctrl.next=Next
ctrl.prev=Previous
ctrl.save=Suspend and Resume
ctrl.docinfo=Document Information
ctrl.show=Debug Information
In this example, a <control> element defined in controls.xml to include a child <text> element with its value set to ctrl.home will use the text "Home" for its label and tooltip for a session in English.