WordPress Trac: Ticket #23379: Make it possible to update localization files through subversion again, or provide a standalone mo/po file downloadhttps://core.trac.wordpress.org/ticket/23379
<p>
Hi,
</p>
<p>
I wrote a script here a couple years ago to update the core WordPress application through subversion, coz I am tired of tracking my own modifications (if there is any)
</p>
<p>
<a class="ext-link" href="https://github.com/timdream/wp-script"><span class="icon">​</span>https://github.com/timdream/wp-script</a>
</p>
<p>
However, starting v3.3.1, I am not be able to update mo/po files through wordpress-i18n svn repo. According to the localization site here <a class="ext-link" href="https://tw.wordpress.org/"><span class="icon">​</span>https://tw.wordpress.org/</a>, I would have to export the files through GlotPress myself.
</p>
<p>
That leave me two choices with my script:
</p>
<ol><li>Hack my way through GlotPress, curl the GET requests to download the l10n files. The script would have to figure out 3.5.1 comes from 3.5.x first, and zh_TW -&gt; zh-tw.
</li><li>Download <a class="ext-link" href="http://tw.wordpress.org/latest-zh_TW.tar.gz"><span class="icon">​</span>http://tw.wordpress.org/latest-zh_TW.tar.gz</a>, extract and discard everything except the language directory.
</li></ol><p>
Neither approach is optimal. So I would like to propose some possible approaches here:
</p>
<ol class="upperalpha"><li>Export the po/mo files back to subversion. I think this must have been discussed somewhere with people against it.
</li><li>Provide latest-zh_TW-language.tar.gz package.
</li></ol><p>
I am not aware of whether (B) is already exist or not, nor I am aware of where the packaging script is being maintained. If the script is somewhere publicly available through subversion, I am more than happy to provide a patch to it.
</p>
<p>
Until then, I would probably need to find some time to implement (1) in shell script :-/ Thank you for reading the bug report.
</p>
en-usWordPress Trachttps://core.trac.wordpress.org/chrome/site/your_project_logo.pnghttps://core.trac.wordpress.org/ticket/23379
Trac 1.0.1SergeyBiryukovMon, 04 Feb 2013 08:38:15 GMTcomponent, milestone changedhttps://core.trac.wordpress.org/ticket/23379#comment:1
https://core.trac.wordpress.org/ticket/23379#comment:1
<ul>
<li><strong>component</strong>
changed from <em>General</em> to <em>WordPress.org site</em>
</li>
<li><strong>milestone</strong>
changed from <em>Awaiting Review</em> to <em>WordPress.org</em>
</li>
</ul>
TicketsamuelsidlerMon, 02 Sep 2013 21:41:06 GMTstatus changed; owner sethttps://core.trac.wordpress.org/ticket/23379#comment:2
https://core.trac.wordpress.org/ticket/23379#comment:2
<ul>
<li><strong>owner</strong>
set to <em>nacin</em>
</li>
<li><strong>status</strong>
changed from <em>new</em> to <em>assigned</em>
</li>
</ul>
TicketnacinMon, 23 Sep 2013 22:16:28 GMTstatus changed; resolution set; milestone deletedhttps://core.trac.wordpress.org/ticket/23379#comment:3
https://core.trac.wordpress.org/ticket/23379#comment:3
<ul>
<li><strong>status</strong>
changed from <em>assigned</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>worksforme</em>
</li>
<li><strong>milestone</strong>
<em>WordPress.org</em> deleted
</li>
</ul>
<p>
There may be a way to do this in the future. For now, this works:
</p>
<p>
<tt>tar -zvxf wordpress-3.6.1-es_ES.tar.gz --include 'wordpress/wp-content/languages/es_ES.*' --strip=3</tt>
</p>
Ticket