<div dir="ltr">Nice work! This sounds great to me, and looks good at first glance. Do you have an example change that the modified script might produce?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 8:54 AM, Andreas Jaeger <span dir="ltr"><<a href="mailto:aj@suse.com" target="_blank">aj@suse.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Our PO files contain information about location (filename and line numbers) as well as untranslated strings. Dolph suggested to me recently to import into projects only the *translated* strings and I did some investigation and implementation.  I don't expect this to have any negative impact but wanted to inform you and ask for feedback.<br>
<br>
We will continue to push the full location information to transifex and leave it in the POT files that are stored in each repository. Thus if you download a file from transifex, you have all location information.<br>
<br>
During the import from transifex into the OpenStack git repositories, our scripts remove the location information as well as any untranslated strings thus reducing the files to import significantly. This also reduces the change of an import significantly since a line number change will not cause many location information to be updated.<br>
<br>
The gettext tools we use can cope fine with this smaller PO file since it contains everything that is needed - just nothing more ;)<br>
<br>
Also, it's easy to rebuild the full PO file from the date in the repository using the msgmerge command:<br>
<br>
   msgmerge POT-FILE PO-FILE -o FULL-PO-FILE<br>
<br>
As a first step, I have made this change for documentation projects like openstack-manuals only:<br>
<br>
<a href="https://review.openstack.org/176313" target="_blank">https://review.openstack.org/176313</a><br>
<br>
If this works as expected, I plan to do it for other projects as well.<br>
<br>
Please review and tell me if you have any further ideas or if I overlooked something,<br>
<br>
Andreas<span class="HOEnZb"><font color="#888888"><br>
-- <br>
 Andreas Jaeger aj@{<a href="http://suse.com" target="_blank">suse.com</a>,<a href="http://opensuse.org" target="_blank">opensuse.org</a>} Twitter/Identica: jaegerandi<br>
  SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany<br>
   GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,<br>
       Graham Norton, HRB 21284 (AG Nürnberg)<br>
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126<br>
<br>
</font></span></blockquote></div><br></div>