As to replacing the files with the drupal 6 files. There's nothing preventing us from creating a two step scenario here, one would alter the table and set the flags on the initial drupal 5 installation, thus using the existing PO files (if any!). The other update would continue the processing (if needed) when the new drupal 6 files are in place.
<br><br>So then the process would go like this:<br><br>1. Every string MATCHING an existing string in a PO file would be set to &quot;not modified&quot;<br>2. Every string NOT MATCHING an existing string in a PO file would be set to &quot;modified&quot;
<br>3. Every string that doesn&#39;t exist in a PO file would be set to &quot;modified&quot;<br><br>Actually, this really makes sense, the user who&#39;s upgrading will most likely be content with the translations as they appear on his drupal 5 site, so it would be most reasonable to set a non-matching/non-existant string as modified to avoid overwriting it in future PO file dumps.
<br><br>By the way, how does drupal currently distinguish PO imported strings from web-modified strings? Or does it just overwrite everything on a PO dump?<br><br><div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">
Gabor Hojtsy</b> &lt;<a href="mailto:gabor@hojtsy.hu">gabor@hojtsy.hu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ashraf Amayreh wrote:
<br>&gt; hmm... we would know of any web modified values if we could<br>&gt; theoretically gather all the PO files that were used on a drupal 5<br>&gt; installation, right? I know little info about PO files so apologies if
<br>&gt; I&#39;m making any wrong assumptions here. I&#39;ve seen PO files distributed in<br>&gt; modules which would make this work, but I don&#39;t know how applicable this<br>&gt; is if an external PO file was used or so forth. Any ideas on
<br>&gt; applicability of this?<br><br>When you update from Drupal 5 to Drupal 6, you throw away your Drupal 5<br>code and you get the new Drupal 6 code. We will try to educate people to<br>grab the core language pack too before the upgrade. The problem is that
<br>we don&#39;t have the PO files used on the Drupal 5 site, if any... Many<br>people translate modules they have no translation for on the web<br>interface, because &#39;it is there&#39;.<br><br>&gt; In worst case, doing this technique on existing PO files is still better
<br>&gt; as it will recognize some strings as &quot;not modified&quot; rather than either<br>&gt; considering all strings as &quot;modified&quot; or &quot;not modified&quot;. It&#39;s still<br>&gt; better to use what PO files exist to get the least error margine I guess.
<br><br>If only we would have the PO files used before. With most Drupal 5<br>sites, the PO files are not in the webroot, because it was told to<br>people to import translations by uploading a big PO file. So they have<br>
the data in the DB but not likely that they have the exact source PO file.<br><br>&gt; Also, what if the modified int (not bit) had a third &quot;unknown&quot; value,<br>&gt; where the user could go and resolve these words? I&#39;m really just
<br>&gt; babbling some random thoughts here.<br><br>Hm, maybe we could do that for this interim period. Question is what UI<br>can help users here. It should be simple and quick. (We can have a few<br>languages with two dozen modules easily, which could result in many
<br>&quot;unknown state&quot; translations).<br><br>Gabor<br></blockquote></div><br>