1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Use duration strings when reporting the expiry period.

This commit is contained in:
Sadie Powell
2025-04-16 02:52:31 +01:00
parent 597d4a1aee
commit 94c20f3084
3 changed files with 10 additions and 9 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Anope\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-16 02:19+0100\n"
"POT-Creation-Date: 2025-04-16 02:51+0100\n"
"PO-Revision-Date: 2025-04-10 13:32+0100\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
@@ -1283,7 +1283,7 @@ msgid "Accounts can not be registered right now. Please try again later."
msgstr ""
#, c-format
msgid "Accounts that are not used anymore are subject to the automatic expiration, i.e. they will be deleted after %lu days if not used."
msgid "Accounts that are not used anymore are subject to the automatic expiration, i.e. they will be deleted after %s if not used."
msgstr ""
msgid "Activate or deactivate debug mode"
@@ -3869,7 +3869,7 @@ msgid "None"
msgstr ""
#, c-format
msgid "Note that any channel which is not used for %lu days (i.e. which no user on the channel's access list enters for that period of time) will be automatically dropped."
msgid "Note that any channel which is not used for %s (i.e. which no user on the channel's access list enters for that period of time) will be automatically dropped."
msgstr ""
#, c-format
+4 -3
View File
@@ -280,16 +280,17 @@ public:
{
if (!params.empty() || source.c || source.service != *ChanServ)
return;
time_t chanserv_expire = Config->GetModule(this).Get<time_t>("expire", "30d");
if (chanserv_expire >= 86400)
if (chanserv_expire)
{
source.Reply(" ");
source.Reply(_(
"Note that any channel which is not used for %lu days "
"Note that any channel which is not used for %s "
"(i.e. which no user on the channel's access list enters "
"for that period of time) will be automatically dropped."
),
(unsigned long)chanserv_expire / 86400);
Anope::Duration(chanserv_expire, source.nc).c_str());
}
if (source.IsServicesOper())
{
+3 -3
View File
@@ -546,15 +546,15 @@ public:
}
time_t nickserv_expire = Config->GetModule(this).Get<time_t>("expire", "1y");
if (nickserv_expire >= 86400)
if (nickserv_expire)
{
source.Reply(" ");
source.Reply(_(
"Accounts that are not used anymore are subject to "
"the automatic expiration, i.e. they will be deleted "
"after %lu days if not used."
"after %s if not used."
),
(unsigned long)nickserv_expire / 86400);
Anope::Duration(nickserv_expire, source.nc).c_str());
}
}