Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 34: Internationalization and Loc... > String Literals in the Manifest File

String Literals in the Manifest File

In addition to the string literals of the source files, you can also internationalize the textual information of the manifest file. There are two options for doing so. The first option is to append a language identifier to the manifest attributes and thus use the same attribute several times:

Manifest-Version: 1.0
OpenIDE-Module: com.galileo.netbeans.module
OpenIDE-Module-Name: My Module
OpenIDE-Module-Name_de: Mein Modul

The second (preferred) option is to outsource the attributes you intend to internationalize into a .properties file. Then, the attribute names are used as keys and are provided in bundles for each language. Define the bundle with the OpenIDE-Module-Localizing-Bundle attribute as shown in Listing 34-1 (see also Chapter 3), so the attributes are read out of the bundle (see Listings 34-2 and 34-3).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial