[gnote] * Initialize gettext properly (Close #579520)
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] * Initialize gettext properly (Close #579520)
- Date: Mon, 20 Apr 2009 20:03:41 -0400 (EDT)
commit f855d589dc075862079172258e59acadce911847
Author: Hubert Figuiere <hub figuiere net>
Date: Mon Apr 20 19:10:30 2009 -0400
* Initialize gettext properly (Close #579520)
---
NEWS | 1 +
src/main.cpp | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/NEWS b/NEWS
index 5fa91cb..d4b1dea 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ Fixes:
* Fix wrongly highlighted URLs and a crash when inserting in some situation.
(Close #579225)
* Fix offsets on WikiWord (similar to bug #579225)
+ * Initialize gettext properly (Close #579520)
Translations:
diff --git a/src/main.cpp b/src/main.cpp
index 576aaea..f2bee4e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,8 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
-
+#include <glibmm/i18n.h>
#include <gtkmm/main.h>
#include "gnote.hpp"
@@ -28,6 +29,10 @@ int main(int argc, char **argv)
// if(!Glib::thread_supported()) {
// Glib::thread_init();
// }
+
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+ textdomain(GETTEXT_PACKAGE);
+
Gtk::Main kit(argc, argv);
gnote::Gnote *app = &gnote::Gnote::obj();
int retval = app->main(argc, argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]