• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<HTML><!-- #BeginTemplate "/Templates/MainTemplate.dwt" -->
2<HEAD>
3<!-- #BeginEditable "doctitle" -->
4<TITLE>RB Manager Tutorial - Creating Resources</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 2. Creating a New Resource Bundle</H3>
88      <P><B>Things to Consider</B></P>
89      <P>A resource bundle in terms of this application is a group of property
90        files with the same base class name. For instance, the resource bundle
91        for RB Manager includes files: <code>RBManager.properties</CODE>, <code>RBManager_de.properties</CODE>,
92        <code>RBManger_fi.properties</CODE>, etc. In future versions of the program,
93        RB Manager will be extended to support importing and exporting data from
94        other language translations schemas such as the XML internationalization
95        standard, TMX.</P>
96      <P>You can have as many Resource Bundles as you like for an application,
97        though most teams choose to work with just one. RB Manager allows you
98        to work on one resource bundle at a time, editing either individual translation
99        files or groups of translation files within the bundle. When you create
100        a resource bundle you will be creating the base class translation file
101        for that bundle. Other files can be added at any time later. The base
102        class translation file provides a default translation in case locales
103        are not specified or a resource translation file does not exist for the
104        locale that is specified.</P>
105      <P>You will have to choose a base class name for the resource bundle. That
106        name may have no white spaces and no underscores, and it should remind
107        you in some way of the project or function to which it is attached. You
108        will also have to enter a name for the person or people in charge of managing
109        the resource bundle.</P>
110      <P><B>Creating the Resource Bundle</B></P>
111      <P>From the File menu, select 'New Resource Bundle...' You will be prompted
112        to enter the base class name. If you enter a properly formatted name,
113        the tree display on the lower left will change to reflect the name you
114        entered. Click on the name of your resource bundle, and make sure the
115        'Statistics' tab is selected. You should see something like the following:</P>
116      <P><IMG SRC="../images/screenshots/new_bundle.gif" WIDTH="552" HEIGHT="385"></P>
117      <P>The only resource file you have is that of the base class. Select the
118        '(Base Class)' node of the tree by clicking on it. You should now see
119        the following:</P>
120      <P><IMG SRC="../images/screenshots/new_baseclass.gif" WIDTH="676" HEIGHT="511"></P>
121      <P>The fields represented here have no bearing on how the translations will
122        work in your application, but give RBManager some metadata to better organize
123        the file. Resource Title should be a short title that represents this
124        file, such as 'RBTutorial Base Class'. You can enter any comment and file
125        manager value you like. The language, country, and variant fields provide
126        a place for listing the full name of the language, country, and variant
127        so that you do not have to rely on two or three letter encodings. You
128        can also leave these fields blank if they are not relevant. Once you have
129        entered these values in, finalize them by pressing the 'Update' button.</P>
130      <P><A HREF="step1.html">Back to Step 1</A> -or- <A HREF="step3.html">Forward
131        to Step 3</A></P>
132      <!-- #EndEditable --></TD>
133	</TR>
134	<TR>
135		<TD BACKGROUND="../images/template_ll.gif" HEIGHT="40" WIDTH="200">
136			<!-- Comment -->
137		</TD>
138		<TD WIDTH="80">
139			<!-- Comment -->
140		</TD>
141		<TD>
142			<CENTER><SPAN CLASS="Copyright">Copyright 2000-2001 International Business Machines, All Rights Reserved</SPAN></CENTER>
143		</TD>
144	</TR>
145</TABLE>
146
147</BODY>
148<!-- #EndTemplate --></HTML>
149