[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] gettext-0.10.40 installs files in the wrong directories
From: |
Bruno Haible |
Subject: |
Re: [patch] gettext-0.10.40 installs files in the wrong directories |
Date: |
Fri, 26 Oct 2001 13:21:22 +0200 (CEST) |
> The following patch against gettext-0.10.40 fixes this:
--- po/Makefile.in.in.old Sun Oct 7 22:58:26 2001
+++ po/Makefile.in.in Sun Oct 7 22:59:12 2001
@@ -106,7 +106,7 @@
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
- lang=`echo $$cat | sed 's/\.gmo$$//'`; \
+ lang=`echo $$cat | sed 's/\.gmo$$//' | sed 's/\.mo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(mkinstalldirs) $(DESTDIR)$$dir; \
if test -r $$cat; then \
There must be a version mismatch somewhere on your side. If the
package is using the corresponding gettext.m4 macro from
gettext-0.10.40, the elements of $(CATALOGS) and $(GMOFILES) will all
end in .gmo, not .mo. For a correct use of gettext (i.e. take both
m4/gettext.m4 and po/Makefile.in.in from the same version), your patch
is a nop.
Bruno