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

@ -941,7 +941,8 @@ impl Server {
.get(&uid)
.map(|u| u.nick.clone())
.unwrap_or_default();
self.snotice_c('v', &format!("{nick} used oper override to join {name}"));
let m = self.trf("{0} used oper override to join {1}", &[nick.as_str(), name]);
self.snotice_c('v', &m);
}
let is_new = !self.channels.contains_key(&key);
let ch = self
@ -971,7 +972,8 @@ impl Server {
.get(&uid)
.map(|u| u.nick.clone())
.unwrap_or_default();
self.snotice_c('j', &format!("{who} created channel {name}"));
let m = self.trf("{0} created channel {1}", &[who.as_str(), name]);
self.snotice_c('j', &m);
}
// JOIN broadcast — extended-join clients also get the account + realname