Translator userTrans = Util.createPackageTranslator(PwChangeController.class, locale) ;
String emailAdress = identity.getUser().getProperty(UserConstants.EMAIL, locale);
TemporaryKey tk = rm.loadTemporaryKeyByEmail(emailAdress);
if (tk == null) tk = rm.createTemporaryKeyByEmail(emailAdress, ip, rm.PW_CHANGE);
myContent.contextPut("pwKey", tk.getRegistrationKey());
body = userTrans.translate("pwchange.intro", new String[] { identity.getName() })
+ userTrans.translate("pwchange.body", new String[] { serverpath, tk.getRegistrationKey(),
I18nManager.getInstance().getLocaleKey(ureq.getLocale()) }) + SEPARATOR
+ userTrans.translate("reg.wherefrom", new String[] { serverpath, today, ip });
subject = userTrans.translate("pwchange.subject");
MailTemplate mailTempl = new MailTemplate(subject, body, null) {