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:
parent
6f8ff39f99
commit
ef96bcbd06
9 changed files with 93 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue