Building Mobile Enterprise Applications : webMethods Mobile Development Help : Defining Resources for the Mobile Project : Adding additional Text Resources : Text Resources that Mobile Development Creates for a Project
Text Resources that Mobile Development Creates for a Project
In addition to generated Java sources, Mobile Development generates .txt files for each language that the Mobile Project supports.
When you create the project using the New Mobile Development Project wizard, as described in Creating a New Mobile Project, Mobile Development generates .txt files in the project’s resources/text folder. Mobile Development updates the .txt files each time you save the project. Mobile Development generates one .txt file for each language that the Mobile Project supports. The following shows the naming convention for the .txt files:
core.language_code.txt
The language_code in the file name corresponds to the language code you specified for the Short Name property when you added the language to the Mobile Project.
Each core.language_code.txt files contains lines for the text strings that you use in a Mobile Project’s view. For example, the files contains a line for the view’s Header Text property. If you add a Textfield object to a view, the file contains a line for the Textfield object ‘s Text property.
Note:  
Mobile Development only creates text resource entries for properties that take a text string for a value when you provide a value for the property. Additionally, you must name the element to which the property belongs. You name a property using the element’s Name property. If you specify a value for a property, but do not name the element, Mobile Development generates the plain String value instead of creating a reference to the text resource.
When generating the core.language_code.txt files, Mobile Development only includes the values in the .txt file that is associated with the project’s default language. For example, if the default language uses the language code “en”, the core.en.txt file might have the following line:
MASTERVIEW_HEADER_TEXT=Master View
If a Mobile Project also includes a language with the language code “de”, but “de” is not the default language, the corresponding line in the core.de.txt file is:
MASTERVIEW_HEADER_TEXT=
It is your responsibility to provide the appropriate translations for the strings for the core.language_code.txt files of the languages that are not the default language.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback