[wp-trac] [WordPress Trac] #59656: Merge Performant Translations (Ginger MO)

WordPress Trac noreply at wordpress.org
Thu Feb 1 10:05:10 UTC 2024


#59656: Merge Performant Translations (Ginger MO)
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:  swissspidy
     Type:  enhancement                          |      Status:  reopened
 Priority:  high                                 |   Milestone:  6.5
Component:  I18N                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------
Changes (by Chrystl):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @swissspidy With WordPress 6.5-alpha-57505, I noticed that the .php file
 works only if the .mo file is present. If I remove the .mo file, the .php
 file is no longer loaded.

 Steps to reproduce the issue:

 1. Update WordPress to the nightly version, specifically 6.5-alpha-57505.
 2. Activate the Twenty Twenty-One theme; no plugins are activated.
 3. Go to Settings > General > set the Site Language to "French."
 4. Visit your "Hello world" post on the front end and check that you see
 "Laisser un commentaire" as expected.
 5. Go to https://translate.wordpress.org/projects/wp-
 themes/twentytwentyone/fr/default/ and download the wp-themes-
 twentytwentyone-fr.l10n.php file.
 5. Edit your file, modify "Laisser un commentaire" to "Laisser un
 commentaire - Test," and save your changes.
 6. Rename your file to twentytwentyone-fr_FR.l10n.php, then move it to wp-
 content/languages/themes.
 7. Visit your "Hello world" post on the front end and check that you now
 see "Laisser un commentaire - Test" as expected.
 => If you rename the twentytwentyone-fr_FR.po file, the twentytwentyone-
 fr_FR.l10n.php file is still loaded.
 => If you rename the twentytwentyone-fr_FR.mo file, the twentytwentyone-
 fr_FR.l10n.php file is no longer loaded.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59656#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list