Browse Source

Install real catalog files first, then links for alias names.

signals
Stefan Esser 3 years ago
parent
commit
73d6db2311
  1. 26
      locale_install.sh

26
locale_install.sh

@ -64,11 +64,31 @@ for file in $locales_dir/*.msg; do
mkdir -p $(dirname "$loc")
if [ -L "$file" ]; then
link=$(readlink "$file")
d=$(dirname "$file")
file="$d/$link"
continue
fi
gencat "$loc" "$file" > /dev/null 2>&1
done
for file in $locales_dir/*.msg; do
base=$(basename "$file")
locale=$(removeext "$base")
loc=$(gen_nlspath "$nlspath" "$locale" "$main_exec")
if [ ! -z "${locales##*$locale*}" ]; then
continue
fi
mkdir -p $(dirname "$loc")
if [ -L "$file" ]; then
link=$(readlink "$file")
locale=$(basename "$link" .msg)
linksrc="$(gen_nlspath "$nlspath" "$locale" "$main_exec")"
ln "$linksrc" "$loc"
fi
done

Loading…
Cancel
Save