changed default localedir to "translations"
This commit is contained in:
parent
9b3b9c3750
commit
58c0d53865
2 changed files with 9 additions and 9 deletions
|
@ -54,7 +54,7 @@ uninstall-hook:
|
|||
if test -d $(prefix) ; then echo `rmdir $(prefix)` ; fi
|
||||
|
||||
clean-local:
|
||||
rm -rf po/*/LC_MESSAGES
|
||||
rm -rf translations
|
||||
|
||||
BINARY_STAGING=/tmp/$(PACKAGE)-$(VERSION)-staging
|
||||
BINARY_DIST=/tmp/$(PACKAGE)-binary-$(VERSION).tar.gz
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -57,12 +57,12 @@ AC_ARG_WITH([datadir-name],
|
|||
AC_SUBST([DATADIR])
|
||||
|
||||
#LOCALEDIR="$datadir/locale"
|
||||
LOCALEDIR=po
|
||||
LOCALEDIR=translations
|
||||
AC_ARG_WITH([localedir],
|
||||
[ --with-localedir=dir install locale data under dir [[po]]],
|
||||
[ --with-localedir=dir install locale data under dir [[translations]]],
|
||||
[case "${withval}" in
|
||||
yes)
|
||||
LOCALEDIR="po"
|
||||
LOCALEDIR="translations"
|
||||
;;
|
||||
no)
|
||||
;;
|
||||
|
@ -555,13 +555,13 @@ fi
|
|||
# Symlinks that allow message catalogs to be used from build tree #
|
||||
#######################################################################
|
||||
|
||||
for lang in `cat po/LINGUAS`
|
||||
rm -rf translations
|
||||
for domain in `grep SUBDIRS $srcdir/po/Makefile.am | cut -d= -f2`
|
||||
do
|
||||
mkdir -p po/$lang/LC_MESSAGES
|
||||
rm -f po/$lang/LC_MESSAGES/*
|
||||
for domain in `cat po/DOMAINS`
|
||||
for lang in `cat $srcdir/po/$domain/LINGUAS`
|
||||
do
|
||||
ln -s ../$domain.gmo po/$lang/LC_MESSAGES/$domain.mo
|
||||
mkdir -p translations/$lang/LC_MESSAGES
|
||||
ln -s ../../../po/$domain/$lang.gmo translations/$lang/LC_MESSAGES/$domain.mo
|
||||
done
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue