[wp-trac] [WordPress Trac] #38664: Allow installing translations via the language setting on the user profile edit page admin
WordPress Trac
noreply at wordpress.org
Mon Feb 6 14:19:09 UTC 2023
#38664: Allow installing translations via the language setting on the user profile
edit page admin
-------------------------+-------------------------
Reporter: barryceelen | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: I18N | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+-------------------------
Comment (by swissspidy):
Looks like the language spinner JS (added in [55099], but also exists
elsewhere) could be adjusted a little bit.
If a plugin like Preferred Languages completely removes the
`#WPLANG`/`#locale` input, `languageSelect.find( 'option:selected' ).data(
'installed' )` is also falsey, causing the spinner to be displayed all the
time, even if there were no new languages added.
Could be as simple as:
{{{#!diff
-if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
+if ( languageSelect && ! languageSelect.find( 'option:selected' ).data(
'installed' ) ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38664#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list