You need the option that prevents the &quot;fuzzy&quot; translations. It is &quot;-N&quot;. That makes everything a lot faster.<br><br>Greetings,<br>Erdal<br><br><div><span class="gmail_quote">2006/6/14, Tim Morley &lt;<a href="mailto:t_morley@argonet.co.uk">
t_morley@argonet.co.uk</a>&gt;:</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 --&gt;<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&nbsp;&nbsp; for f in `find . -name &quot;*.pot&quot;`;
<br>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do tempfile=`dirname $f`/temp.po;<br>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msgmerge everythingFromRosetta.po $f &gt; $tempfile;<br>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;awk<br>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'$1 !~ /^#~/ {print $0} $1 ~ /^#~/ {exit}'<br>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tempfile &gt; `dirname $f`/`basename $f pot`po;
<br>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rm $tempfile;<br>8&nbsp;&nbsp; done<br><br>which says roughly:<br>1&nbsp;&nbsp; find all the ~230 .pot files waiting to be filled with translated<br>strings<br>2<br>3&nbsp;&nbsp; merge all the translations from Rosetta into each of these ~230
<br>files in turn<br>4<br>5&nbsp;&nbsp; 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&nbsp;&nbsp; write the result in the same place as the .pot file and give it
<br>the same filename with a .po extension<br>7&nbsp;&nbsp; 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>