#29230 closed defect (bug) (fixed)
When installing a plugin/theme, translations fail to install
Reported by: | netweb | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Upgrade/Install | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When installing a plugin that supports automatic translation updates, the translations will fail to install whilst installing the plugin.
Repro:
- Install WordPress /trunk using the new language/locale selector
- Select Korean (ko_KR - 한국어) and proceed with installing WordPress
- Install either of the following three plugins, Akismet, bbPress or BuddyPress
- Plugin will install successfully but translations fail to install
- See attached images for detailed screenshots
ko_KO 16.JPG
&ko_KO 16 - Translated.JPG
- bbPress is installed successfully and part of the install process is to also install translations though fails with the error
패키지를 설치할 수 없습니다. 유효한 플러그인을 찾을 수 없습니다.
and번역 업데이트가 실패했습니다.
or google translatedYou can not install the package. Can not find a valid plugin.
andTranslation update failed.
- bbPress is installed successfully and part of the install process is to also install translations though fails with the error
Expected Results:
- Plugin and locale translations to both install successfully.
Workaround:
- After the plugin has finished installing, go to WordPress Updates and download any available translations updates and the relevant plugin translations will download successfully.
- *
ko_KO 18.JPG
&ko_KO 18 - Translated.JPG
- bbPress Korean (ko_KO) translations now downloaded and installed successfully.
- *
Notes: I used Korean because it is currently the only locale with 100% WordPress Core 3.9.x/dev translations, 100% Akismet 3.x/dev, 100% 2.5.x/dev bbPress and 2.x/dev BuddyPress translations
Attachments (5)
Change History (11)
#1
@
10 years ago
- Component changed from I18N to Upgrade/Install
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.0
#2
@
10 years ago
When installing a plugin that supports automatic translation updates, the translations will fail to install
A similar thing happens when installing a theme. My steps:
- Installed Semicolon theme.
- Got a bunch of errors (repeated for each language I have in
wp-content/languages
):Updating translations for WordPress (ru_RU)… The package could not be installed. The theme is missing the style.css stylesheet. Translation update failed.
#3
@
10 years ago
- Summary changed from When installing a plugin, plugin translations fail to install to When installing a plugin/theme, translations fail to install
#4
@
10 years ago
- Keywords commit added
Upon initial review, this change looks okay to me, although it's really a brute force fix, but one that will work for the foreseeable future (I think).
This (upgrader_source_selection) is probably something that shouldn't have been a filter, but rather, a callback parameter passed into the update methods instead, so that it only applies to the update instance in question. Out of scope for 4.0 though, so this patch seems good to go.
The
check_package()
callback from Plugin_Upgrader is still hooked intoupgrader_source_selection
and is used as first to check the translation package. After that the translation specific package check runs, which bails directly, because is_wp_error() is true.Pseudo stack: