#38664 closed enhancement (fixed)
Allow installing translations via the language setting on the user profile edit page admin
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | I18N | Keywords: | has-patch needs-user-docs has-dev-note |
Focuses: | Cc: |
Description
A language option was added to the user's profile settings page. It would be nice to be able to add languages like you can in Settings > General
Change History (21)
#3
@
8 years ago
- Summary changed from Allow adding locales via the language setting on the user profile edit page admin to Allow installing translations via the language setting on the user profile edit page admin
- Type changed from feature request to enhancement
Related commit: [30335]
I'm not sure about that because it would allow non-admins to modify/add files on your filesystem.
#4
follow-up:
↓ 5
@
8 years ago
I think this feature should at least be allowed for users who can manage options. Without it, an admin has to either install a new language manually, or they have to switch the site language to their preference in order to install it, then switch it back, then switch their user language to their newly-installed preference.
#5
in reply to:
↑ 4
@
8 years ago
I think this feature should at least be allowed for users who can manage options. Without it, an admin has to either install a new language manually, or they have to switch the site language to their preference in order to install it, then switch it back, then switch their user language to their newly-installed preference.
+1
#6
@
8 years ago
If you are looking for wp_disallow_file_mods( $context )
method, it has been implemented in ticket.38673
This ticket was mentioned in Slack in #core-multisite by ocean90. View the logs.
8 years ago
#8
@
7 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 5.0
I think should use the new install_languages
capability introduced in [41268] for this.
I'm doing that in my Preferred Languages feature plugin as well.
This ticket was mentioned in PR #3226 on WordPress/wordpress-develop by swissspidy.
2 years ago
#12
- Keywords has-patch added; needs-patch removed
This change allows installing new translations when changing the user locale on the profile page if the editing user has the necessary capabilities.
Trac ticket: [](https://core.trac.wordpress.org/ticket/38664)
@swissspidy commented on PR #3226:
2 years ago
#14
On the settings screen we have a loading spinner to indicate that something/a download is happening. Should we add this here too?
Good idea! Spinner added now
This ticket was mentioned in Slack in #core-i18n by swissspidy. View the logs.
2 years ago
@swissspidy commented on PR #3226:
2 years ago
#17
#18
@
2 years ago
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:
-if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { +if ( languageSelect && ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
By "adding" you mean "installing" right?