Skip to content

Commit 9a1e867

Browse files
author
0xMett
committed
feat(strings): add Italian strings for targeted announce and /groups
Add ANNOUNCE_SENDING_TARGETED, ANNOUNCE_GROUP_NOT_FOUND, ANNOUNCE_AMBIGUOUS_GROUPS, and GROUPS_LIST_* strings. Update ANNOUNCE_USAGE to document the new pipe syntax.
1 parent f78105b commit 9a1e867

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

src/python_italy_bot/strings.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,24 @@ def mute_success(duration: int | None, reason: str | None) -> str:
190190
ANNOUNCE_OWNER_ONLY = "Solo il proprietario del bot può usare questo comando."
191191
ANNOUNCE_NO_OWNER_CONFIGURED = "BOT_OWNER_ID non configurato."
192192
ANNOUNCE_USAGE = (
193-
"Uso: /announce <messaggio>\n\nSupporta HTML e bottoni: [Testo](buttonurl://url)"
193+
"Uso: /announce <messaggio>\n"
194+
"Uso mirato: /announce <gruppo> | <messaggio>\n\n"
195+
"Il gruppo può essere un ID numerico, @username o nome del gruppo.\n"
196+
"Supporta HTML e bottoni: [Testo](buttonurl://url)"
194197
)
195198
ANNOUNCE_EMPTY_MESSAGE = "Il messaggio non può essere vuoto."
196199
ANNOUNCE_NO_GROUPS = "Nessun gruppo registrato."
197200
ANNOUNCE_SENDING = "Invio annuncio a {count} gruppi..."
201+
ANNOUNCE_SENDING_TARGETED = "Invio annuncio a {name}..."
202+
ANNOUNCE_GROUP_NOT_FOUND = "Gruppo non trovato: {target}"
203+
ANNOUNCE_AMBIGUOUS_GROUPS = (
204+
'Più gruppi corrispondono a "{query}":\n{matches}\n\n'
205+
"Specifica l'ID del gruppo per evitare ambiguità."
206+
)
207+
208+
GROUPS_LIST_HEADER = "Gruppi registrati ({count}):"
209+
GROUPS_LIST_ROW = " {chat_id} — {title}"
210+
GROUPS_LIST_EMPTY = "Nessun gruppo registrato."
198211

199212

200213
def announce_result(success: int, failed: int) -> str:

0 commit comments

Comments
 (0)