NumberFormat (Locale locale) { if (locale != null) { String language = locale.getLanguage(); if ("en".equals(language) || language != null && language.length() == 0 /*bundle fallback locale*/) { return new EnglishOrdinalFormat(); } } return new DecimalFormat(); }