From: INOPIAE Date: Sun, 31 Jul 2016 06:50:40 +0000 (+0200) Subject: upd: replace assure, assurance, assurer etc in output to user X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=c4d3f24d14399e48026850fd69b15bd108c020e4 upd: replace assure, assurance, assurer etc in output to user Change-Id: I3da54fbf2469b14f1e3e8ce06e6cd16b93c34f41 --- diff --git a/src/org/cacert/gigi/dbObjects/Group.java b/src/org/cacert/gigi/dbObjects/Group.java index dd6767ef..e85b8277 100644 --- a/src/org/cacert/gigi/dbObjects/Group.java +++ b/src/org/cacert/gigi/dbObjects/Group.java @@ -11,7 +11,7 @@ public enum Group { BLOCKEDLOGIN("blockedlogin", "may not login"), BLOCKEDCERT("blockedcert", "may not issue certificates"), // TTP_ASSURER("ttp-assurer", "may verify via TTP"), TTP_APPLICANT("ttp-applicant", "requests to be verified via ttp"), // CODESIGNING("codesigning", "may issue codesigning certificates"), ORGASSURER("orgassurer", "may verify organisations"), // - NUCLEUS_ASSURER("nucleus-assurer", "may issue nucleus assurances"), LOCATE_AGENT("locate-agent", "wants access to the locate agent system"); + NUCLEUS_ASSURER("nucleus-assurer", "may enter nucleus verifications"), LOCATE_AGENT("locate-agent", "wants access to the locate agent system"); private final String dbName; diff --git a/src/org/cacert/gigi/dbObjects/User.java b/src/org/cacert/gigi/dbObjects/User.java index 9056a35b..4e925a56 100644 --- a/src/org/cacert/gigi/dbObjects/User.java +++ b/src/org/cacert/gigi/dbObjects/User.java @@ -136,7 +136,7 @@ public class User extends CertificateOwner { public void setDoB(DayDate dob) throws GigiApiException { synchronized (Notary.class) { if (getReceivedAssurances().length != 0) { - throw new GigiApiException("No change after assurance allowed."); + throw new GigiApiException("No change after verification allowed."); } if ( !CalendarUtil.isOfAge(dob, User.MINIMUM_AGE)) { diff --git a/src/org/cacert/gigi/pages/wot/AssuranceForm.java b/src/org/cacert/gigi/pages/wot/AssuranceForm.java index aca82b91..e5521dab 100644 --- a/src/org/cacert/gigi/pages/wot/AssuranceForm.java +++ b/src/org/cacert/gigi/pages/wot/AssuranceForm.java @@ -152,14 +152,14 @@ public class AssuranceForm extends Form { try { type = AssuranceType.valueOf(val); } catch (IllegalArgumentException e) { - gae.mergeInto(new GigiApiException("Assurance Type wrong.")); + gae.mergeInto(new GigiApiException("Verification Type wrong.")); } } int pointsI = 0; String points = req.getParameter("points"); if (points == null || "".equals(points)) { - gae.mergeInto(new GigiApiException("For an assurance, you need to enter points.")); + gae.mergeInto(new GigiApiException("For a verification, you need to enter points.")); } else { try { pointsI = Integer.parseInt(points); @@ -191,8 +191,8 @@ public class AssuranceForm extends Form { if (aword != null && !aword.equals("")) { Language langApplicant = Language.getInstance(assuree.getPreferredLocale()); - String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by assurance, please enter your secret password using this form:"); - String subject = langApplicant.getTranslation("Password reset by assurance"); + String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by verification, please enter your secret password using this form:"); + String subject = langApplicant.getTranslation("Password reset by verification"); PasswordResetPage.initPasswordResetProcess(out, assuree, req, aword, langApplicant, method, subject); } return true; diff --git a/src/org/cacert/gigi/pages/wot/AssurePage.java b/src/org/cacert/gigi/pages/wot/AssurePage.java index 8d4a3aac..508a9c62 100644 --- a/src/org/cacert/gigi/pages/wot/AssurePage.java +++ b/src/org/cacert/gigi/pages/wot/AssurePage.java @@ -26,7 +26,7 @@ public class AssurePage extends Page { private static final Template t = new Template(AssuranceForm.class.getResource("AssureeSearch.templ")); public AssurePage() { - super("Assure someone"); + super("Verify someone"); } @@ -51,7 +51,7 @@ public class AssurePage extends Page { AssuranceForm form = Form.getForm(req, AssuranceForm.class); try { if (form.submit(out, req)) { - out.println(translate(req, "Assurance complete.")); + out.println(translate(req, "Verification complete.")); return; } } catch (GigiApiException e) {