aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/weltschmerz.vala
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--weltschmerz.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/weltschmerz.vala b/weltschmerz.vala
index dac2291..42349d9 100644
--- a/weltschmerz.vala
+++ b/weltschmerz.vala
@@ -1,3 +1,4 @@
+[CCode(cname="LOCALEDIR")] extern const string LOCALEDIR;
const string PROGRAM_NAME = "weltschmerz";
void warning(string message) {
@@ -5,6 +6,10 @@ void warning(string message) {
}
static int main(string[] args) {
+ Intl.bindtextdomain(PROGRAM_NAME, LOCALEDIR);
+ Intl.bind_textdomain_codeset(PROGRAM_NAME, "UTF-8");
+ Intl.textdomain(PROGRAM_NAME);
+
unowned string[]? nullargs = null;
Gtk.init(ref nullargs);