Make WordPress Core

Opened 8 years ago

Closed 5 years ago

#41093 closed defect (bug) (invalid)

Theme Languages Problem

Reported by: dingdang's profile dingdang Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8
Component: I18N Keywords: close
Focuses: Cc:

Description

Short description: When changing the language AFTER a theme is installed, it doesn't update the po/mo files.

To replicate:

CASE A:

  1. fresh install of WordPress
  2. install any theme that has translation at wordpress.org for language X (not English)
  3. change the language (Dashboard > Settings > General > Site Language) to X

Problem: the theme is not updated. That happens at some point in 24 hours (may be a cron job?)

CASE B: However it is OK if done the following way:

  1. fresh install of WP
  2. change the language to X
  3. install of any theme translated to X at wordpress.org

If in CASE A wordpress core is reinstalled, then it downloads the respective language X files for the theme.

So to solve this an action should be performed on language change to check for language X and update the theme if it is present.

Attachments (1)

Screen Shot 2019-07-17 at 11.30.07 PM.png (21.6 KB) - added by garrett-eclipse 6 years ago.
Update Translations prompt triggered upon switching locales

Download all attachments as: .zip

Change History (4)

@garrett-eclipse
6 years ago

Update Translations prompt triggered upon switching locales

#1 @garrett-eclipse
6 years ago

  • Component changed from General to I18N
  • Keywords close added

Hi @dingdang I hope this finds you well.

Reviewing this appears to be expected functionality. When WordPress is set to a locale and new themes/plugins are installed their respective language files are downloaded at the same time. However when themes/plugins exist already installed and you switch locale if there are available language files then an update will become available for translations. You should see this button on the Updates screen after switching locale if translations files are available for your installed themes/plugins.

As this is expected I'm marking for close and moving to the i18N component.

Let me know if you're not seeing the 'Update Translations' button on the updates page or if I've misunderstood the issue here.

All the best

#2 @desrosj
5 years ago

  • Milestone Awaiting Review deleted

Closing out as this appears to be the correct behavior, and there has been no further reporter feedback.

#3 @desrosj
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.