2014-06-04 16:01:38 +00:00
< ? php
2014-07-28 14:50:11 +00:00
/**
* Admin View : Notice - Translation Upgrade
*/
2014-07-28 15:16:35 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
2015-03-13 23:48:15 +00:00
exit ;
2014-07-28 15:16:35 +00:00
}
2014-07-28 14:50:11 +00:00
2015-03-13 23:48:15 +00:00
?>
2014-06-04 16:01:38 +00:00
< div id = " message " class = " updated woocommerce-message wc-connect " >
2014-09-04 10:38:36 +00:00
< p >< ? php printf ( __ ( '<strong>WooCommerce Translation Available</strong> – Install or update your <code>%s</code> translation to version <code>%s</code>.' , 'woocommerce' ), get_locale (), WC_VERSION ); ?> </p>
2014-09-12 22:32:21 +00:00
< p >
< ? php if ( is_multisite () ) : ?>
2015-01-29 14:33:06 +00:00
< a href = " <?php echo esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=translation_upgrade' ), 'debug_action' ) ); ?> " class = " button-primary " >< ? php _e ( 'Update Translation' , 'woocommerce' ); ?> </a>
2014-09-12 22:32:21 +00:00
< ? php else : ?>
2015-01-29 14:33:06 +00:00
< a href = " <?php echo esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'do-translation-upgrade' ), admin_url( 'update-core.php' ) ), 'upgrade-translations' ) ); ?> " class = " button-primary " >< ? php _e ( 'Update Translation' , 'woocommerce' ); ?> </a>
2015-03-13 23:48:15 +00:00
< a href = " <?php echo esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=translation_upgrade' ), 'debug_action' ) ); ?> " class = " button-secondary " >< ? php _e ( 'Force Update Translation' , 'woocommerce' ); ?> </a>
2014-09-12 22:32:21 +00:00
< ? php endif ; ?>
2015-05-21 18:03:40 +00:00
< a href = " <?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'translation_upgrade' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?> " class = " button-secondary skip " >< ? php _e ( 'Hide This Message' , 'woocommerce' ); ?> </a>
2014-09-12 22:32:21 +00:00
</ p >
2014-06-04 16:01:38 +00:00
</ div >