[wp-trac] [WordPress Trac] #59656: Merge Performant Translations (Ginger MO)
WordPress Trac
noreply at wordpress.org
Sat Feb 24 09:46:27 UTC 2024
#59656: Merge Performant Translations (Ginger MO)
-------------------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: closed
Priority: high | Milestone: 6.5
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note | performance
-------------------------------------------------+-------------------------
Comment (by swissspidy):
In [changeset:"57704" 57704]:
{{{
#!CommitTicketReference repository="" revision="57704"
I18N: Do not set translation controller locale in bootstrap.
Removes the `WP_Translation_Controller::set_locale()` call from `wp-
settings.php`, which happened before the current user was loaded.
That caused translations to be missing when the site locale and user
locale were different, as the translation was associated with the wrong
locale.
Turns out this call was not needed at all, as the locale will be
set/updated when calling `load_textdomain()` anyway.
Props oglekler.
See #59656.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59656#comment:56>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list