![]() |
|||||||||||
![]() |
|||||||||||
|
Step 5. Adding Resource Files for New LanguagesCreating a New Language File The only way by which to create a new language file is by selecting the 'Add New Resource File...' option from the 'Options' menu. When you do so a dialog box will appear similar to this: The top three fields identify the file. The bottom three sections, Language,
Country, and Variant define the role of the resource file within the bundle.
The only required field is the encoding field for the language. The encoding
fields are inserted into the name of the resource file whenever the fields
are filled. The file name would following the pattern Since there may be instances where the language file being created may have few differences from the base class property file, an option is given for copying or not all of the resources from the base class file to the new file. By default, this option is selected and each resource will be copied from the base file and marked as untranslated in the new resource file. Working with the New Language File Once a language file has been created, there will be resources that need to be translated. This can be done from two different views. First, go to the tree on the lower left of the screen and select the file that you have just created. In this case it will be under the language encoding de node of the tree. Select the file by clicking on it once. Selecting the 'Untranslated' tab on the right should result in a view similar to this:
This section displays all of the resources that are marked as untranslated in the file. Alternatively, you could select the 'Groups' tab and see all of the resources, one group at a time, whether or not they have been marked as translated. Double clicking on a row in the the tables present in either view will bring up a dialog box similar to one you have all ready seen: The top three editable components are all disabled. This is because changing them would required editing files other than the one currently being viewed. This type of editing can be accomplished only from the base class. To change the translation value, alter the field labeled 'Translation:' with the new translation. You may also change the resource comment and lookup comments if you like, but this change will be visible only from RBManager. You also may find that the resource requires no translation if this is the case, just select the 'Translated' check box at the bottom of the dialog and press 'Edit'. If you change the translation, the 'Translated' check box will automatically check itself when you are finished. Continue this process until you have completely translated this file, or leave the file untranslated, but save your work so that you or someone else can return to it later. To learn how to save your results, go to the next step. |
||||||||||
|