list_translation_updates

The timeline below displays how wordpress function list_translation_updates has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Display the update translations form.
 *
 * @since 3.7.0
 */
function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' !== get_locale()) {
            echo '<h2>' . __('Translations') . '</h2>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h2><?php 
    _e('Translations');
    ?></h2>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('New translations are available.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 5.3

/**
 * Display the update translations form.
 *
 * @since 3.7.0
 */
function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h2>' . __('Translations') . '</h2>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h2><?php 
    _e('Translations');
    ?></h2>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('New translations are available.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 4.4

/**
 * @since 3.7.0
 */
function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h2>' . __('Translations') . '</h2>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h2><?php 
    _e('Translations');
    ?></h2>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('New translations are available.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 4.3

/**
 * @since 3.7.0
 */
function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h3>' . __('Translations') . '</h3>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h3><?php 
    _e('Translations');
    ?></h3>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('New translations are available.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 4.2

function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h3>' . __('Translations') . '</h3>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h3><?php 
    _e('Translations');
    ?></h3>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('New translations are available.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 4.0

function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h3>' . __('Translations') . '</h3>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h3><?php 
    _e('Translations');
    ?></h3>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-translations" class="upgrade">
		<p><?php 
    _e('Some of your translations are out of date.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}

WordPress Version: 3.7

function list_translation_updates()
{
    $updates = wp_get_translation_updates();
    if (!$updates) {
        if ('en_US' != get_locale()) {
            echo '<h3>' . __('Translations') . '</h3>';
            echo '<p>' . __('Your translations are all up to date.') . '</p>';
        }
        return;
    }
    $form_action = 'update-core.php?action=do-translation-upgrade';
    ?>
	<h3><?php 
    _e('Translations');
    ?></h3>
	<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-themes" class="upgrade">
		<p><?php 
    _e('Some of your translations are out of date.');
    ?></p>
		<?php 
    wp_nonce_field('upgrade-translations');
    ?>
		<p><input class="button" type="submit" value="<?php 
    esc_attr_e('Update Translations');
    ?>" name="upgrade" /></p>
	</form>
	<?php 
}