[baobab/wip/vala] Setup translation stuff.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala] Setup translation stuff.
- Date: Sun, 15 Jan 2012 10:00:42 +0000 (UTC)
commit 3ab1fc03f7e264388333f4d1153b8f6b75ae3249
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jan 15 10:59:30 2012 +0100
Setup translation stuff.
src/config.vapi | 1 +
src/main.vala | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/config.vapi b/src/config.vapi
index e895293..1ef6da5 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -3,4 +3,5 @@ namespace Config {
public const string PKGDATADIR;
public const string VERSION;
public const string GETTEXT_PACKAGE;
+ public const string GNOMELOCALEDIR;
}
diff --git a/src/main.vala b/src/main.vala
index 149c6ed..f97dd05 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -1,4 +1,8 @@
int main (string[] args) {
+ Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);
+ Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
+ Intl.textdomain (Config.GETTEXT_PACKAGE);
+
var baobab = new Baobab.Application ();
return baobab.run (args);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]