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
|
|
@ -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())));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue