Replaced get_language call for get_locale

This commit is contained in:
Mike Jolley 2014-09-04 11:38:36 +01:00
parent fd0a9e52b6
commit 9e25450572
1 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<div id="message" class="updated woocommerce-message wc-connect">
<p><?php printf( __( '<strong>WooCommerce Translation Available</strong> &#8211; Install or update your <code>%s</code> translation to version <code>%s</code>.', 'woocommerce' ), WC_Language_Pack_Upgrader::get_language(), WC_VERSION ); ?></p>
<p><a href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'do-translation-upgrade' ), admin_url( 'update-core.php' ) ), 'upgrade-translations' ); ?>" class="button-primary"><?php printf( __( 'Update translation', 'woocommerce' ), WC_Language_Pack_Upgrader::get_language() ); ?></a></p>
<p><?php printf( __( '<strong>WooCommerce Translation Available</strong> &#8211; Install or update your <code>%s</code> translation to version <code>%s</code>.', 'woocommerce' ), get_locale(), WC_VERSION ); ?></p>
<p><a href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'do-translation-upgrade' ), admin_url( 'update-core.php' ) ), 'upgrade-translations' ); ?>" class="button-primary"><?php printf( __( 'Update translation', 'woocommerce' ), get_locale() ); ?></a></p>
</div>