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

[libvirt] [PATCH] ALL_LINGUAS: remove "no", now that it's superseded by np.po



Without the first change below, "make distcheck" would fail due to the
absence of po/no.po.  But that file was deliberately removed, because
np.po supersedes it.

I've just committed this first change.
[however, see below it]

>From 0ebd43afa961b6a1b0d5676920c2109d8adae56c Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering redhat com>
Date: Sun, 19 Oct 2008 11:34:22 +0200
Subject: [PATCH] ALL_LINGUAS: remove "no", now that it's superseded by np.po

* configure.in: Remove "no" from hard-coded list.
---
 ChangeLog    |    5 +++++
 configure.in |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6b056d6..cf455ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-19  Jim Meyering  <meyering redhat com>
+
+	ALL_LINGUAS: remove "no", now that it's superseded by np.po
+	* configure.in: Remove "no" from hard-coded list.
+
 Fri Oct 17 14:30:48 CEST 2008 Daniel Veillard <veillard redhat com>

 	* src/qemu_driver.c: add scsi/virtio hotplug support for KVM
diff --git a/configure.in b/configure.in
index 9be3fec..54f1fe1 100644
--- a/configure.in
+++ b/configure.in
@@ -1015,7 +1015,7 @@ if test -d po
 then
     ALL_LINGUAS=`(cd po > /dev/null && ls *.po) | sed 's+\.po$++'`
 else
-    ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr latin sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
+    ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn nso or pa pl pt_BR pt ro ru si sk sl sq sr latin sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
 fi

 dnl Extra link-time flags for Cygwin.
-- 
1.6.0.2.554.g3041b

============================================================================
However, there is no need to maintain that hard-coded list of .po files.
Here's a proposed patch to do away with it:

diff --git a/configure.in b/configure.in
index 54f1fe1..32fffb2 100644
--- a/configure.in
+++ b/configure.in
@@ -1011,12 +1011,7 @@ AM_CONDITIONAL([WITH_LIBVIRTD],[test "x$with_libvirtd" = "xyes"])
 dnl Check for gettext
 AM_GNU_GETTEXT_VERSION([0.14.1])
 AM_GNU_GETTEXT([external])
-if test -d po
-then
-    ALL_LINGUAS=`(cd po > /dev/null && ls *.po) | sed 's+\.po$++'`
-else
-    ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn nso or pa pl pt_BR pt ro ru si sk sl sq sr latin sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
-fi
+ALL_LINGUAS=`(cd "$srcdir/po" > /dev/null && ls *.po) | sed 's+\.po$++'`

 dnl Extra link-time flags for Cygwin.
 dnl Copied from libxml2 configure.in, but I removed mingw changes


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