[gimp] app: also localize LC_TIME to GUI language.



commit a4e65ac83668fdea7f58efe8c0bfaec535f6bb8b
Author: Jehan <jehan girinstud io>
Date:   Sun Dec 29 22:55:10 2019 +0100

    app: also localize LC_TIME to GUI language.
    
    When we set the GUI language through Preferences, also set LC_TIME, so
    that locale-aware date functions also produce the right formats.
    
    For instance, I use this in the About dialog to format the release date
    of the last version of GIMP.

 app/language.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/app/language.c b/app/language.c
index 581ff67802..5a99ffaeb3 100644
--- a/app/language.c
+++ b/app/language.c
@@ -735,5 +735,6 @@ language_init (const gchar *language)
     return;
 
   g_setenv ("LANGUAGE", language, TRUE);
+  g_setenv ("LC_TIME", language, TRUE);
   setlocale (LC_ALL, "");
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]