[wp-trac] [WordPress Trac] #29395: Site Language: Install translations on the fly
WordPress Trac
noreply at wordpress.org
Tue Nov 4 17:35:41 UTC 2014
#29395: Site Language: Install translations on the fly
---------------------------------+------------------
Reporter: ocean90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.1
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: 4.1-early has-patch | Focuses:
---------------------------------+------------------
Comment (by ocean90):
My current idea is to introduce an AJAX action which takes care of the FS
check and the installation. Some brain dump:
1. On submit we check if the selected languages is already installed
1. If not we send an AJAX request with the language to install
1. The action does first a FS check, if it fails the user will be promted
to enter the FS credentials
1. The user enters the data and submits the data again via AJAX
1. The AJAX action does the installation
1. On success we send the locale back, on failure we return a message
(maybe `add_settings_error()`)
1. After that the form will be submitted with the new locale and the
options can be saved.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29395#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list