[gsound/wip/lantw/call-setlocale-in-main] gsound-play: Call setlocale in main function
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsound/wip/lantw/call-setlocale-in-main] gsound-play: Call setlocale in main function
- Date: Tue, 2 Oct 2018 16:39:03 +0000 (UTC)
commit ef94719d7ec2adfd72b38418754786d4e3346176
Author: Ting-Wei Lan <lantw src gnome org>
Date: Mon Jan 11 14:14:30 2016 +0800
gsound-play: Call setlocale in main function
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760429
tools/gsound-play.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tools/gsound-play.vala b/tools/gsound-play.vala
index 298ba20..e3a5268 100644
--- a/tools/gsound-play.vala
+++ b/tools/gsound-play.vala
@@ -55,6 +55,8 @@ async void play() throws Error
int main(string[] args)
{
+ Intl.setlocale (LocaleCategory.ALL, "");
+
Environment.set_application_name("gsound-play");
var opt_ctx = new OptionContext();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]