You need the option that prevents the "fuzzy" translations. It is "-N". That makes everything a lot faster.<br><br>Greetings,<br>Erdal<br><br><div><span class="gmail_quote">2006/6/14, Tim Morley <<a href="mailto:t_morley@argonet.co.uk">
t_morley@argonet.co.uk</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">OK, scripting gurus, what's wrong with my script (below)? Or more to
<br>the point, why does it take four and a half days (really!) to process?<br><br>I've just written a message to the list about converting ~230 .po<br>files from OpenOffice.org into ~10 needed for Rosetta, and the script<br>
below is supposed to do the opposite automagically (~10 files --><br>~230 files). Well, it *does* exactly that; it just takes an age.<br><br>It's explained in a bit more detail at the bottom of this page:<br><a href="https://wiki.ubuntu.com/JoeyStanford/OpenOffice-EO-FAQs">
https://wiki.ubuntu.com/JoeyStanford/OpenOffice-EO-FAQs</a><br>but if someone could tell me what's making it take so long, I'd be<br>grateful.<br><br>Briefly, the script goes like this:<br>1 for f in `find . -name "*.pot"`;
<br>2 do tempfile=`dirname $f`/temp.po;<br>3 msgmerge everythingFromRosetta.po $f > $tempfile;<br>4 awk<br>5 '$1 !~ /^#~/ {print $0} $1 ~ /^#~/ {exit}'<br>6 $tempfile > `dirname $f`/`basename $f pot`po;
<br>7 rm $tempfile;<br>8 done<br><br>which says roughly:<br>1 find all the ~230 .pot files waiting to be filled with translated<br>strings<br>2<br>3 merge all the translations from Rosetta into each of these ~230
<br>files in turn<br>4<br>5 with each file, allow all lines that don't start with #~, but as<br>soon as we reach the first #~, throw the rest of the file away<br>6 write the result in the same place as the .pot file and give it
<br>the same filename with a .po extension<br>7 remove temp file<br>8<br><br>So, can anybody tell me what the drag is?<br><br>Thanks in advance.<br><br><br>Tim<br>Ubuntu Esperanto Team<br><br><br>--<br>rosetta-users mailing list
<br><a href="mailto:rosetta-users@lists.ubuntu.com">rosetta-users@lists.ubuntu.com</a><br><a href="https://lists.ubuntu.com/mailman/listinfo/rosetta-users">https://lists.ubuntu.com/mailman/listinfo/rosetta-users</a><br>Learn more about Rosetta:
<a href="https://wiki.ubuntu.com/Rosetta">https://wiki.ubuntu.com/Rosetta</a><br></blockquote></div><br>