private void setLocalizers(Configuration config) {
config.setLocalizerFactory(new LocalizerFactory() {
public Numberer getNumberer(String language, String country) {
Numberer n;
if (language == null) {
n = new Numberer_en();
} else if (language.equals("da")){
n = new net.sf.saxon.option.local.Numberer_da();
} else if (language.equals("de")){
n = new net.sf.saxon.option.local.Numberer_de();
} else if (language.equals("fr")){
n = new net.sf.saxon.option.local.Numberer_fr();
} else if (language.equals("fr-BE")){
n = new net.sf.saxon.option.local.Numberer_frBE();
} else if (language.equals("it")){
n = new net.sf.saxon.option.local.Numberer_it();
} else if (language.equals("nl")){
n = new net.sf.saxon.option.local.Numberer_nl();
} else if (language.equals("nl-BE")){
n = new net.sf.saxon.option.local.Numberer_nlBE();
} else if (language.equals("sv")){
n = new net.sf.saxon.option.local.Numberer_sv();
} else {
n = new Numberer_en();
}
if (country != null) {
n.setCountry(country);
}
return n;
}
});