Skip to content

Commit 1a15891

Browse files
authored
Merge pull request #323 from Rustmail/318-missing-traductions
fix(trads): add missing traductions for several audit log events
2 parents edd9e8f + 3fa8012 commit 1a15891

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

crates/rustmail/src/i18n/language/en.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,22 @@ pub fn load_english_messages(dict: &mut ErrorDictionary) {
11931193
"audit_log.member.unknown".to_string(),
11941194
DictionaryMessage::new("Unknown Member Action"),
11951195
);
1196+
dict.messages.insert(
1197+
"audit_log.member.pruned_count".to_string(),
1198+
DictionaryMessage::new("{count} members pruned"),
1199+
);
1200+
dict.messages.insert(
1201+
"audit_log.member.messages_deleted".to_string(),
1202+
DictionaryMessage::new("Messages deleted: {days} days"),
1203+
);
1204+
dict.messages.insert(
1205+
"audit_log.member.moved_to".to_string(),
1206+
DictionaryMessage::new("Moved to {channel} ({count} members)"),
1207+
);
1208+
dict.messages.insert(
1209+
"audit_log.member.disconnected_count".to_string(),
1210+
DictionaryMessage::new("{count} members disconnected"),
1211+
);
11961212
dict.messages.insert(
11971213
"audit_log.channel.create".to_string(),
11981214
DictionaryMessage::new("Channel Created"),

crates/rustmail/src/i18n/language/fr.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,22 @@ pub fn load_french_messages(dict: &mut ErrorDictionary) {
12061206
"audit_log.member.unknown".to_string(),
12071207
DictionaryMessage::new("Action Membre Inconnue"),
12081208
);
1209+
dict.messages.insert(
1210+
"audit_log.member.pruned_count".to_string(),
1211+
DictionaryMessage::new("{count} membres purgés"),
1212+
);
1213+
dict.messages.insert(
1214+
"audit_log.member.messages_deleted".to_string(),
1215+
DictionaryMessage::new("Messages supprimés : {days} jours"),
1216+
);
1217+
dict.messages.insert(
1218+
"audit_log.member.moved_to".to_string(),
1219+
DictionaryMessage::new("Déplacé vers {channel} ({count} membres)"),
1220+
);
1221+
dict.messages.insert(
1222+
"audit_log.member.disconnected_count".to_string(),
1223+
DictionaryMessage::new("{count} membres déconnectés"),
1224+
);
12091225
dict.messages.insert(
12101226
"audit_log.channel.create".to_string(),
12111227
DictionaryMessage::new("Salon Créé"),

0 commit comments

Comments
 (0)