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.

Built from https://develop.svn.wordpress.org/trunk@25536


git-svn-id: http://core.svn.wordpress.org/trunk@25456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2013-09-21 04:08:10 +00:00
parent 0931266fc2
commit 79df17be9c
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();