Mailinglist Archive: opensuse-translation (68 mails)

< Previous Next >
[opensuse-translation] Fixed whitespace issue in update-desktop-files-yast.*.po
  • From: Karl Eichwalder <ke@xxxxxxx>
  • Date: Wed, 21 Oct 2009 14:27:13 +0200
  • Message-id: <shpr8hszj2.fsf@xxxxxxxxxxxxxxx>
Because of a whitespace issue (bnc#538245) I've had to touch almost
every update-desktop-files-yast.*.po file. I called:

for l in ?? ??_??; do
msgcat --no-wrap -w 1000 $l/po/update-desktop-files-yast.$l.po \
| awk 'BEGIN{found=0}
/^msgid.* "$/ && found=1 {print;next}
found == 1 && sub(/ *"$/, " \"", $0) {print; found=0;next}
{print} '\
| sed 's/" "/""/' \
| msgcat - -o tmp.$l
mv tmp.$l $l/po/update-desktop-files-yast.$l.po
done

to add a trailing space. Yes, I'm a perl ignorant...

--
Karl Eichwalder
R&D / Documentation

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
--
To unsubscribe, e-mail: opensuse-translation+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-translation+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages