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:
parent
dbff65a4d1
commit
58fcb074ff
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue