[aravis] viewer: enable i18n.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] viewer: enable i18n.
- Date: Fri, 25 May 2012 21:14:08 +0000 (UTC)
commit c3c6fbb9b8192a03345a0c212bd7985c3a381346
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri May 25 23:13:11 2012 +0200
viewer: enable i18n.
po/.gitignore | 2 ++
po/POTFILES.in | 3 ++-
po/fr.po | 37 ++++++++++++++++++++++++++++++++++++-
viewer/arvviewer.c | 5 +++++
4 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/po/.gitignore b/po/.gitignore
index 68c54d2..eba3890 100644
--- a/po/.gitignore
+++ b/po/.gitignore
@@ -1,2 +1,4 @@
POTFILES
*.gmo
+notexist
+*.pot
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ba48c2b..515dfa9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,3 @@
# List of source files containing translatable strings.
-viewer/arv-viewer.ui
+[type: gettext/glade]viewer/arv-viewer-2.ui
+[type: gettext/glade]viewer/arv-viewer-3.ui
diff --git a/po/fr.po b/po/fr.po
index ed1db60..6879476 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aravis master\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-12-04 22:53+0100\n"
+"POT-Creation-Date: 2012-05-25 22:58+0200\n"
"PO-Revision-Date: 2010-12-04 22:56+0100\n"
"Last-Translator: Emmanuel Pacaud <emmanuel gnome org>\n"
"Language-Team: Emmanuel Pacaud <emmanuel gnome org>\n"
@@ -16,3 +16,38 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+#: ../viewer/arv-viewer-2.ui.h:1 ../viewer/arv-viewer-3.ui.h:1
+msgid "Aravis"
+msgstr "Aravis"
+
+#: ../viewer/arv-viewer-2.ui.h:2 ../viewer/arv-viewer-3.ui.h:2
+msgid "Frame rate:"
+msgstr "FrÃquence"
+
+#: ../viewer/arv-viewer-2.ui.h:3 ../viewer/arv-viewer-3.ui.h:5
+msgid "Exposure:"
+msgstr "Exposition"
+
+#: ../viewer/arv-viewer-2.ui.h:4 ../viewer/arv-viewer-3.ui.h:6
+msgid "Gain:"
+msgstr "Gain"
+
+#: ../viewer/arv-viewer-2.ui.h:5 ../viewer/arv-viewer-3.ui.h:3
+msgid "Hz"
+msgstr "Hz"
+
+#: ../viewer/arv-viewer-2.ui.h:6 ../viewer/arv-viewer-3.ui.h:7
+msgid "Âs"
+msgstr "Âs"
+
+#: ../viewer/arv-viewer-2.ui.h:7 ../viewer/arv-viewer-3.ui.h:4
+msgid "Auto"
+msgstr "Auto"
+
+#: ../viewer/arv-viewer-2.ui.h:8 ../viewer/arv-viewer-3.ui.h:8
+msgid "Settings"
+msgstr "ParamÃtres"
+
+#: ../viewer/arv-viewer-3.ui.h:9
+msgid "Save a snapshot into image folder"
+msgstr "Sauvegarde d'une capture dans le dossier images"
diff --git a/viewer/arvviewer.c b/viewer/arvviewer.c
index 0e7d256..a3537b9 100644
--- a/viewer/arvviewer.c
+++ b/viewer/arvviewer.c
@@ -29,6 +29,7 @@
#include <arvenumtypes.h>
#include <stdlib.h>
#include <math.h>
+#include <glib/gi18n-lib.h>
static char *arv_viewer_option_debug_domains = NULL;
static gboolean arv_viewer_option_auto_socket_buffer = FALSE;
@@ -659,6 +660,10 @@ main (int argc,char *argv[])
GOptionContext *context;
GError *error = NULL;
+ bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
g_thread_init (NULL);
context = g_option_context_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]