Resource bundles as java classes is fine.
Requirement is compiling with encoding UTF-8, which should be no problem.
I've added an example to inspect.
But probably you know.
I only know, that UTF-8 was cumbersome, no platform (like linux) with UTF-8 as locale;
editors didn't cope with UTF-8. Mind that then java sources where be default compiled with the platform encoding to the unicode class file. Properties where not compiled, so the default encoding was out of the question.
Today one maybe would start with UTF-8 right away, but I find the history understandable.
package com.sun.tools.doclets.internal.toolkit.resources;
public final class doclets extends java.util.ListResourceBundle {
protected final Object[][] getContents() {
final Object[][] contents = {
{ "doclet.All_Classes", "Ĉiuj Klasoj" },
{ "doclet.All_Implemented_Interfaces", "Ĉiuj Implementitaj Interfacoj:" },
{ "doclet.All_Superinterfaces", "Ĉiuj Superinterfacoj:" },
{ "doclet.All_classes_and_interfaces", "Ĉiuj klasoj kaj interfacoj (escepte de ne-stataj ingitaj tipoj)" },
{ "doclet.AnnotationType", "Prinota Tipo" },
{ "doclet.Annotation_Types_Summary", "Resumo de Prinotaj Tipoj" },
{ "doclet.Author", "Aŭtoro:" },
{ "doclet.Enum_Summary", "Enumeracia Resumo" },
{ "doclet.Enums", "Enumeracioj" },
{ "doclet.Error", "Eraro" },
{ "doclet.Error_Summary", "Erara Resumo" },
{ "doclet.Errors", "Eraroj" },
{ "doclet.Exception", "Escepto" },
{ "doclet.Exception_Summary", "Escepta Resumo" },
{ "doclet.Exceptions", "Esceptoj" },
{ "doclet.Externalizable", "Eksternigebla" },
};
return contents;
}
}