Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#18741 closed defect (bug) (fixed)

Autoupdate does not install translation files

Reported by: sirzooro Owned by: dd32
Priority: normal Milestone: 3.2.2
Component: Upgrade/Install Version: 3.2.1
Severity: normal Keywords: has-patch
Cc:

Description

WP autoupdater does not install translation files - at least when I tried to convert my english WP install to Polish.

Steps to reproduce:

  • install WP (English version);
  • add define('WPLANG', 'pl_PL'); to wp-config.php;
  • open /wp-admin/update-core.php page and install WordPress with pl_PL translations.

For some reason updater does not create wp-content/languages directory and does not copy translation files.

As I recall, this worked in the past (for sure on some last WP 2.x versions), but cannot tell when it stopped working.

Attachments (1)

18741.patch (810 bytes) - added by SergeyBiryukov 20 months ago.

Download all attachments as: .zip

Change History (11)

What file does it say it's installing on the upgrade/re-install process page?

  • Keywords reporter-feedback added

And by file, I mean't this zip file:

Downloading update from http://downloads.wordpress.org/…

Confirmed with ru_RU as well.

Downloading update from http://ru.wordpress.org/wordpress-3.2.1-ru_RU.zip…
  • Keywords reporter-feedback removed

Message for pl_PL is similar:

Downloading update from http://pl.wordpress.org/wordpress-3.2.1-pl_PL.zip…

Last edited 20 months ago by sirzooro (previous) (diff)
  • Owner set to dd32
  • Status changed from new to accepted

Cheers, I'll take a look under the hood tomorrow and see what's going on. I have a feeling this might be caused by the locale_package variable not being set when you install the way you have.

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to 3.3

In [17576], str_replace() had arguments in the wrong order.

  • Milestone changed from 3.3 to 3.2.2
  • Resolution set to fixed
  • Status changed from accepted to closed

In [18764]:

Fix typo in languages directory creation for new installations. Props SergeyBiryukov. Fixes #18741 for 3.2

In [18765]:

Fix typo in languages directory creation for new installations. Props SergeyBiryukov. Fixes #18741 for trunk

For anyone who comes across this bug, create your wp-content/languages/ folder manually, and then perform the update, the language files will be loaded then.

#18784 was closed as a duplicate.

Note: See TracTickets for help on using tickets.