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/.
This commit is contained in:
Adrian 'Nexces' Piotrowicz 2013-07-23 10:49:25 +02:00
parent dbff65a4d1
commit 58fcb074ff
1 changed files with 4 additions and 0 deletions

View File

@ -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 \