[valadoc] valadoc: Call setlocale in main function



commit e95f5493defcea96349df51de4f58cc3fdf88c14
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Mon Jan 11 14:43:27 2016 +0800

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

 src/valadoc/valadoc.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/valadoc/valadoc.vala b/src/valadoc/valadoc.vala
index 9ebe79e..2e7801b 100644
--- a/src/valadoc/valadoc.vala
+++ b/src/valadoc/valadoc.vala
@@ -305,6 +305,7 @@ public class ValaDoc : Object {
        }
 
        static int main (string[] args) {
+               Intl.setlocale (LocaleCategory.ALL, "");
                ErrorReporter reporter = new ErrorReporter();
 
                try {


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