Example #1
0
 public static Locale findPartyLastLocale(String partyId, Delegator delegator) {
   // just get the most recent UserLogin for this party, if there is one...
   GenericValue userLogin = findPartyLatestUserLogin(partyId, delegator);
   if (userLogin == null) {
     return null;
   }
   String localeString = userLogin.getString("lastLocale");
   if (UtilValidate.isNotEmpty(localeString)) {
     return UtilMisc.parseLocale(localeString);
   } else {
     return null;
   }
 }