Open a catalog file editor by selecting the Transcript menu item Tools->NLS Tool->Catalog File Editor or by executing NlsCatalogBrowser open.|Display Information 5|(x)Resident ( )Indexed [Edit Object]|
• To edit a catalog file, select Catalog->Edit Catalog File.... A file prompter will appear. Select the catalog file. When a valid catalog file has been selected, the locales it contains are displayed in the locales list. The compatibilities are also displayed in the text widget.The format for a locale always has the form: language-territory-characterSet (e.g. english-us-ansi-ascii)Locales->Add...
The user is prompted for the name of the new locale. The created locale will be completely empty (i.e. it will contain no resident or indexed messages).Select a locale and Locales->Duplicate As...
The user is prompted for the name of the new locale. The created locale will contain a copy of all the resident and indexed messages in the other locale.Existing locales can be removed from the catalog by selecting the locale(s) to be removed and then selecting Locales->Delete...An existing locale can be renamed by selecting the locale to rename and then selecting Locales->Rename...The user will be prompted for the name of the new locale.A locale can be imported into a catalog with one of the import options of the Locale->Import submenu. A locale can be exported with one of the export options of the Locale->Export submenu.To add the resident messages of a locale to a pool in the image, select Locale->Add To Pool.... A dialog showing the NLS pools in the image is displayed. Select the pool into which the locale is to be added. All of the resident messages of the locale are copied into the pool.Messages->Add...
The user is prompted for the name of the new message. If the resident toggle button is selected, the name of the message is a string, otherwise it is an integer. If a valid name has been entered, the new message is added to the messages list. The user can now edit the contents of the new message in the text widget.Selecting an existing message and Messages->Duplicate As...
The user is prompted for the name of the new message. If the resident toggle button is selected, the name is a string, otherwise it is an integer. If a valid name is entered, a new message is created and the content of the previously selected message is copied to the new one. The new message is added to the messages list. The user can now edit the contents of the new message in the text widget.A new message can be added to all of the locales of the catalog at once. Select Messages->Add To All Locales....
The user is prompted for the name of the new message. If the resident toggle button is selected, a string is expected, otherwise an integer is expected.Existing messages can be removed from a locale by selecting the messages to be removed and then selecting Messages->Delete.... If the selected messages are to be removed from all of the locales, select Messages->Delete From All Locales....The menu item Messages->Find Messages With Text... searches for messages which contain a particular text. The user is prompted for the text to find. If messages containing this text are found, a list showing them is displayed. The user can then pick one of them. The message is then selected in the list of messages.To browse the references to a particular message in the image, select a message and then Messages->Browse References. If the message is referenced in the image, the methods referencing it are displayed in a browser.Two messages with the same contents can be referenced in the locale by two (or more) different names or indices. To find duplicates, select a locale and then Locales->Check For Duplicate Messages. If duplicates are found, they are printed in the Transcript.This option allows the user to check if there are empty messages (i.e. messages with no content) in a locale. Select a locale and then Locales->Check For Empty Messages. If empty messages are found, they are printed in the Transcript.Some messages may have been defined in the locale but not used (referenced) by any method of the image. This option allows the user to find the unused message in a locale. Select a locale and then Locales->Check For Unused Messages. If unused messages are found, they are printed in the Transcript.Messages often use arguments (i.e. they contained %i where i is an integer); for example: '%1 cannot become the default application.'. This option checks all of the arguments of the messages (if it contains any) of a locale to see if they are valid. A message using arguments is valid if there are no missing arguments. An argument is missing if it is not used and if it is less than the maximum one of the used arguments (e.g. for '%2 %5' the missing arguments are 1, 3 and 4). Select a locale and then Locales->Check Messages Arguments. If messages with invalid arguments are found, they are printed in the Transcript.
• To specify the class of the object editor to be used, execute: NlsCatalogBrowser objectEditorClass: <ClassOfTheEditor>.
• To specify the selector of the method to apply to the object editor class, execute: NlsCatalogBrowser objectEditorSelector: <#selectorToBeUsed>. The method defined by the selector must be able to accept two arguments:
• To add options to the export submenu execute NlsCatalogBrowser exportOptions: <a Collection of Arrays>. Each Array represents the information needed to add an export entry to the export submenu and export the selected locale when the menu is selected. Each Array should contain:
• the selected locale: an Array containing 3 strings: #(language territory characterSet).To add options to the import submenu execute: NlsCatalogBrowser importOptions: <a Collection of Arrays>. Each Array represents the information needed to add an import entry to the import submenu and import the selected locale when the menu is selected. Each Array should contain:
• the selected locale: an Array containing 3 strings: #(language territory characterSet).
|