summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-26 13:09:09 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-26 13:09:09 +0100
commitbcd38bb9970b4780115f2c45bbd8da04ca3f30b6 (patch)
treeb5b6da2ce6f12a382df2c5ccd5e27d2a488e303a
parent4b4fcf0c19bbad5c102b7e4e283420cdc571da5c (diff)
downloadclutter-gtk-bcd38bb9970b4780115f2c45bbd8da04ca3f30b6.tar.gz
i18n: Use po/LINGUAS
Instead of our custom m4 macros, so that we can share the same behaviour between Autotools and Meson builds.
-rw-r--r--build/autotools/Makefile.am1
-rw-r--r--build/autotools/as-linguas.m424
-rw-r--r--configure.ac1
-rw-r--r--po/LINGUAS3
4 files changed, 3 insertions, 26 deletions
diff --git a/build/autotools/Makefile.am b/build/autotools/Makefile.am
index 7e66517..ac9e454 100644
--- a/build/autotools/Makefile.am
+++ b/build/autotools/Makefile.am
@@ -1,5 +1,4 @@
EXTRA_DIST = \
introspection.m4 \
as-compiler-flag.m4 \
- as-linguas.m4 \
Makefile.am.silent
diff --git a/build/autotools/as-linguas.m4 b/build/autotools/as-linguas.m4
deleted file mode 100644
index 92b28f7..0000000
--- a/build/autotools/as-linguas.m4
+++ /dev/null
@@ -1,24 +0,0 @@
-# Set ALL_ALL_LINGUAS based on the .po files present. Optional argument is the
-# name of the po directory. $podir/LINGUAS.ignore can be used to ignore a
-# subset of the po files.
-
-AC_DEFUN([AS_ALL_LINGUAS],
-[
- AC_MSG_CHECKING([for linguas])
- podir="m4_default([$1],[$srcdir/po])"
- linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $[]1 }'`
- if test -f "$podir/LINGUAS.ignore"; then
- ALL_LINGUAS="";
- ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
- -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
- for lang in $linguas; do
- if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
- ALL_LINGUAS="$ALL_LINGUAS $lang";
- fi;
- done;
- else
- ALL_LINGUAS="$linguas";
- fi;
- AC_SUBST([ALL_LINGUAS])
- AC_MSG_RESULT($ALL_LINGUAS)
-])
diff --git a/configure.ac b/configure.ac
index 1d73705..883d2cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,7 +213,6 @@ AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,
"$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
-AS_ALL_LINGUAS
dnl = GTK Doc check ========================================================
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..90a1b46
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1,3 @@
+ja
+pl
+zh_CN