aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-16 20:11:02 +0100
committerTeddy Wing2021-03-16 20:11:02 +0100
commit1ce60591040cc7a8163cab04277b393ce87bc3c0 (patch)
tree338de8168c3f2f5daef6ad2382d2b1146f486be2
parent39d3b68407eb1481c03df902daa1d80cea39061f (diff)
downloadmutt-ottolangy-1ce60591040cc7a8163cab04277b393ce87bc3c0.tar.bz2
Set `$attribution_locale` in generated muttrc
The French attribution from before capitalised the month name because I have an EN locale by default. The month shouldn't be capitalised in French. Set the `$attribution_locale` to match the language of the attribution template string. Hard-coding `en_US` on the English one as that's the locale I'm used to.
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 394053f..e96684f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,11 +33,13 @@ const MUTTRC_FILENAME: &'static str = "attribution.muttrc";
/// French attribution config.
const ATTRIBUTION_FR: &'static str =
r#"set attribution = "Le %{%e %b. %Y à %H:%M %Z}, %f a écrit:"
+set attribution_locale = "fr_FR.UTF-8"
"#;
/// English attribution config.
const ATTRIBUTION_EN: &'static str =
r#"set attribution = "On %{%b %e, %Y, at %I:%M %p %Z}, %f wrote:"
+set attribution_locale = "en_US.UTF-8"
"#;