From b3eb79cc3f7d9e87a4987372fdfd503260e7dea1 Mon Sep 17 00:00:00 2001 From: dat Date: Mon, 2 Jan 2017 08:18:01 +0700 Subject: [PATCH] Rename to "Woo Viet" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Replace all “WooCommerce for Vietnam” to “Woo Viet” * Replace all “woocomerce-fo-vietnam” to “woo-viet” --- inc/class-wooviet-admin-page.php | 40 +++--- inc/class-wooviet-provinces.php | 126 +++++++++--------- inc/class-wooviet-vnd-paypal-standard.php | 2 +- ...ocommerce-for-vietnam.pot => woo-viet.pot} | 8 +- readme.txt | 18 +-- woocommerce-for-vietnam.php => woo-viet.php | 12 +- 6 files changed, 103 insertions(+), 103 deletions(-) rename languages/{woocommerce-for-vietnam.pot => woo-viet.pot} (97%) rename woocommerce-for-vietnam.php => woo-viet.php (91%) diff --git a/inc/class-wooviet-admin-page.php b/inc/class-wooviet-admin-page.php index 25c7b75..17bfeca 100644 --- a/inc/class-wooviet-admin-page.php +++ b/inc/class-wooviet-admin-page.php @@ -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 = '

' . - __( 'Settings saved', 'woocommerce-for-vietnam' ) . + __( 'Settings saved', 'woo-viet' ) . '

'; } else { $this->message = '

' . - __( 'Can not save settings! Please refresh this page.', 'woocommerce-for-vietnam' ) . + __( 'Can not save settings! Please refresh this page.', 'woo-viet' ) . '

