list_translation_updates

The WordPress Core list translation updates function.

Description

list_translation_updates(); 

Usage

  1. if ( !function_exists( 'list_translation_updates' ) ) { 
  2. require_once ABSPATH . '/wp-admin/update-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = list_translation_updates(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/update-core.php  
  1. function list_translation_updates() { 
  2. if ( ! $updates ) { 
  3. if ( 'en_US' != get_locale() ) { 
  4. echo '<h2>' . __( 'Translations' ) . '</h2>'; 
  5. echo '<p>' . __( 'Yourtranslationsare all up to date.' ) . '</p>'; 
  6. return; 
  7.  
  8. $form_action = 'update-core.php?action=do-translation-upgrade'; 
  9. ?> 
  10. <h2><?php _e( 'Translations' ); ?></h2> 
  11. <form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-translations" class="upgrade"> 
  12. <p><?php _e( 'Newtranslationsare available.' ); ?></p> 
  13. <?php wp_nonce_field( 'upgrade-translations' ); ?> 
  14. <p><input class="button" type="submit" value="<?php esc_attr_e( 'Update Translations' ); ?>" name="upgrade" /></p> 
  15. </form> 
  16. <?php