[gnome-nibbles/wip/vala: 14/16] Restore i18n
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/wip/vala: 14/16] Restore i18n
- Date: Sat, 27 Jun 2015 17:03:49 +0000 (UTC)
commit 141d88b239a43216448f7c8067d88dc17b4a15d0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jun 27 11:32:12 2015 -0500
Restore i18n
Makefile.am | 4 +++-
autogen.sh | 2 ++
configure.ac | 8 ++++++++
po/POTFILES.in | 9 ++-------
po/POTFILES.skip | 2 ++
5 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f4f0650..cfddca8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,9 @@
-SUBDIRS = data src
+SUBDIRS = data po src
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN)
+GITIGNOREFILES = m4
+
-include $(top_srcdir)/git.mk
diff --git a/autogen.sh b/autogen.sh
index dab1e4c..2f4d7e6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,6 +18,8 @@ if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
fi
set -x
+aclocal --install || exit 1
+intltoolize --force --copy --automake || exit 1
autoreconf --verbose --force --install -Wno-portability || exit 1
{ set +x; } 2>/dev/null
diff --git a/configure.ac b/configure.ac
index 8e6e099..ff05029 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,13 @@ dnl ###########################################################################
AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
dnl ###########################################################################
+dnl Internationalization
+dnl ###########################################################################
+
+IT_PROG_INTLTOOL([0.50.2])
+AC_SUBST([GETTEXT_PACKAGE], [gnome-nibbles])
+
+dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
@@ -52,6 +59,7 @@ data/Makefile
data/icons/Makefile
data/levels/Makefile
data/pix/Makefile
+po/Makefile.in
src/Makefile
src/gnome-nibbles.gresource.xml
])
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 953e3ab..e259c20 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,10 +5,5 @@ data/gnome-nibbles.appdata.xml.in
data/gnome-nibbles.desktop.in
[type: gettext/glade]data/nibbles-menus.ui
data/org.gnome.nibbles.gschema.xml
-src/board.c
-src/games-controls.c
-src/games-scores-dialog.c
-src/gnibbles.c
-src/main.c
-src/preferences.c
-src/scoreboard.c
+src/gnome-nibbles.vala
+src/nibbles-view.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..092e8b0
--- /dev/null
+++ b/po/POTFILES.skip
@@ -0,0 +1,2 @@
+src/gnome-nibbles.c
+src/nibbles-view.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]