1<HTML><!-- #BeginTemplate "/Templates/MainTemplate.dwt" -->
2<HEAD>
3<!-- #BeginEditable "doctitle" --> 
4<TITLE>RB Manager Tutorial - Populating the Bundle</TITLE>
5<!-- #EndEditable --> 
6<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
7<STYLE TYPE="TEXT/CSS">
8<!--
9.topicHead {  font-family: "Times New Roman", Times, serif; font-size: 14pt; font-weight: bold; text-align: center; color: #333333}
10.topicList {  font-family: Georgia, "Times New Roman", Times, serif; font-size: 9pt; color: #FF0099; list-style-image: url(../images/diamond_bullet.gif); text-decoration: none; font-weight: bold}
11.mainBlock {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; text-align: justify}
12-->
13</STYLE>
14</HEAD>
15
16<BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
17<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
18  <TR>
19    <TD ROWSPAN="2" COLSPAN="2" BACKGROUND="../images/template_ul.gif" HEIGHT="75"><IMG SRC="../images/spacer.gif" WIDTH="280" HEIGHT="1" HSPACE="0"></TD>
20		<TD HEIGHT="15"  WIDTH="100%" BACKGROUND="../images/template_u.gif"></TD>
21	</TR>
22	<TR>
23		<TD HEIGHT="60" >
24			<CENTER><IMG SRC="../images/TitleLogo_transparent.gif" VSPACE="0"></CENTER>
25		</TD>
26	</TR>
27	<TR>
28		
29    <TD WIDTH="200" BACKGROUND="../images/template_l.gif" VALIGN="top">
30		<TABLE WIDTH="180" CELLSPACING="0" CELLPADDING="1"> 
31      	<TR>
32			<TD CLASS="topicHead">General</TD>
33		</TR>
34		<TR>
35			<TD VALIGN="center"><IMG SRC="../images/template_line.gif"></TD>
36		</TR>
37		<TR>
38			<TD CLASS="topicList">
39	        <UL>
40              <LI><A HREF="../system_requirements.html">System Requirements</A></LI>
41              <LI><A HREF="../faq.html">FAQ</A></LI>
42              <LI><A HREF="../future_features.html">Future Releases</A></LI>
43              <LI CLASS="topicList"><A HREF="../future_features.html">Version 
44                History</A></LI>
45            </UL>
46			</TD>
47		</TR>
48      	<TR>
49			<TD CLASS="topicHead">RB Manager</TD>
50		</TR>
51		<TR>
52			<TD VALIGN="center"><IMG SRC="../images/template_line.gif"></TD>
53		</TR>
54		<TR>
55			<TD CLASS="topicList">
56	        <UL>
57              <LI><A HREF="../index.html">Home</A></LI>
58              <LI><A HREF="index.html">Tutorial</A></LI>
59              <LI><A HREF="../views/index.html">Functionality and Views</A></LI>
60              <LI><A HREF="../lookandfeel.html">Look and Feel</A></LI>
61              <LI><A HREF="../menu.html">Menu Items</A></LI>
62              <LI CLASS="topicList"><A HREF="step1.html">Preferences</A></LI>
63            </UL>
64			</TD>
65		</TR>
66		<TR>
67			<TD CLASS="topicHead">RB Reporter</TD>
68		</TR>
69		<TR>
70			<TD VALIGN="center"><IMG SRC="../images/template_line.gif"></TD>
71		</TR>
72		<TR>
73			<TD CLASS="topicList">
74	  <UL>
75              <LI><A HREF="../RBReporter.html">Home</A></LI>
76        <LI>Report Types</LI>
77              <LI><A HREF="../scanfile.html">Code Scanning</A></LI>
78            </UL>
79			</TD>
80		</TR>
81	</TABLE>
82
83      <P>&nbsp; </P>
84      </TD>
85		
86    <TD COLSPAN="2" VALIGN="top" CLASS="mainBlock"><!-- #BeginEditable "Main" --> 
87      <H3 ALIGN="CENTER">Step 4. Populating the Bundle with Resources</H3>
88      <P><B>Working within a Group</B></P>
89      <P>In the tutorial file, following the process described in the previous 
90        step, I created a group called 'Questions' and gave it a comment. To view 
91        the group that you created, make sure that the base class at the top of 
92        the file tree to the left is selected, press the 'Groups' tab on the right, 
93        and select your group name from the drop down menu. With any luck, you 
94        will see something like this:</P>
95      <P><IMG SRC="../images/screenshots/empty_group.gif" WIDTH="750" HEIGHT="432"></P>
96      <P>From this view, there are several options that are to be found in the 
97        six buttons to the lower right. We are now going to create a resource. 
98        This can be accomplished by either pressing the button 'Create Resource' 
99        or selecting 'Add New Resource...' from the 'Options' menu at the top 
100        of the screen.</P>
101      <P><B>Filling in Resource Information</B></P>
102      <P>Once you follow one of the above two steps, you should see a dialog similar 
103        to the following:</P>
104      <P><IMG SRC="../images/screenshots/empty_resource.gif"></P>
105      <P>The group shown is the one currently being viewed when you clicked on 
106        the 'Create Resource' button. If you used the menu to bring up this dialog, 
107        it may be a different group. You may move the resource to any group you 
108        wish by changing the value in this drop down box. Both the entry key and 
109        the translation fields are required information. These make up the lookup 
110        value and the translation value respectively stored in your bundle. The 
111        comment field is there in order to aid those who will be translating your 
112        work into other languages. This field provides a way for you to describe 
113        the context of this particular resource.</P>
114      <P>There are a few ways to create the resource once the information is entered. 
115        Pressing 'Create' will add the resource and close the dialog. If you wish 
116        to continue creating resources after the current one, pressing 'Create 
117        &amp; Continue' will create the resource, clear the information you have 
118        just entered, and allow you to enter in a new resource. Pressing 'Cancel' 
119        will close the dialog box and ignore any information currently entered. 
120        As a short cut, you can also hit enter from any of the text boxes but 
121        'Translation'. This will create the resource. Pressing enter from the 
122        translation text box, creates a translation that spans multiple lines 
123        of text.</P>
124      <P>A sample resource creation is show as follows:</P>
125      <P><IMG SRC="../images/screenshots/basic_resource.gif"></P>
126      <P><B>Using 'Look-ups'</B></P>
127      <P>Resource bundles provide a way of translating contextual information 
128        as well. For instance, what if I wanted a translation asking the user 
129        how old they were, and I wanted to ask it with their name inserted into 
130        the question. The placement of their name might be different in different 
131        languages. This is the reason for 'look-ups'. The java.text package defines 
132        a way for implementing these look-ups using numbers surrounded by curly 
133        braces. Thus, I might want to create a resource like the one below:</P>
134      <P><IMG SRC="../images/screenshots/lookup_resource.gif"></P>
135      <P>Once you enter anything into your translation surrounded by curly braces 
136        and change the focus away from the translation field, the dialog box will 
137        update itself with areas for you to enter descriptions of the look-ups 
138        you have entered. This feature of RBManager allows future translators 
139        to understand the context of each look-up.</P>
140      <P><B>Editing the Resources</B></P>
141      <P>From the 'Groups' tab view, you can at any time edit the default values 
142        for a resource. As you enter in new resources they will appear in the 
143        group view as shown:</P>
144      <P><IMG SRC="../images/screenshots/basic_group.gif" WIDTH="750" HEIGHT="432"></P>
145      <P>Double clicking on a resource will bring a dialog box up similar to the 
146        one for creating a resource. Remember that it is only from this view that 
147        you will be able to change the resource in a way that will effect the 
148        entire bundle. Thus it is only in this view that you can change the resource's 
149        group, key name, and default translation and comment.</P>
150      <P><A HREF="step3.html">Back to Step 3</A> -or- <A HREF="step5.html">Forward 
151        to Step 5</A></P>
152      <!-- #EndEditable --></TD>
153	</TR>
154	<TR>
155		<TD BACKGROUND="../images/template_ll.gif" HEIGHT="40" WIDTH="200">
156			<!-- Comment -->
157		</TD>
158		<TD WIDTH="80">
159			<!-- Comment -->
160		</TD>
161		<TD>
162			<CENTER><SPAN CLASS="Copyright">Copyright 2000-2001 International Business Machines, All Rights Reserved</SPAN></CENTER>
163		</TD>
164	</TR>
165</TABLE>
166
167</BODY>
168<!-- #EndTemplate --></HTML>
169