Rename to "Woo Viet"

* Replace all “WooCommerce for Vietnam” to “Woo Viet”

* Replace all “woocomerce-fo-vietnam” to “woo-viet”
This commit is contained in:
dat
2017-01-02 08:18:01 +07:00
parent c445ab7eab
commit b3eb79cc3f
6 changed files with 103 additions and 103 deletions
+20 -20
View File
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
/**
* Create the admin page under wp-admin -> WooCommerce -> WooCommerce for Vietnam
* Create the admin page under wp-admin -> WooCommerce -> Woo Viet
*
* @author htdat
* @since 1.0
@@ -36,33 +36,33 @@ class WooViet_Admin_Page {
*/
public function save_settings() {
if ( wp_verify_nonce( $_REQUEST['wooviet_nonce'], 'wooviet_save_settings' ) ) {
update_option( 'woocommerce-for-vietnam', $_REQUEST['settings'] );
update_option( 'woo-viet', $_REQUEST['settings'] );
$this->message =
'<div class="updated notice"><p><strong>' .
__( 'Settings saved', 'woocommerce-for-vietnam' ) .
__( 'Settings saved', 'woo-viet' ) .
'</p></strong></div>';
} else {
$this->message =
'<div class="error notice"><p><strong>' .
__( 'Can not save settings! Please refresh this page.', 'woocommerce-for-vietnam' ) .
__( 'Can not save settings! Please refresh this page.', 'woo-viet' ) .
'</p></strong></div>';
}
}
/**
* Register the sub-menu under "WooCommerce"
* Link: http://my-site.com/wp-admin/admin.php?page=woocommerce-for-vietnam
* Link: http://my-site.com/wp-admin/admin.php?page=woo-viet
*/
public function register_submenu_page() {
add_submenu_page(
'woocommerce',
'WooCommerce for Vietnam Settings',
'WooCommerce for Vietnam',
'Woo Viet Settings',
'Woo Viet',
'manage_options',
'woocommerce-for-vietnam',
'woo-viet',
array( $this, 'admin_page_html' )
);
}
@@ -89,61 +89,61 @@ class WooViet_Admin_Page {
<table class="form-table">
<tbody>
<tr>
<th scope="row"><?php _e( 'Add provinces for Vietnam', 'woocommerce-for-vietnam' ) ?></th>
<th scope="row"><?php _e( 'Add provinces for Vietnam', 'woo-viet' ) ?></th>
<td>
<input name="settings[add_province][enabled]" type="hidden" value="no">
<input name="settings[add_province][enabled]" type="checkbox" id="add_province" value="yes"
<?php if ( 'yes' == $settings['add_province']['enabled'] )
echo 'checked="checked"' ?>>
<label for="add_province"><?php _e( 'Enabled', 'woocommerce-for-vietnam' ) ?></label>
<label for="add_province"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
</td>
</tr>
<tr>
<th scope="row"><?php _e( 'Change VND currency symbol', 'woocommerce-for-vietnam' ) ?></th>
<th scope="row"><?php _e( 'Change VND currency symbol', 'woo-viet' ) ?></th>
<td>
<input name="settings[change_currency_symbol][enabled]" type="hidden" value="no">
<input name="settings[change_currency_symbol][enabled]" type="checkbox"
id="change_currency_symbol" value="yes"
<?php if ( 'yes' == $settings['change_currency_symbol']['enabled'] )
echo 'checked="checked"' ?>>
<label for="change_currency_symbol"><?php _e( 'Enabled', 'woocommerce-for-vietnam' ) ?></label>
<label for="change_currency_symbol"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
<br/>
<br/>
<input type="text" name="settings[change_currency_symbol][text]"
value="<?php echo $settings['change_currency_symbol']['text'] ?>"
id="change_currency_symbol_text" class="small-text">
<label for="change_currency_symbol_text"><?php _e( 'Insert a text to change the default symbol <code>đ</code>', 'woocommerce-for-vietnam' ) ?></label>
<label for="change_currency_symbol_text"><?php _e( 'Insert a text to change the default symbol <code>đ</code>', 'woo-viet' ) ?></label>
</td>
</tr>
<tr>
<th scope="row"><?php _e( 'Convert <code>000</code> of prices to K (or anything)', 'woocommerce-for-vietnam' ) ?></th>
<th scope="row"><?php _e( 'Convert <code>000</code> of prices to K (or anything)', 'woo-viet' ) ?></th>
<td>
<input name="settings[convert_price][enabled]" type="hidden" value="no">
<input name="settings[convert_price][enabled]" type="checkbox" id="convert_price"
value="yes"
<?php if ( 'yes' == $settings['convert_price']['enabled'] )
echo 'checked="checked"' ?>>
<label for="convert_price"><?php _e( 'Enabled', 'woocommerce-for-vietnam' ) ?></label>
<label for="convert_price"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
<fieldset><br/>
<input type="text" name="settings[convert_price][text]"
value="<?php echo $settings['convert_price']['text'] ?>"
id="convert_price_text" class="small-text">
<label for="convert_price_text"><?php _e( 'Choose what you want to change. E.g:', 'woocommerce-for-vietnam' ) ?>
<label for="convert_price_text"><?php _e( 'Choose what you want to change. E.g:', 'woo-viet' ) ?>
<code>K</code>, <code>nghìn</code>, <code>ngàn</code></label>
</fieldset>
</td>
</tr>
<tr>
<th scope="row"><?php printf( __( 'Support VND for <a href="%s">the PayPal Standard gateway</a>', 'woocommerce-for-vietnam' ), 'https://docs.woocommerce.com/document/paypal-standard/' ) ?></th>
<th scope="row"><?php printf( __( 'Support VND for <a href="%s">the PayPal Standard gateway</a>', 'woo-viet' ), 'https://docs.woocommerce.com/document/paypal-standard/' ) ?></th>
<td>
<input name="settings[vnd_paypal_standard][enabled]" type="hidden" value="no">
<input name="settings[vnd_paypal_standard][enabled]" type="checkbox"
id="vnd_paypal_standard" value="yes"
<?php if ( 'yes' == $settings['vnd_paypal_standard']['enabled'] )
echo 'checked="checked"' ?>>
<label for="vnd_paypal_standard"><?php _e( 'Enabled', 'woocommerce-for-vietnam' ) ?></label>
<label for="vnd_paypal_standard"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
<fieldset><br/>
<select name="settings[vnd_paypal_standard][currency]"
@@ -188,14 +188,14 @@ class WooViet_Admin_Page {
}
?>
</select>
<label for="vnd_paypal_standard_currency"><?php _e( 'Select a PayPal supported currency (like USD, EUR, etc), which is used to convert VND prices', 'woocommerce-for-vietnam' ) ?></label>
<label for="vnd_paypal_standard_currency"><?php _e( 'Select a PayPal supported currency (like USD, EUR, etc), which is used to convert VND prices', 'woo-viet' ) ?></label>
<br/>
<br/>
<input name="settings[vnd_paypal_standard][rate]" type="number" step="1" min="100"
id="vnd_paypal_standard_rate" style="width: 70px;"
value="<?php echo $settings['vnd_paypal_standard']['rate'] ?>"
<label for="vnd_paypal_standard_rate"><?php _e( 'Insert the exchange rate of this currency to VND', 'woocommerce-for-vietnam' ) ?></label>
<label for="vnd_paypal_standard_rate"><?php _e( 'Insert the exchange rate of this currency to VND', 'woo-viet' ) ?></label>
</fieldset>
</td>