WordPress.org

Make WordPress Core

Opened 21 months ago

Last modified 3 weeks ago

#38664 new enhancement

Allow installing translations via the language setting on the user profile edit page admin

Reported by: barryceelen Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version: 4.7
Component: I18N Keywords: needs-patch
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 (8)

#1 @ocean90
21 months ago

By "adding" you mean "installing" right?

#2 @barryceelen
21 months ago

Correct :-)

#3 @ocean90
21 months 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: @johnbillion
21 months 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 @swissspidy
21 months 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 @MaximeCulea
21 months 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.


20 months ago

#8 @swissspidy
3 weeks 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.

Note: See TracTickets for help on using tickets.