Introduced in Feature Pack 2

Extending the resource bundle and properties files

Introduced in Feature Pack 2 In this lesson, you update an existing extended properties file containing text for the new Versions and General tabs. A properties file is a resource bundle that contains translatable text that displays in the user interface. Resource bundles contain locale-specific objects. By using resource bundle files, text can be easily translated into different languages.

About this task

Procedure

  1. In the Enterprise Explorer view, expand LOBTools > Java Resources: src > com.mycompany.recipe.client.lobtools.properties.
  2. Open the RecipeLOB_en_US.properties file.
  3. Copy the following code to the file:
    recipeCollection_GenralDisplayTabname=General
    recipeCollection_VersionDisplayTabname=Versions
  4. Complete steps 2 and 3 in the file LOBTools > Java Resources: src > com.mycompany.recipe.client.lobtools.properties > RecipeLOB.propertiesas well.
  5. Expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > recipe.
  6. Open the RecipeManagementResourceBundle.lzx file
  7. Copy the following to the bottom of the file:
    <wcfResourceBundleKey name="recipeCollection_GenralDisplayTabname"/>
    <wcfResourceBundleKey name="recipeCollection_VersionDisplayTabname"/>
  8. Save your changes.
  9. Build LOBTools.
    1. Right-click LOBTools.
    2. Select Build OpenLaszlo Project.

Results