X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/98cc6bc446211682eab914023cf36c1bbd02f6d7..900c4146d17198f324372f99c56b982de5459685:/m4/linguas.m4 diff --git a/m4/linguas.m4 b/m4/linguas.m4 index 5577c8a..2ae8a9d 100644 --- a/m4/linguas.m4 +++ b/m4/linguas.m4 @@ -16,8 +16,8 @@ AC_REQUIRE([AM_GNU_GETTEXT]) POFILES= MOFILES= -if test -f "$srcdir/$POSUB/LINGUAS"; then - ALL_LINGUAS=`sed 's/#.*$//' "$srcdir/$POSUB/LINGUAS"` +if test -f "$srcdir/po/LINGUAS"; then + ALL_LINGUAS=`sed 's/#.*$//' "$srcdir/po/LINGUAS"` : ${LINGUAS=all} if test x"$LINGUAS" != x"all"; then @@ -36,14 +36,16 @@ if test -f "$srcdir/$POSUB/LINGUAS"; then set x $ALL_LINGUAS; shift case ${#} in 0) ;; - *) POFILES=`printf "$POSUB/%s.po\n" "${@}"` ;; + *) POFILES=`printf "po/%s.po\n" "${@}"` ;; esac - set x $LINGUAS; shift - case ${#} in - 0) ;; - *) MOFILES=`printf "$POSUB/%s.mo\n" "${@}"` ;; - esac + if test x"$USE_NLS" = x"yes"; then + set x $LINGUAS; shift + case ${#} in + 0) ;; + *) MOFILES=`printf "po/%s.mo\n" "${@}"` ;; + esac + fi fi AC_SUBST([POFILES])