wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_get_translation_update_language › WordPress Function
Da7.2.0
Deprecaton/a
› wp_get_translation_update_language ( $locale )
| Parametri: |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Gets the display language for a translation update.
Sorgenti
function wp_get_translation_update_language( $locale ) {
$translations = get_site_transient( 'available_translations' );
if ( is_array( $translations ) && ! empty( $translations[ $locale ]['native_name'] ) ) {
return sprintf(
/* translators: 1: Native language name, 2: Locale. */
__( '%1$s (%2$s)' ),
$translations[ $locale ]['native_name'],
$locale
);
}
return $locale;
}