Opened 12 years ago
Closed 12 years ago
#30369 closed defect (bug) (fixed)
Manually installing language files issue
| Reported by: | deconf | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | I18N | Version: | 4.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
There is an issue while manually installing language files, to replicate follow these steps:
- Install a new instance of WordPress and select the default option, as shown in 1.png
- Copy the localization files in wp-content (Romanian files in this case)
- Go to Settings -> General and select the new language (ro_RO). The WordPress install is properly localized, as you can see in 2.png

In Updates screen (see 3.png), you'll be prompted to reinstall the en_US version instead of the ro_RO or whatever.

Attachments (6)
Change History (18)
#3
@
12 years ago
- Keywords has-patch 2nd-opinion added; reporter-feedback removed
After switching back to en_US I could see the issue.
The update results are cached in a transient which we could delete if the WPLANG option is changed, see 30369.patch.
#4
@
12 years ago
- Keywords reporter-feedback added; has-patch 2nd-opinion removed
After clicking the "Verifică din nou" button, the correct language is displayed (as shown in your attachment). Probably the transient gets updated and the correct language code is displayed.
#6
@
12 years ago
If wanted we can also use the new function in /wp-admin/includes/class-wp-upgrader.php where we have the same code twice.
#7
@
12 years ago
- Keywords commit added; 2nd-opinion removed
- Milestone Awaiting Review → 4.1
30369.2.patch uses the new function in class-wp-upgrader.php as well.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Install an en_US instance