[wp-trac] [WordPress Trac] #30559: Plugins and themes translations aren't downloaded when language is changed
WordPress Trac
noreply at wordpress.org
Sun Feb 15 09:48:21 UTC 2015
#30559: Plugins and themes translations aren't downloaded when language is changed
-----------------------------+------------------------------
Reporter: dimadin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Chouby):
In my experience, translations will be available at some point on a single
site install. The fact that you need to click the "update translations"
button is a bit inconsistent with core translations which are
automatically downloaded but I guess we could live with this on a single
site install.
But it seems that on a multisite install, the plugins and themes
translations are *never* downloaded. Thus the network admin is obliged to
upload all translations manually. The patch proposed does not fix the
issue.
I believe that the problem is coming from the fact that the plugins and
themes translations are downloaded through the update procedure while the
core translations are explicitely downloaded with the function
wp_download_language_pack().
So far I circumvent the issue with this small plugin (network activated)
{{{
<?
// Plugin name: Plugins & themes translation updates
add_filter('themes_update_check_locales', 'pll_update_check_locales');
add_filter('plugins_update_check_locales', 'pll_update_check_locales');
function pll_update_check_locales($locales) {
return get_available_languages();
}
}}}
This still needs an action from the network admin but at least it's an
easier process than the manual upload. Hope it helps waiting for a better
core solution.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30559#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list