Implementing the German message catalog by extending ListResourceBundle.
- By Gary Bollinger and Bharathi Natarajan
- October 16, 2000
Enterprise Java
Internationalize Your Web Site
Gary Bollinger and Bharathi Natarajan
Listing 4. Implementing the German message catalog by extending ListResourceBundle.
package i18n;
import java.util.*;
public class i18nMessages_de_DE extends ListResourceBundle {
public Object[][] getContents() {
return contents;
}
private Object[][] contents = {
{ "Hello",
"Güten Tag." },
{ "What is your name?",
"Wie heißen Sie?" },
{ "Good Bye",
"Aufwiedersehen." },
{ "Submit",
"Einreichen" },
{ "Reset",
"Zurücksetzen" }
};
}