[lasem] build: fix compilation after the intl commit.



commit 5ab2b8424c36b021477ac53622f5fd891b4bf0f8
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Tue Dec 28 23:23:43 2010 +0100

    build: fix compilation after the intl commit.
    
    It still doesn't work, but at least it compiles.

 po/.gitignore     |    1 +
 po/LINGUAS        |    1 +
 po/fr.po          |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/lasemrender.c |   12 ++++++------
 4 files changed, 61 insertions(+), 6 deletions(-)
---
diff --git a/po/.gitignore b/po/.gitignore
index 3d7e014..82bafc3 100644
--- a/po/.gitignore
+++ b/po/.gitignore
@@ -1,2 +1,3 @@
 Makefile.in.in
 POTFILES
+*.gmo
diff --git a/po/LINGUAS b/po/LINGUAS
index 0eddece..50e320d 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -1,3 +1,4 @@
 # please keep this list sorted alphabetically
 #
 de
+fr
diff --git a/po/fr.po b/po/fr.po
new file mode 100644
index 0000000..3d337a0
--- /dev/null
+++ b/po/fr.po
@@ -0,0 +1,53 @@
+# French translation for lasem
+# Copyright (C) 2010 Emmanuel Pacaud <emmanuel gnome org>
+# This file is distributed under the same license as the lasem package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: lasem master\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-12-04 22:53+0100\n"
+"PO-Revision-Date: 2010-12-04 22:56+0100\n"
+"Last-Translator: Emmanuel Pacaud <emmanuel gnome org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+
+#: ../src/lasemrender.c:64
+msgid "Output filename"
+msgstr "Nom du fichier de sortie"
+
+#: ../src/lasemrender.c:66
+msgid "Output format"
+msgstr "Format de sortie"
+
+#: ../src/lasemrender.c:68
+msgid "Pixel per inch"
+msgstr "Pixels par pouce"
+
+#: ../src/lasemrender.c:70
+msgid "Debug domains"
+msgstr "Domaine de déboguage"
+
+#: ../src/lasemrender.c:96
+#, c-format
+msgid "Option parsing failed: %s\n"
+msgstr "Syntaxe des options incorrecte: %s\n"
+
+#: ../src/lasemrender.c:105
+#, c-format
+msgid "One input file name is required\n"
+msgstr "Un nom de fichier d'entrée est nécessaire\n"
+
+#: ../src/lasemrender.c:116
+#, c-format
+msgid "Unknown format : %s\n"
+msgstr "Format inconnu: %s\n"
+
+#: ../src/lasemrender.c:238
+#, c-format
+msgid "Can't load %s"
+msgstr "%s ne peut être chargé"
+
diff --git a/src/lasemrender.c b/src/lasemrender.c
index 58bee0b..a3bca40 100644
--- a/src/lasemrender.c
+++ b/src/lasemrender.c
@@ -24,8 +24,8 @@
 #include <string.h>
 #include <lsm.h>
 #include <lsmmathml.h>
-#include <glib/gmessages.h>
-#include <glib/goption.h>
+#include <glib.h>
+#include <glib/gi18n.h>
 #include <glib/gprintf.h>
 #include <gio/gio.h>
 #include <cairo-pdf.h>
@@ -61,13 +61,13 @@ static const GOptionEntry entries[] =
 	{ G_OPTION_REMAINING,	' ', 0,	G_OPTION_ARG_FILENAME_ARRAY,
 		&option_input_filenames, 	NULL, NULL},
 	{ "output",		'o', 0, G_OPTION_ARG_FILENAME,
-		&option_output_filename,	_("Output filename"), NULL},
+		&option_output_filename,	N_("Output filename"), NULL},
 	{ "format", 		'f', 0, G_OPTION_ARG_STRING,
-		&option_output_file_format, 	_("Output format"), NULL },
+		&option_output_file_format, 	N_("Output format"), NULL },
 	{ "ppi", 		'p', 0, G_OPTION_ARG_DOUBLE,
-		&option_ppi, 			_("Pixel per inch"), NULL },
+		&option_ppi, 			N_("Pixel per inch"), NULL },
 	{ "debug", 		'd', 0, G_OPTION_ARG_STRING,
-		&option_debug_domains,		_("Debug domains"), NULL },
+		&option_debug_domains,		N_("Debug domains"), NULL },
 	{ NULL }
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]