summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2016-01-11 14:46:52 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2016-06-18 19:36:46 +0800
commitd07e8e8d3dae48774323a874513765635fe16c7b (patch)
treed3ad81f61582b8723c0a19266164dc69a02a56b5 /vapigen
parente2c084eb6e629e11ef1685a70364ee8c6c18ad86 (diff)
downloadvala-d07e8e8d3dae48774323a874513765635fe16c7b.tar.gz
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
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valavapigen.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index 2148e604c..81b627e92 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);