[gimp/gimp-2-10] app: also localize LC_TIME to GUI language.



commit 1e76a008c5577d44006619950595de9c2828f613
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.
    
    (cherry picked from commit a4e65ac83668fdea7f58efe8c0bfaec535f6bb8b)

 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]