[Lemon-commits] [lemon_svn] ladanyi: r2695 - hugo/trunk/gui

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:54:32 CET 2006


Author: ladanyi
Date: Fri Apr 14 20:31:16 2006
New Revision: 2695

Added:
   hugo/trunk/gui/i18n.h
Modified:
   hugo/trunk/gui/Makefile.am
   hugo/trunk/gui/graph-displayer.cc
   hugo/trunk/gui/main_win.cc

Log:
some reorganization

Modified: hugo/trunk/gui/Makefile.am
==============================================================================
--- hugo/trunk/gui/Makefile.am	(original)
+++ hugo/trunk/gui/Makefile.am	Fri Apr 14 20:31:16 2006
@@ -40,6 +40,7 @@
 	gui_writer.cc \
 	xml.h \
 	guipixbufs.h \
+	i18n.h \
 	gettext.h
 
 glemon_CXXFLAGS = $(GTK_CFLAGS)

Modified: hugo/trunk/gui/graph-displayer.cc
==============================================================================
--- hugo/trunk/gui/graph-displayer.cc	(original)
+++ hugo/trunk/gui/graph-displayer.cc	Fri Apr 14 20:31:16 2006
@@ -9,7 +9,6 @@
 #include <libgnomecanvasmm/polygon.h>
 
 #include <locale.h>
-#include "gettext.h"
 
 #define MAIN_PART
 
@@ -21,6 +20,7 @@
 
 int main(int argc, char *argv[])
 {
+  setlocale(LC_ALL, "");
   bindtextdomain(PACKAGE, LOCALEDIR);
   bind_textdomain_codeset(PACKAGE, "UTF-8");
   textdomain(PACKAGE);

Added: hugo/trunk/gui/i18n.h
==============================================================================
--- (empty file)
+++ hugo/trunk/gui/i18n.h	Fri Apr 14 20:31:16 2006
@@ -0,0 +1,7 @@
+#ifndef I18N_H
+#define I18N_H
+
+#include "gettext.h"
+#define _(string) gettext (string)
+
+#endif

Modified: hugo/trunk/gui/main_win.cc
==============================================================================
--- hugo/trunk/gui/main_win.cc	(original)
+++ hugo/trunk/gui/main_win.cc	Fri Apr 14 20:31:16 2006
@@ -5,8 +5,7 @@
 #include "main_win.h"
 #include "guipixbufs.h"
 
-#include "gettext.h"
-#define _(string) gettext (string)
+#include "i18n.h"
 
 MainWin::MainWin()
 {



More information about the Lemon-commits mailing list