diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-21 18:04:52 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-21 18:04:52 +0100 |
commit | 76735e6519c9dd7a3efee2613070588b5a1b12ac (patch) | |
tree | 1bca598998aeb4b29c9ed272e38c848bc869c016 /scripts/rankmirrors.py.in | |
parent | 85d0111da8413dc7879f6259afc0e5621c2d2634 (diff) | |
download | pacman-76735e6519c9dd7a3efee2613070588b5a1b12ac.tar.gz pacman-76735e6519c9dd7a3efee2613070588b5a1b12ac.tar.xz |
Copy new backend translation over from frontend translation
Since it is the same string. Done with some bash looping and sed magic.
for src in po/*.po; do
echo $src
newtrans=$(grep -A1 "msgid.*$1" $src | tail -n1)
newtrans=${newtrans//\\/\\\\}
echo "$newtrans"
fname=${src##*/}
dest=lib/libalpm/po/$fname
sed -i -e "/msgid.*$1/{N; s/msgstr.*$/$newtrans/}" $dest
done
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/rankmirrors.py.in')
0 files changed, 0 insertions, 0 deletions