/** @return the supported user language (fr or en) */ public static String getSupportedUserLocale() { if (getUserLanguage().equals(Locale.FRENCH.toString())) { return Locale.FRENCH.toString(); } else { return Locale.ENGLISH.toString(); // default } }
public String getLang() { return lang == null ? Locale.ENGLISH.toString() : lang; }
@Override public void setParameter(PreparedStatement arg0, int arg1, Locale arg2, JdbcType arg3) throws SQLException { arg0.setString(arg1, (null != arg2) ? arg2.toString() : Locale.ENGLISH.toString()); }