Maybe to create function that is loaded on register_activation_hook which would check if locale is different then en_US and if it is, compare to list of available translations and finally download po/mo for that language in BuddyPress folder.<div>
<br></div><div>This should be used only for BuddyPress because of special circumstances and not in other plugins.</div><div><br></div><div>We should wait for Nikolay&#39;s thoughts about this.<br>
<br><div class="gmail_quote">2010/6/30 John James Jacoby <span dir="ltr">&lt;<a href="mailto:in@j-3.me" target="_blank">in@j-3.me</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">











<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">All of our translations are managed by separate committers on a
separate SVN. To include all of these translations would force everyone to
download all languages (300kb po + 100kb mo * 10 languages = 4mb in extra
translations for every download)</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">To do this, we would have to download each translation
separately and add it to the tagged package on <a href="http://wp.org" target="_blank">wp.org</a>.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">My thought was that if you needed the translation, we could just
have a cute downloader in BuddyPress that would grab the file, and put it in
wp-content/languages/buddypress/ for safe keeping. We have our own function
that loads the po/mo anyhow, so changing the directory that it points to is no
big deal. Then when BuddyPress 1.2.6 comes out, they won’t have to worry
about their previously downloaded language getting wiped out, or have to
download 4MB of additional translations they won’t use.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:wp-polyglots-bounces@lists.automattic.com" target="_blank">wp-polyglots-bounces@lists.automattic.com</a>
[mailto:<a href="mailto:wp-polyglots-bounces@lists.automattic.com" target="_blank">wp-polyglots-bounces@lists.automattic.com</a>] <b>On Behalf Of </b>Peter
Westwood<br>
<b>Sent:</b> Wednesday, June 30, 2010 5:29 PM<br>
<b>To:</b> <a href="mailto:wp-polyglots@lists.automattic.com" target="_blank">wp-polyglots@lists.automattic.com</a><br>
<b>Subject:</b> Re: [wp-polyglots] WordPress languages folder</span></p>

</div>

</div><div><div></div><div>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<div>

<div>

<p class="MsoNormal">On 30 Jun 2010, at 21:02, John James Jacoby wrote:</p>

</div>

<p class="MsoNormal"><br>
<br>
</p>

<div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt">Hey
everyone! First time using this list so be gentile.<span> </span></span><span style="font-size:11.0pt;font-family:Wingdings">J</span><span style="font-size:11.0pt"></span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt">For
BuddyPress, we have a large number of users in languages other than English,
and when BuddyPress gets updated their po/mo’s are deleted, and they are
forced to redownload their translations.</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt">I
was wondering if there is any compelling reason for plugins to NOT put their
translation files into wp-content/languages/*plugin-folder-name* and then write
their own functions to load those files, and update those files when needed.</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt">Seems
to me this would fix our problems, but I wanted to consult with you all before
giving it a go.</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>

</div>

</div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">I just include all current po/mo&#39;s in the plugin download.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Does this not work for you?</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">e.g. <a href="https://plugins.svn.wordpress.org/wordpress-beta-tester/tags/0.92/" target="_blank">https://plugins.svn.wordpress.org/wordpress-beta-tester/tags/0.92/</a></p>

</div>

<p class="MsoNormal"> </p>

<div>

<div>

<p class="MsoNormal"><span style="font-size:13.5pt;color:black">-- <br>
Peter Westwood<br>
<a href="http://blog.ftwr.co.uk/" target="_blank">http://blog.ftwr.co.uk</a> | <a href="http://westi.wordpress.com/" target="_blank">http://westi.wordpress.com</a><br>
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5</span></p>

</div>

</div>

<p class="MsoNormal"> </p>

</div></div></div>

</div>


<br>_______________________________________________<br>
wp-polyglots mailing list<br>
<a href="mailto:wp-polyglots@lists.automattic.com" target="_blank">wp-polyglots@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-polyglots" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-polyglots</a><br>
<br></blockquote></div><br>
</div>