aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.vala7
-rw-r--r--vapi/config.vapi2
2 files changed, 8 insertions, 1 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 ();
}
diff --git a/vapi/config.vapi b/vapi/config.vapi
index 4be6d11..15c4c88 100644
--- a/vapi/config.vapi
+++ b/vapi/config.vapi
@@ -1,7 +1,7 @@
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "../config.h")]
namespace Config {
public const string GETTEXT_PACKAGE;
- public const string LOCALEDIR;
+ public const string GNOMELOCALEDIR;
public const string PKGDATADIR;
public const string PACKAGE_NAME;
public const string PACKAGE_VERSION;