From 9d823735ef187349a00ba30c5f16b1c9992b108a Mon Sep 17 00:00:00 2001 From: fossfreedom Date: Tue, 15 Jul 2014 21:14:29 +0100 Subject: [PATCH] fix build error for translations --- Makefile | 2 +- po/install_all.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 95ba36b..83d9ae0 100644 --- a/Makefile +++ b/Makefile @@ -18,4 +18,4 @@ install: install -m 644 coverart_search_providers.plugin* $(DESTDIR)$(SUBDIR) install -d $(DESTDIR)$(GLIB_DIR) install -m 644 schema/$(GLIB_SCHEME) $(DESTDIR)$(GLIB_DIR) - cd po;./install_all.sh + cd po;./install_all.sh $(DESTDIR)$(LOCALEDIR) diff --git a/po/install_all.sh b/po/install_all.sh index bbe5db1..a83084a 100755 --- a/po/install_all.sh +++ b/po/install_all.sh @@ -1,9 +1,8 @@ #!/bin/sh -default="/usr/share/locale/" -echo "installing languages to $default" +echo "installing languages to $1" for i in *.po; do lang=`basename $i .po` echo "installing $lang" - install -d $default$lang/LC_MESSAGES - msgfmt -c $lang.po -o $default$lang/LC_MESSAGES/coverart_search_providers.mo + install -d $1$lang/LC_MESSAGES + msgfmt -c $lang.po -o $1$lang/LC_MESSAGES/coverart_search_providers.mo done