summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/app.c b/src/app.c
index 52b004e2..3c1dd025 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1591,8 +1591,8 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {
1591 const iString *country = text_InputWidget (findChild_Widget(dlg, "ident.country")); 1591 const iString *country = text_InputWidget (findChild_Widget(dlg, "ident.country"));
1592 const iBool isTemp = isSelected_Widget(findChild_Widget(dlg, "ident.temp")); 1592 const iBool isTemp = isSelected_Widget(findChild_Widget(dlg, "ident.temp"));
1593 if (isEmpty_String(commonName)) { 1593 if (isEmpty_String(commonName)) {
1594 makeSimpleMessage_Widget(orange_ColorEscape "MISSING INFO", 1594 makeSimpleMessage_Widget(orange_ColorEscape "${heading.newident.missing}",
1595 "A \"Common name\" must be specified."); 1595 "${dlg.newindent.missing.commonname}");
1596 return iTrue; 1596 return iTrue;
1597 } 1597 }
1598 iDate until; 1598 iDate until;
@@ -1606,11 +1606,8 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {
1606 "%04u-%u-%u %u:%u:%u", 1606 "%04u-%u-%u %u:%u:%u",
1607 &val[0], &val[1], &val[2], &val[3], &val[4], &val[5]); 1607 &val[0], &val[1], &val[2], &val[3], &val[4], &val[5]);
1608 if (n <= 0) { 1608 if (n <= 0) {
1609 makeSimpleMessage_Widget(orange_ColorEscape "INVALID DATE", 1609 makeSimpleMessage_Widget(orange_ColorEscape "${heading.newident.date.bad}",
1610 "Please check the \"Valid until\" date. Examples:\n" 1610 "${dlg.newident.date.example}");
1611 "\u2022 2030\n"
1612 "\u2022 2025-06-30\n"
1613 "\u2022 2021-12-31 23:59:59");
1614 return iTrue; 1611 return iTrue;
1615 } 1612 }
1616 until.year = val[0]; 1613 until.year = val[0];
@@ -1625,8 +1622,8 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {
1625 initCurrent_Time(&now); 1622 initCurrent_Time(&now);
1626 init_Time(&t, &until); 1623 init_Time(&t, &until);
1627 if (cmp_Time(&t, &now) <= 0) { 1624 if (cmp_Time(&t, &now) <= 0) {
1628 makeSimpleMessage_Widget(orange_ColorEscape "INVALID DATE", 1625 makeSimpleMessage_Widget(orange_ColorEscape "${heading.newident.date.bad}",
1629 "Expiration date must be in the future."); 1626 "${dlg.newident.date.past}");
1630 return iTrue; 1627 return iTrue;
1631 } 1628 }
1632 } 1629 }