Creating and Validating a New Locale Properties File

Goal: Create a locale properties file as the default locale.

Prerequisites
You must have an existing Mobile Workflow package before you create the locale properties file.
Task
When you create a new locale, keep in mind:
  1. In WorkSpace Navigator, double-click the <mobile_workflow>.xbw file to open the Mobile Workflow Forms Editor.

    mwf_local_po.xbw
  2. Click the Flow Design tab.
  3. Right-click in a blank area on the Flow Design page, and select Show Properties View.
  4. In the Properties view, on the left, click the Localization tab.
  5. In the right pane, click New.
  6. Select or enter the information for the new locale, select Automatically create default locale, and click Finish.
    Option Description
    Language Select the language.
    Country Select the country.
    Variant Enter the variant, which is the vendor or browser-specific code. For example, enter "WIN" for Windows, "MAC" for Macintosh and "POSIX" for POSIX. If there are two variants, separate them with an underscore, and put the most important one first. For example, a Traditional Spanish collation might construct a locale with parameters for language, country, and variant as: "es", "ES", "Traditional_WIN".
    Overwrite existing file Overwrite an existing localization file.
    Automatically create default locale Automatically create the default locale properties file. For example, if you specify the language as "English" and the country as the "United States" for a device application called test, then both test_en_uS.properties and test.properties files are created.
    For example:
    • Language – select French.
    • Country – select France.
    • Variant – enter a value to make this locale file unique from others, for example, WM for Windows Mobile.


    mwf_local_new_locale_wizard

    This locale file is now the default locale file, and will be used when the regional setting of the device does not match that of any supplied locale file.

  7. In the Properties view, in the Localization page, select the file to validate and click Validate.

    mwf_local_validate
    The properties file is scanned and if there are any errors, a dialog appears. Click Yes to correct the errors automatically; click No to see the errors in the Problems view.