From 1ce60591040cc7a8163cab04277b393ce87bc3c0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 16 Mar 2021 20:11:02 +0100 Subject: 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. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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" "#; -- cgit v1.2.3