fixed i18n support
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 22 Dec 2012 10:10:08 +0000 (10:10 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 22 Dec 2012 10:10:08 +0000 (10:10 +0000)
NEWS
NEWS.html
src/main.c

diff --git a/NEWS b/NEWS
index 58c25d8..8d0a8e2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
 What's New
 ==========
 
+v0.0.4
+------
+ * fixed i18n support.
+
 v0.0.3
 ------
 
index 5d8103e..4d33353 100644 (file)
--- a/NEWS.html
+++ b/NEWS.html
@@ -745,7 +745,19 @@ asciidoc.install(2);
 </div>\r
 <div id="content">\r
 <div class="sect1">\r
-<h2 id="_v0_0_3">1. v0.0.3</h2>\r
+<h2 id="_v0_0_4">1. v0.0.4</h2>\r
+<div class="sectionbody">\r
+<div class="ulist"><ul>\r
+<li>\r
+<p>\r
+fixed i18n support.\r
+</p>\r
+</li>\r
+</ul></div>\r
+</div>\r
+</div>\r
+<div class="sect1">\r
+<h2 id="_v0_0_3">2. v0.0.3</h2>\r
 <div class="sectionbody">\r
 <div class="ulist"><ul>\r
 <li>\r
@@ -772,7 +784,7 @@ added fr translation and i18n support.
 </div>\r
 </div>\r
 <div class="sect1">\r
-<h2 id="_v0_0_2">2. v0.0.2</h2>\r
+<h2 id="_v0_0_2">3. v0.0.2</h2>\r
 <div class="sectionbody">\r
 <div class="ulist"><ul>\r
 <li>\r
@@ -794,7 +806,7 @@ renamed ptask to gtask.
 </div>\r
 </div>\r
 <div class="sect1">\r
-<h2 id="_v0_0_1">3. v0.0.1</h2>\r
+<h2 id="_v0_0_1">4. v0.0.1</h2>\r
 <div class="sectionbody">\r
 <div class="ulist"><ul>\r
 <li>\r
@@ -809,7 +821,7 @@ Initial release.
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2012-12-11 10:02:05 CET\r
+Last updated 2012-12-22 11:09:33 CET\r
 </div>\r
 </div>\r
 </body>\r
index 74ae03e..8dc68f6 100644 (file)
@@ -377,6 +377,13 @@ int main(int argc, char **argv)
        GtkBuilder *builder;
        GtkTreeModel *model;
 
+       setlocale(LC_ALL, "");
+
+#if ENABLE_NLS
+       bindtextdomain(PACKAGE, LOCALEDIR);
+       textdomain(PACKAGE);
+#endif
+
        gtk_init(NULL, NULL);
        builder = gtk_builder_new();
        gtk_builder_add_from_file