[lasem/lasem-0-4] i18n: actually use translations in lasem-render.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem/lasem-0-4] i18n: actually use translations in lasem-render.
- Date: Wed, 5 Dec 2012 17:02:17 +0000 (UTC)
commit 4e538d0e1b76dcd098472b662714e11bd4351996
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Dec 5 11:20:56 2012 +0100
i18n: actually use translations in lasem-render.
src/lasemrender.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/lasemrender.c b/src/lasemrender.c
index d26f79c..250f346 100644
--- a/src/lasemrender.c
+++ b/src/lasemrender.c
@@ -32,6 +32,7 @@
#include <cairo-pdf.h>
#include <cairo-svg.h>
#include <cairo-ps.h>
+#include <../config.h>
#include <../itex2mml/itex2MML.h>
@@ -89,6 +90,11 @@ int main(int argc, char **argv)
double height_pt, width_pt;
unsigned int height, width;
+ bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+ setlocale (LC_ALL, "");
+
g_type_init ();
context = g_option_context_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]