aboutsummaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-04 16:54:55 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-07-04 16:54:55 -0400
commit99b12cdd16a1fea2740b812d697bea887df2b5bd (patch)
tree0c3b4c5fc76b9a6ccb922440d03507c4e1e3ed8b /src/main.vala
parent7ca667494e32d110766c2b4a013b6a2c37b8a084 (diff)
downloadayatana-indicator-sound-99b12cdd16a1fea2740b812d697bea887df2b5bd.tar.gz
ayatana-indicator-sound-99b12cdd16a1fea2740b812d697bea887df2b5bd.tar.bz2
ayatana-indicator-sound-99b12cdd16a1fea2740b812d697bea887df2b5bd.zip
Set locale and bind text domain
Diffstat (limited to 'src/main.vala')
-rw-r--r--src/main.vala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.vala b/src/main.vala
index 1ec7d2c..97f311f 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -1,5 +1,12 @@
+[CCode (cheader_filename="libintl.h", type="char *")]
+extern unowned string bind_textdomain_codeset (string domainname, string codeset);
+
static int main (string[] args) {
+ bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
+ Intl.setlocale (LocaleCategory.ALL, "");
+ Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);
+
var service = new IndicatorSound.Service ();
return service.run ();
}