From 58fcb074ffbfd22b6360f08533a810efd8040e2c Mon Sep 17 00:00:00 2001 From: Adrian 'Nexces' Piotrowicz Date: Tue, 23 Jul 2013 10:49:25 +0200 Subject: [PATCH] Updated po-update.sh script for use in (x)buntu. Added another location to scan in function unfmt() due to fact that gtk30.mo and gtk30-properties.mo are found in /usr/share/locale-langpack/ instead of /usr/share/locale/. --- tools/po-update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/po-update.sh b/tools/po-update.sh index 50602c1c..676b9b4b 100755 --- a/tools/po-update.sh +++ b/tools/po-update.sh @@ -42,6 +42,10 @@ test -r "$PO_FILE" || /usr/bin/msginit \ unfmt() { local SOURCE="/usr/share/locale/$LL_CC/LC_MESSAGES/$1.mo" + if [ ! -f $SOURCE ] + then + local SOURCE="/usr/share/locale-langpack/$LL_CC/LC_MESSAGES/$1.mo" + fi local TARGET="$(mktemp --tmpdir $1-$LL_CC-XXXXXX.po)" /usr/bin/msgunfmt \ --no-escape --indent \