WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 3 months ago

#41093 new defect (bug)

Theme Languages Problem

Reported by: dingdang Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: I18N Keywords: close
Focuses: Cc:
PR Number:

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 3 months ago.
Update Translations prompt triggered upon switching locales

Download all attachments as: .zip

Change History (2)

@garrett-eclipse
3 months ago

Update Translations prompt triggered upon switching locales

#1 @garrett-eclipse
3 months 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

Note: See TracTickets for help on using tickets.