i18n: localize the snotice/announce path — translate at deliver_server_notice chokepoint; rehash, connect/exit, oper-up, login, channel & ojoin notices via trf (fr, es)

This commit is contained in:
Jean Chevronnet 2026-08-25 13:04:31 +00:00
parent 6f8ff39f99
commit ef96bcbd06
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
9 changed files with 93 additions and 31 deletions

View file

@ -1070,6 +1070,10 @@ impl Server {
return;
};
let nick = u.nick.clone();
// Localize the prose for the recipient; the log/chanlog/syslog tees keep the
// English source. Static snotice/announce text auto-translates here (like the
// numeric chokepoint); already-templated dynamic text passes through unchanged.
let msg = self.catalog.tr(msg);
let mut tags: Vec<String> = Vec::new();
if u.caps.server_time {
tags.push(format!("time={}", iso_time(now())));