Accept and store translations data from the plugin and theme update check endpoints.

Send site locale. Rename wp_get_installed_language_data() to wp_get_installed_translations().

see #18200.


git-svn-id: https://develop.svn.wordpress.org/trunk@25536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-09-21 04:07:34 +00:00
parent 9fd23a65e7
commit 98f073272d
2 changed files with 28 additions and 12 deletions

View File

@@ -627,7 +627,7 @@ function get_available_languages( $dir = null ) {
}
/**
* Get installed language data.
* Get installed translations.
*
* Looks in the wp-content/languages directory for translations of
* plugins or themes.
@@ -637,7 +637,7 @@ function get_available_languages( $dir = null ) {
* @param string $type What to search for. Accepts 'plugins', 'themes'.
* @return array Array of language data.
*/
function wp_get_installed_language_data( $type ) {
function wp_get_installed_translations( $type ) {
if ( $type !== 'themes' && $type !== 'plugins' )
return array();