/**
* Load a calendar
*/
public void before() {
Locale[] installed_locales = null;
XLocaleData locData = null;
try {
locData = (XLocaleData) UnoRuntime.queryInterface(
XLocaleData.class,
((XMultiServiceFactory)tParam.getMSF()).createInstance(
"com.sun.star.i18n.LocaleData"));
} catch (com.sun.star.uno.Exception e) {
}
installed_locales = locData.getAllInstalledLocaleNames();
// use first Locale as fallback, if US-English is not found
Locale lo = installed_locales[0];
for (int i=0; i<installed_locales.length; i++) {
// search for "en" and "US"
if (installed_locales[i].Language.equals("en") &&