'; } } /** * 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 { - + - + - + - + diff --git a/inc/class-wooviet-provinces.php b/inc/class-wooviet-provinces.php index 2ed40c0..5c92842 100644 --- a/inc/class-wooviet-provinces.php +++ b/inc/class-wooviet-provinces.php @@ -68,69 +68,69 @@ class WooViet_Provinces { * @source: https://vi.wikipedia.org/wiki/Tỉnh_thành_Việt_Nam and https://en.wikipedia.org/wiki/Provinces_of_Vietnam */ $states['VN'] = array( - 'AN-GIANG' => __( 'An Giang', 'woocommerce-for-vietnam' ), - 'BA-RIA-VUNG-TAU' => __( 'Ba Ria - Vung Tau', 'woocommerce-for-vietnam' ), - 'BAC-LIEU' => __( 'Bac Lieu', 'woocommerce-for-vietnam' ), - 'BAC-KAN' => __( 'Bac Kan', 'woocommerce-for-vietnam' ), - 'BAC-GIANG' => __( 'Bac Giang', 'woocommerce-for-vietnam' ), - 'BAC-NINH' => __( 'Bac Ninh', 'woocommerce-for-vietnam' ), - 'BEN-TRE' => __( 'Ben Tre', 'woocommerce-for-vietnam' ), - 'BINH-DUONG' => __( 'Binh Duong', 'woocommerce-for-vietnam' ), - 'BINH-DINH' => __( 'Binh Dinh', 'woocommerce-for-vietnam' ), - 'BINH-PHUOC' => __( 'Binh Phuoc', 'woocommerce-for-vietnam' ), - 'BINH-THUAN' => __( 'Binh Thuan', 'woocommerce-for-vietnam' ), - 'CA-MAU' => __( 'Ca Mau', 'woocommerce-for-vietnam' ), - 'CAO-BANG' => __( 'Cao Bang', 'woocommerce-for-vietnam' ), - 'CAN-THO' => __( 'Can Tho', 'woocommerce-for-vietnam' ), - 'DA-NANG' => __( 'Da Nang', 'woocommerce-for-vietnam' ), - 'DAK-LAK' => __( 'Dak Lak', 'woocommerce-for-vietnam' ), - 'DAK-NONG' => __( 'Dak Nong', 'woocommerce-for-vietnam' ), - 'DONG-NAI' => __( 'Dong Nai', 'woocommerce-for-vietnam' ), - 'DONG-THAP' => __( 'Dong Thap', 'woocommerce-for-vietnam' ), - 'DIEN-BIEN' => __( 'Dien Bien', 'woocommerce-for-vietnam' ), - 'GIA-LAI' => __( 'Gia Lai', 'woocommerce-for-vietnam' ), - 'HA-GIANG' => __( 'Ha Giang', 'woocommerce-for-vietnam' ), - 'HA-NAM' => __( 'Ha Nam', 'woocommerce-for-vietnam' ), - 'HA-NOI' => __( 'Ha Noi', 'woocommerce-for-vietnam' ), - 'HA-TINH' => __( 'Ha Tinh', 'woocommerce-for-vietnam' ), - 'HAI-DUONG' => __( 'Hai Duong', 'woocommerce-for-vietnam' ), - 'HAI-PHONG' => __( 'Hai Phong', 'woocommerce-for-vietnam' ), - 'HOA-BINH' => __( 'Hoa Binh', 'woocommerce-for-vietnam' ), - 'HAU-GIANG' => __( 'Hau Giang', 'woocommerce-for-vietnam' ), - 'HUNG-YEN' => __( 'Hung Yen', 'woocommerce-for-vietnam' ), - 'HO-CHI-MINH' => __( 'Ho Chi Minh', 'woocommerce-for-vietnam' ), - 'KHANH-HOA' => __( 'Khanh Hoa', 'woocommerce-for-vietnam' ), - 'KIEN-GIANG' => __( 'Kien Giang', 'woocommerce-for-vietnam' ), - 'KON-TUM' => __( 'Kon Tum', 'woocommerce-for-vietnam' ), - 'LAI-CHAU' => __( 'Lai Chau', 'woocommerce-for-vietnam' ), - 'LAO-CAI' => __( 'Lao Cai', 'woocommerce-for-vietnam' ), - 'LANG-SON' => __( 'Lang Son', 'woocommerce-for-vietnam' ), - 'LAM-DONG' => __( 'Lam Dong', 'woocommerce-for-vietnam' ), - 'LONG-AN' => __( 'Long An', 'woocommerce-for-vietnam' ), - 'NAM-DINH' => __( 'Nam Dinh', 'woocommerce-for-vietnam' ), - 'NGHE-AN' => __( 'Nghe An', 'woocommerce-for-vietnam' ), - 'NINH-BINH' => __( 'Ninh Binh', 'woocommerce-for-vietnam' ), - 'NINH-THUAN' => __( 'Ninh Thuan', 'woocommerce-for-vietnam' ), - 'PHU-THO' => __( 'Phu Tho', 'woocommerce-for-vietnam' ), - 'PHU-YEN' => __( 'Phu Yen', 'woocommerce-for-vietnam' ), - 'QUANG-BINH' => __( 'Quang Binh', 'woocommerce-for-vietnam' ), - 'QUANG-NAM' => __( 'Quang Nam', 'woocommerce-for-vietnam' ), - 'QUANG-NGAI' => __( 'Quang Ngai', 'woocommerce-for-vietnam' ), - 'QUANG-NINH' => __( 'Quang Ninh', 'woocommerce-for-vietnam' ), - 'QUANG-TRI' => __( 'Quang Tri', 'woocommerce-for-vietnam' ), - 'SOC-TRANG' => __( 'Soc Trang', 'woocommerce-for-vietnam' ), - 'SON-LA' => __( 'Son La', 'woocommerce-for-vietnam' ), - 'TAY-NINH' => __( 'Tay Ninh', 'woocommerce-for-vietnam' ), - 'THAI-BINH' => __( 'Thai Binh', 'woocommerce-for-vietnam' ), - 'THAI-NGUYEN' => __( 'Thai Nguyen', 'woocommerce-for-vietnam' ), - 'THANH-HOA' => __( 'Thanh Hoa', 'woocommerce-for-vietnam' ), - 'THUA-THIEN-HUE' => __( 'Thua Thien - Hue', 'woocommerce-for-vietnam' ), - 'TIEN-GIANG' => __( 'Tien Giang', 'woocommerce-for-vietnam' ), - 'TRA-VINH' => __( 'Tra Vinh', 'woocommerce-for-vietnam' ), - 'TUYEN-QUANG' => __( 'Tuyen Quang', 'woocommerce-for-vietnam' ), - 'VINH-LONG' => __( 'Vinh Long', 'woocommerce-for-vietnam' ), - 'VINH-PHUC' => __( 'Vinh Phuc', 'woocommerce-for-vietnam' ), - 'YEN-BAI' => __( 'Yen Bai', 'woocommerce-for-vietnam' ), + 'AN-GIANG' => __( 'An Giang', 'woo-viet' ), + 'BA-RIA-VUNG-TAU' => __( 'Ba Ria - Vung Tau', 'woo-viet' ), + 'BAC-LIEU' => __( 'Bac Lieu', 'woo-viet' ), + 'BAC-KAN' => __( 'Bac Kan', 'woo-viet' ), + 'BAC-GIANG' => __( 'Bac Giang', 'woo-viet' ), + 'BAC-NINH' => __( 'Bac Ninh', 'woo-viet' ), + 'BEN-TRE' => __( 'Ben Tre', 'woo-viet' ), + 'BINH-DUONG' => __( 'Binh Duong', 'woo-viet' ), + 'BINH-DINH' => __( 'Binh Dinh', 'woo-viet' ), + 'BINH-PHUOC' => __( 'Binh Phuoc', 'woo-viet' ), + 'BINH-THUAN' => __( 'Binh Thuan', 'woo-viet' ), + 'CA-MAU' => __( 'Ca Mau', 'woo-viet' ), + 'CAO-BANG' => __( 'Cao Bang', 'woo-viet' ), + 'CAN-THO' => __( 'Can Tho', 'woo-viet' ), + 'DA-NANG' => __( 'Da Nang', 'woo-viet' ), + 'DAK-LAK' => __( 'Dak Lak', 'woo-viet' ), + 'DAK-NONG' => __( 'Dak Nong', 'woo-viet' ), + 'DONG-NAI' => __( 'Dong Nai', 'woo-viet' ), + 'DONG-THAP' => __( 'Dong Thap', 'woo-viet' ), + 'DIEN-BIEN' => __( 'Dien Bien', 'woo-viet' ), + 'GIA-LAI' => __( 'Gia Lai', 'woo-viet' ), + 'HA-GIANG' => __( 'Ha Giang', 'woo-viet' ), + 'HA-NAM' => __( 'Ha Nam', 'woo-viet' ), + 'HA-NOI' => __( 'Ha Noi', 'woo-viet' ), + 'HA-TINH' => __( 'Ha Tinh', 'woo-viet' ), + 'HAI-DUONG' => __( 'Hai Duong', 'woo-viet' ), + 'HAI-PHONG' => __( 'Hai Phong', 'woo-viet' ), + 'HOA-BINH' => __( 'Hoa Binh', 'woo-viet' ), + 'HAU-GIANG' => __( 'Hau Giang', 'woo-viet' ), + 'HUNG-YEN' => __( 'Hung Yen', 'woo-viet' ), + 'HO-CHI-MINH' => __( 'Ho Chi Minh', 'woo-viet' ), + 'KHANH-HOA' => __( 'Khanh Hoa', 'woo-viet' ), + 'KIEN-GIANG' => __( 'Kien Giang', 'woo-viet' ), + 'KON-TUM' => __( 'Kon Tum', 'woo-viet' ), + 'LAI-CHAU' => __( 'Lai Chau', 'woo-viet' ), + 'LAO-CAI' => __( 'Lao Cai', 'woo-viet' ), + 'LANG-SON' => __( 'Lang Son', 'woo-viet' ), + 'LAM-DONG' => __( 'Lam Dong', 'woo-viet' ), + 'LONG-AN' => __( 'Long An', 'woo-viet' ), + 'NAM-DINH' => __( 'Nam Dinh', 'woo-viet' ), + 'NGHE-AN' => __( 'Nghe An', 'woo-viet' ), + 'NINH-BINH' => __( 'Ninh Binh', 'woo-viet' ), + 'NINH-THUAN' => __( 'Ninh Thuan', 'woo-viet' ), + 'PHU-THO' => __( 'Phu Tho', 'woo-viet' ), + 'PHU-YEN' => __( 'Phu Yen', 'woo-viet' ), + 'QUANG-BINH' => __( 'Quang Binh', 'woo-viet' ), + 'QUANG-NAM' => __( 'Quang Nam', 'woo-viet' ), + 'QUANG-NGAI' => __( 'Quang Ngai', 'woo-viet' ), + 'QUANG-NINH' => __( 'Quang Ninh', 'woo-viet' ), + 'QUANG-TRI' => __( 'Quang Tri', 'woo-viet' ), + 'SOC-TRANG' => __( 'Soc Trang', 'woo-viet' ), + 'SON-LA' => __( 'Son La', 'woo-viet' ), + 'TAY-NINH' => __( 'Tay Ninh', 'woo-viet' ), + 'THAI-BINH' => __( 'Thai Binh', 'woo-viet' ), + 'THAI-NGUYEN' => __( 'Thai Nguyen', 'woo-viet' ), + 'THANH-HOA' => __( 'Thanh Hoa', 'woo-viet' ), + 'THUA-THIEN-HUE' => __( 'Thua Thien - Hue', 'woo-viet' ), + 'TIEN-GIANG' => __( 'Tien Giang', 'woo-viet' ), + 'TRA-VINH' => __( 'Tra Vinh', 'woo-viet' ), + 'TUYEN-QUANG' => __( 'Tuyen Quang', 'woo-viet' ), + 'VINH-LONG' => __( 'Vinh Long', 'woo-viet' ), + 'VINH-PHUC' => __( 'Vinh Phuc', 'woo-viet' ), + 'YEN-BAI' => __( 'Yen Bai', 'woo-viet' ), ); return $states; diff --git a/inc/class-wooviet-vnd-paypal-standard.php b/inc/class-wooviet-vnd-paypal-standard.php index cd8e7d0..a515164 100644 --- a/inc/class-wooviet-vnd-paypal-standard.php +++ b/inc/class-wooviet-vnd-paypal-standard.php @@ -97,7 +97,7 @@ class WooViet_VND_PayPal_Standard { $value['description'] .= '
'; $value['description'] .= - sprintf( __( 'The prices will be converted to %1$s in the PayPal pages with the exchange rate %2$s.', 'woocommerce-for-vietnam' ), + sprintf( __( 'The prices will be converted to %1$s in the PayPal pages with the exchange rate %2$s.', 'woo-viet' ), " $this->paypal_currency", " $this->paypal_currency / VND = $this->exchange_rate_to_vnd" ); diff --git a/languages/woocommerce-for-vietnam.pot b/languages/woo-viet.pot similarity index 97% rename from languages/woocommerce-for-vietnam.pot rename to languages/woo-viet.pot index 6ba5fa3..531b8de 100644 --- a/languages/woocommerce-for-vietnam.pot +++ b/languages/woo-viet.pot @@ -14,9 +14,9 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Loco https://localise.biz/" -#: woocommerce-for-vietnam.php:87 +#: woo-viet.php:87 msgid "" -"WooCommerce for Vietnam is not running because WooCommerce is not active. " +"Woo Viet is not running because WooCommerce is not active. " "Please activate both plugins" msgstr "" @@ -328,7 +328,7 @@ msgid "" msgstr "" #. Name of the plugin -msgid "WooCommerce for Vietnam" +msgid "Woo Viet" msgstr "" #. Description of the plugin @@ -337,7 +337,7 @@ msgid "" msgstr "" #. URI of the plugin -msgid "https://github.com/htdat/woocommerce-for-vietnam" +msgid "https://github.com/htdat/woo-viet" msgstr "" #. Author of the plugin diff --git a/readme.txt b/readme.txt index 679078d..2778d30 100644 --- a/readme.txt +++ b/readme.txt @@ -11,9 +11,9 @@ Add features to WooCommerce stores having anything related to Vietnam: currency, == Description == -`WooCommerce for Vietnam` brings the features that help to run WooCommerce stores and customize them for Vietnam much easier. +`Woo Viet` brings the features that help to run WooCommerce stores and customize them for Vietnam much easier. -`WooCommerce for Vietnam` đem đến các chức năng để site WooCommerce có thể dễ dàng tuỳ biến cho thị trường Việt Nam. +`Woo Viet` đem đến các chức năng để site WooCommerce có thể dễ dàng tuỳ biến cho thị trường Việt Nam. **Chức năng - Features** @@ -53,7 +53,7 @@ In the future, this plugin will be added more and more features for the Vietnam **Where can I contribute my code or idea?** -* You can report bugs or contribute code on [this GitHub repo](https://github.com/htdat/woocommerce-for-vietnam). +* You can report bugs or contribute code on [this GitHub repo](https://github.com/htdat/woo-viet). * Please also do let us know if the "bug" is just a grammar/spelling error in both English and Vietnamese. We try to make our products as perfect as possible. @@ -61,29 +61,29 @@ In the future, this plugin will be added more and more features for the Vietnam Follow these steps to install and use the plugin: -1. Upload the plugin files to the `/wp-content/plugins/woocommerce-for-vietnam` directory, or install the plugin through the WordPress plugins screen directly. +1. Upload the plugin files to the `/wp-content/plugins/woo-viet` directory, or install the plugin through the WordPress plugins screen directly. 1. Activate the plugin through the `Plugins` screen in WordPress. -1. Go to the `WooCommerce -> WooCommerce for Vietnam` screen and configure the plugin. +1. Go to the `WooCommerce -> Woo Viet` screen and configure the plugin. == Installation == Follow these steps to install and use the plugin: -1. Upload the plugin files to the `/wp-content/plugins/woocommerce-for-vietnam` directory, or install the plugin through the WordPress plugins screen directly. +1. Upload the plugin files to the `/wp-content/plugins/woo-viet` directory, or install the plugin through the WordPress plugins screen directly. 1. Activate the plugin through the 'Plugins' screen in WordPress. -1. Go to the `WooCommerce -> WooCommerce for Vietnam` screen and configure the plugin. +1. Go to the `WooCommerce -> Woo Viet` screen and configure the plugin. == Frequently Asked Questions == = Where can I contribute my code or idea? = -* You can report bugs or contribute code on [this GitHub repo](https://github.com/htdat/woocommerce-for-vietnam). +* You can report bugs or contribute code on [this GitHub repo](https://github.com/htdat/woo-viet). * Please also do let us know if the "bug" is just a grammar/spelling error in both English and Vietnamese. We try to make our products as perfect as possible. == Screenshots == -1. The settings page under WooCommerce -> WooCommerce for Vietnam. +1. The settings page under WooCommerce -> Woo Viet. 2. Prices are changed to "K", and the symbol is now "VND". 3. List provinces when selecting Vietnam. 4. Let clients know about the currency conversion before switching to the PayPal pages. diff --git a/woocommerce-for-vietnam.php b/woo-viet.php similarity index 91% rename from woocommerce-for-vietnam.php rename to woo-viet.php index 8b471fd..994c06d 100644 --- a/woocommerce-for-vietnam.php +++ b/woo-viet.php @@ -1,11 +1,11 @@

%2$s

', $class, $message ); } @@ -165,7 +165,7 @@ class WooViet { * @return array */ static function get_settings() { - return get_option( 'woocommerce-for-vietnam', self::$default_settings ); + return get_option( 'woo-viet', self::$default_settings ); } } \ No newline at end of file
> - +
> - +

- +
000 of prices to K (or anything)', 'woocommerce-for-vietnam' ) ?>000 of prices to K (or anything)', 'woo-viet' ) ?> > - +

-
the PayPal Standard gateway', 'woocommerce-for-vietnam' ), 'https://docs.woocommerce.com/document/paypal-standard/' ) ?>the PayPal Standard gateway', 'woo-viet' ), 'https://docs.woocommerce.com/document/paypal-standard/' ) ?> > - +

- +

+