/** @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
   }
 }
示例#2
0
 public String getLang() {
   return lang == null ? Locale.ENGLISH.toString() : lang;
 }
示例#3
0
 @Override
 public void setParameter(PreparedStatement arg0, int arg1, Locale arg2, JdbcType arg3)
     throws SQLException {
   arg0.setString(arg1, (null != arg2) ? arg2.toString() : Locale.ENGLISH.toString());
 }