150
150
message=Alligators rock!</programlisting >
151
151
152
152
<programlisting language =" java" ><lineannotation ># in exceptions.properties</lineannotation >
153
- argument.required=The ' {0}' argument is required.</programlisting >
153
+ argument.required=The {0} argument is required.</programlisting >
154
154
155
155
<para >A program to execute the <classname >MessageSource</classname >
156
156
functionality is shown in the next example. Remember that all
@@ -219,7 +219,7 @@ argument.required=The '{0}' argument is required.</programlisting>
219
219
<programlisting >The userDao argument is required.</programlisting >
220
220
221
221
<para >With regard to internationalization (i18n), Spring's various
222
- <classname >MessageResource </classname > implementations follow the same
222
+ <classname >MessageSource </classname > implementations follow the same
223
223
locale resolution and fallback rules as the standard JDK
224
224
<classname >ResourceBundle</classname >. In short, and continuing with the
225
225
example <literal >messageSource</literal > defined previously, if you want
@@ -233,7 +233,7 @@ argument.required=The '{0}' argument is required.</programlisting>
233
233
messages will be resolved is specified manually.</para >
234
234
235
235
<programlisting ><lineannotation ># in exceptions_en_GB.properties</lineannotation >
236
- argument.required=Ebagum lad, the ' {0}' argument is required, I say, required.</programlisting >
236
+ argument.required=Ebagum lad, the {0} argument is required, I say, required.</programlisting >
237
237
238
238
<programlisting language =" java" >public static void main(final String[] args) {
239
239
MessageSource resources = new ClassPathXmlApplicationContext("beans.xml");
0 commit comments