Better Text-Domain maintained...

This commit is contained in:
Shiva Poudel 2014-08-26 22:46:31 +05:45
parent 0f113a5750
commit b201e8d046
1 changed files with 21 additions and 21 deletions

View File

@ -28,39 +28,39 @@ if ( ! defined( 'ABSPATH' ) ) {
<tbody> <tbody>
<tr> <tr>
<td><?php _e( 'Home URL','woocommerce' ); ?>:</td> <td><?php _e( 'Home URL', 'woocommerce' ); ?>:</td>
<td><?php echo home_url(); ?></td> <td><?php echo home_url(); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'Site URL','woocommerce' ); ?>:</td> <td><?php _e( 'Site URL', 'woocommerce' ); ?>:</td>
<td><?php echo site_url(); ?></td> <td><?php echo site_url(); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WC Version','woocommerce' ); ?>:</td> <td><?php _e( 'WC Version', 'woocommerce' ); ?>:</td>
<td><?php echo esc_html( WC()->version ); ?></td> <td><?php echo esc_html( WC()->version ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WC Database Version','woocommerce' ); ?>:</td> <td><?php _e( 'WC Database Version', 'woocommerce' ); ?>:</td>
<td><?php echo esc_html( get_option( 'woocommerce_db_version' ) ); ?></td> <td><?php echo esc_html( get_option( 'woocommerce_db_version' ) ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WP Version','woocommerce' ); ?>:</td> <td><?php _e( 'WP Version', 'woocommerce' ); ?>:</td>
<td><?php bloginfo('version'); ?></td> <td><?php bloginfo('version'); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WP Multisite Enabled','woocommerce' ); ?>:</td> <td><?php _e( 'WP Multisite Enabled', 'woocommerce' ); ?>:</td>
<td><?php if ( is_multisite() ) echo __( 'Yes', 'woocommerce' ); else echo __( 'No', 'woocommerce' ); ?></td> <td><?php if ( is_multisite() ) echo __( 'Yes', 'woocommerce' ); else echo __( 'No', 'woocommerce' ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'Web Server Info','woocommerce' ); ?>:</td> <td><?php _e( 'Web Server Info', 'woocommerce' ); ?>:</td>
<td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td> <td><?php echo esc_html( $_SERVER['SERVER_SOFTWARE'] ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'PHP Version','woocommerce' ); ?>:</td> <td><?php _e( 'PHP Version', 'woocommerce' ); ?>:</td>
<td><?php if ( function_exists( 'phpversion' ) ) echo esc_html( phpversion() ); ?></td> <td><?php if ( function_exists( 'phpversion' ) ) echo esc_html( phpversion() ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'MySQL Version','woocommerce' ); ?>:</td> <td><?php _e( 'MySQL Version', 'woocommerce' ); ?>:</td>
<td> <td>
<?php <?php
/** @global wpdb $wpdb */ /** @global wpdb $wpdb */
@ -74,7 +74,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<td><?php echo count( (array) get_option( 'active_plugins' ) ); ?></td> <td><?php echo count( (array) get_option( 'active_plugins' ) ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WP Memory Limit','woocommerce' ); ?>:</td> <td><?php _e( 'WP Memory Limit', 'woocommerce' ); ?>:</td>
<td><?php <td><?php
$memory = wc_let_to_num( WP_MEMORY_LIMIT ); $memory = wc_let_to_num( WP_MEMORY_LIMIT );
@ -94,29 +94,29 @@ if ( ! defined( 'ABSPATH' ) ) {
<td><?php if ( defined( 'WPLANG' ) && WPLANG ) echo WPLANG; else _e( 'Default', 'woocommerce' ); ?></td> <td><?php if ( defined( 'WPLANG' ) && WPLANG ) echo WPLANG; else _e( 'Default', 'woocommerce' ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'WP Max Upload Size','woocommerce' ); ?>:</td> <td><?php _e( 'WP Max Upload Size', 'woocommerce' ); ?>:</td>
<td><?php echo size_format( wp_max_upload_size() ); ?></td> <td><?php echo size_format( wp_max_upload_size() ); ?></td>
</tr> </tr>
<?php if ( function_exists( 'ini_get' ) ) : ?> <?php if ( function_exists( 'ini_get' ) ) : ?>
<tr> <tr>
<td><?php _e('PHP Post Max Size','woocommerce' ); ?>:</td> <td><?php _e('PHP Post Max Size', 'woocommerce' ); ?>:</td>
<td><?php echo size_format( wc_let_to_num( ini_get('post_max_size') ) ); ?></td> <td><?php echo size_format( wc_let_to_num( ini_get('post_max_size') ) ); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e('PHP Time Limit','woocommerce' ); ?>:</td> <td><?php _e('PHP Time Limit', 'woocommerce' ); ?>:</td>
<td><?php echo ini_get('max_execution_time'); ?></td> <td><?php echo ini_get('max_execution_time'); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'PHP Max Input Vars','woocommerce' ); ?>:</td> <td><?php _e( 'PHP Max Input Vars', 'woocommerce' ); ?>:</td>
<td><?php echo ini_get('max_input_vars'); ?></td> <td><?php echo ini_get('max_input_vars'); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'SUHOSIN Installed','woocommerce' ); ?>:</td> <td><?php _e( 'SUHOSIN Installed', 'woocommerce' ); ?>:</td>
<td><?php echo extension_loaded( 'suhosin' ) ? __( 'Yes', 'woocommerce' ) : __( 'No', 'woocommerce' ); ?></td> <td><?php echo extension_loaded( 'suhosin' ) ? __( 'Yes', 'woocommerce' ) : __( 'No', 'woocommerce' ); ?></td>
</tr> </tr>
<?php endif; ?> <?php endif; ?>
<tr> <tr>
<td><?php _e( 'WC Logging','woocommerce' ); ?>:</td> <td><?php _e( 'WC Logging', 'woocommerce' ); ?>:</td>
<td><?php <td><?php
if ( @fopen( WC_LOG_DIR . 'test-log.log', 'a' ) ) { if ( @fopen( WC_LOG_DIR . 'test-log.log', 'a' ) ) {
printf( '<mark class="yes">' . __( 'Log directory (%s) is writable.', 'woocommerce' ) . '</mark>', WC_LOG_DIR ); printf( '<mark class="yes">' . __( 'Log directory (%s) is writable.', 'woocommerce' ) . '</mark>', WC_LOG_DIR );
@ -126,7 +126,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?></td> ?></td>
</tr> </tr>
<tr> <tr>
<td><?php _e( 'Default Timezone','woocommerce' ); ?>:</td> <td><?php _e( 'Default Timezone', 'woocommerce' ); ?>:</td>
<td><?php <td><?php
$default_timezone = date_default_timezone_get(); $default_timezone = date_default_timezone_get();
if ( 'UTC' !== $default_timezone ) { if ( 'UTC' !== $default_timezone ) {
@ -143,7 +143,7 @@ if ( ! defined( 'ABSPATH' ) ) {
$posting['fsockopen_curl']['name'] = __( 'fsockopen/cURL','woocommerce'); $posting['fsockopen_curl']['name'] = __( 'fsockopen/cURL','woocommerce');
if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) { if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
if ( function_exists( 'fsockopen' ) && function_exists( 'curl_init' )) { if ( function_exists( 'fsockopen' ) && function_exists( 'curl_init' )) {
$posting['fsockopen_curl']['note'] = __('Your server has fsockopen and cURL enabled.', 'woocommerce' ); $posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen and cURL enabled.', 'woocommerce' );
} elseif ( function_exists( 'fsockopen' )) { } elseif ( function_exists( 'fsockopen' )) {
$posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen enabled, cURL is disabled.', 'woocommerce' ); $posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen enabled, cURL is disabled.', 'woocommerce' );
} else { } else {
@ -158,7 +158,7 @@ if ( ! defined( 'ABSPATH' ) ) {
// SOAP // SOAP
$posting['soap_client']['name'] = __( 'SOAP Client','woocommerce' ); $posting['soap_client']['name'] = __( 'SOAP Client','woocommerce' );
if ( class_exists( 'SoapClient' ) ) { if ( class_exists( 'SoapClient' ) ) {
$posting['soap_client']['note'] = __('Your server has the SOAP Client class enabled.', 'woocommerce' ); $posting['soap_client']['note'] = __( 'Your server has the SOAP Client class enabled.', 'woocommerce' );
$posting['soap_client']['success'] = true; $posting['soap_client']['success'] = true;
} else { } else {
$posting['soap_client']['note'] = sprintf( __( 'Your server does not have the <a href="%s">SOAP Client</a> class enabled - some gateway plugins which use SOAP may not work as expected.', 'woocommerce' ), 'http://php.net/manual/en/class.soapclient.php' ) . '</mark>'; $posting['soap_client']['note'] = sprintf( __( 'Your server does not have the <a href="%s">SOAP Client</a> class enabled - some gateway plugins which use SOAP may not work as expected.', 'woocommerce' ), 'http://php.net/manual/en/class.soapclient.php' ) . '</mark>';
@ -177,7 +177,7 @@ if ( ! defined( 'ABSPATH' ) ) {
$response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params );
if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
$posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce' ); $posting['wp_remote_post']['note'] = __( 'wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce' );
$posting['wp_remote_post']['success'] = true; $posting['wp_remote_post']['success'] = true;
} elseif ( is_wp_error( $response ) ) { } elseif ( is_wp_error( $response ) ) {
$posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error:', 'woocommerce' ) . ' ' . $response->get_error_message(); $posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error:', 'woocommerce' ) . ' ' . $response->get_error_message();
@ -297,7 +297,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<tbody> <tbody>
<tr> <tr>
<td><?php _e( 'Force SSL','woocommerce' ); ?>:</td> <td><?php _e( 'Force SSL', 'woocommerce' ); ?>:</td>
<td><?php echo get_option( 'woocommerce_force_ssl_checkout' ) === 'yes' ? '<mark class="yes">'.__( 'Yes', 'woocommerce' ).'</mark>' : '<mark class="no">'.__( 'No', 'woocommerce' ).'</mark>'; ?></td> <td><?php echo get_option( 'woocommerce_force_ssl_checkout' ) === 'yes' ? '<mark class="yes">'.__( 'Yes', 'woocommerce' ).'</mark>' : '<mark class="no">'.__( 'No', 'woocommerce' ).'</mark>'; ?></td>
</tr> </tr>
</tbody> </tbody>