Click on Next and name the new file, Start.properties. Then click on Finish. The
new file will appear next to the source code files.
In Eclipse you can achieve the same result by right-clicking on the source package
and then selecting New | Other??¦, and then, under the General category, File.
Now we can move the authentication-failed message from the root message
catalogue to the Start.properties file. Also, as a part of the process of page
internationalization, we need to "externalize" all the strings used on that page??”titles,
labels, links text and so on??”everything that should be later displayed in
different languages.
You can create any reasonable key for the messages that you create. For example,
this is what the contents of the Start.properties file could look like after the
externalization is completed:
authentication-failed=We couldn't authenticate you. Try again or
register.
login-here=Log in here
Chapter 7
[ 179 ]
user-name=User Name
password=Password
or-register=Or register
log-in=Log In
The page title and header??”Celebrity Collector, also needs to be externalized, but it
will most likely be needed by the other pages too, so let's add the following message
to the root message catalog, app.
Pages:
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230