]> git.ipfire.org Git - oddments/collecty.git/commitdiff
locale: Use LANGUAGE instead of legacy LANG
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2020 17:26:26 +0000 (17:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2020 17:26:26 +0000 (17:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/base.py

index 12e56bebd96bc7b8130c09e30988b62d7edeb0fc..5fedb854b099e7ab5504435aaaa0968e1fd7bf24 100644 (file)
@@ -40,9 +40,9 @@ class Environment(object):
        def __init__(self, timezone="UTC", locale="en_US.utf-8"):
                # Build the new environment
                self.new_environment = {
-                       "LANG"   : locale,
-                       "LC_ALL" : locale,
-                       "TZ"     : timezone,
+                       "LANGUAGE" : locale,
+                       "LC_ALL"   : locale,
+                       "TZ"       : timezone,
                }
 
        def __enter__(self):