[vala] vapigen: Call setlocale in main function



commit d07e8e8d3dae48774323a874513765635fe16c7b
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Jan 11 14:46:52 2016 +0800

    vapigen: Call setlocale in main function
    
    It is required to correctly show translated messages on some locales.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760436

 vapigen/valavapigen.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index 2148e60..81b627e 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -197,6 +197,7 @@ class Vala.VAPIGen : Object {
        }
        
        static int main (string[] args) {
+               Intl.setlocale (LocaleCategory.ALL, "");
                try {
                        var opt_context = new OptionContext ("- Vala API Generator");
                        opt_context.set_help_enabled (true);


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