summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analysis/binary.c9
-rw-r--r--src/editor.c5
-rw-r--r--src/main.c3
3 files changed, 6 insertions, 11 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 732d0aa..63450a3 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -34,6 +34,8 @@
#include <sys/stat.h>
#include <sys/types.h>
+#include <i18n.h>
+
#include "line_code.h" /* TODO : supprimer ? */
#include "line_comment.h" /* TODO : supprimer ? */
@@ -52,11 +54,6 @@
-#ifndef _
-# define _(str) str
-#endif
-
-
/* ------------------------ DESASSEMBLAGE DE BINAIRE DIFFERE ------------------------ */
@@ -1426,7 +1423,7 @@ GRenderingLine *build_binary_prologue(const char *filename, const uint8_t *data,
result = NULL;/* FIXME DL_LIST_HEAD_INIT( **/
- line = g_prologue_line_new("Disassembly generated by OpenIDA");
+ line = g_prologue_line_new(_("Disassembly generated by OpenIDA"));
g_rendering_line_add_to_lines(&result, line);
line = g_prologue_line_new("OpenIDA is free software - © 2008-2010 Cyrille Bagard");
diff --git a/src/editor.c b/src/editor.c
index a2741ab..c5c697e 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -25,6 +25,8 @@
#include "editor.h"
+#include <i18n.h>
+
@@ -62,9 +64,6 @@
-#define _(str) str
-
-
void sigchld_handler(int num);
diff --git a/src/main.c b/src/main.c
index e47cd35..fbf8b14 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <gtk/gtk.h>
+#include <i18n.h>
#include "editor.h"
#include "params.h"
@@ -67,10 +68,8 @@ int main(int argc, char **argv)
set_main_configuration(config);
setlocale(LC_ALL, "");
- /*
bindtextdomain(PACKAGE, LOCALE_DIR);
textdomain(PACKAGE);
- */
/* init threads */
g_thread_init(NULL);