use of org.mifos.application.admin.servicefacade.PersonnelServiceFacade in project head by mifos.
the class MessageLookup method getLocalizedMessage.
public static String getLocalizedMessage(String key) {
// nothing found so return the key
String message = key;
PersonnelServiceFacade personnelServiceFacade = ApplicationContextProvider.getBean(PersonnelServiceFacade.class);
MessageSource messageSource = ApplicationContextProvider.getBean(MessageSource.class);
if (personnelServiceFacade != null) {
String value = messageSource.getMessage(key, null, personnelServiceFacade.getUserPreferredLocale());
if (StringUtils.isNotEmpty(message)) {
message = value;
}
}
return message;
}
use of org.mifos.application.admin.servicefacade.PersonnelServiceFacade in project head by mifos.
the class BaseActionForm method getLocalizedMessage.
protected String getLocalizedMessage(String key) {
// nothing found so return the key
String message = key;
PersonnelServiceFacade personnelServiceFacade = ApplicationContextProvider.getBean(PersonnelServiceFacade.class);
MessageSource messageSource = ApplicationContextProvider.getBean(MessageSource.class);
if (personnelServiceFacade != null) {
String value = messageSource.getMessage(key, null, personnelServiceFacade.getUserPreferredLocale());
if (StringUtils.isNotEmpty(message)) {
message = value;
}
}
return message;
}
Aggregations