Commit 3cbe7c0c authored by Varun Sridharan's avatar Varun Sridharan

Added POT & MO Files

Added FR Languages
parent dd7a3bbb
This diff is collapsed.
This diff is collapsed.
<?php <?php
/** /**
* Plugin Name: WooCommerce Quick Donation * Plugin Name: WooCommerce Quick Donation
* Plugin URI: https://wordpress.org/plugins/woocommerce-plugin-boiler-plate/ * Plugin URI: http://wordpress.org/plugins/woocommerce-quick-donation/
* Description: Turns WooCommerce Into Online Donation * Description: Turns WooCommerce Into Online Donation
* Version: 1.3.5 BETA * Version: 1.3.5 BETA
* Author: Varun Sridharan * Author: Varun Sridharan
* Author URI: http://varunsridharan.in * Author URI: http://varunsridharan.in
* Text Domain: woocommerce-quick-donation * Text Domain: woocommerce-quick-donation
* Domain Path: /languages/
* License: GPL-2.0+ * License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* GitHub Plugin URI: https://github.com/technofreaky/woocomerce-quick-donation * GitHub Plugin URI: https://github.com/technofreaky/woocomerce-quick-donation
...@@ -190,7 +191,6 @@ class WooCommerce_Quick_Donation { ...@@ -190,7 +191,6 @@ class WooCommerce_Quick_Donation {
* Set Plugin Text Domain * Set Plugin Text Domain
*/ */
public function after_plugins_loaded(){ public function after_plugins_loaded(){
load_plugin_textdomain(WC_QD_TXT, false, WC_QD_LANG ); load_plugin_textdomain(WC_QD_TXT, false, WC_QD_LANG );
} }
...@@ -198,9 +198,9 @@ class WooCommerce_Quick_Donation { ...@@ -198,9 +198,9 @@ class WooCommerce_Quick_Donation {
* load translated mo file based on wp settings * load translated mo file based on wp settings
*/ */
public function load_plugin_mo_files($mofile, $domain) { public function load_plugin_mo_files($mofile, $domain) {
if (WC_QD_TXT === $domain) if (WC_QD_TXT === $domain){
return WC_QD_LANG.'/'.get_locale().'.mo'; return WC_QD_LANG.'/'.get_locale().'/'.get_locale().'.mo';
}
return $mofile; return $mofile;
} }
...@@ -284,7 +284,7 @@ if(WC_QD_Dependencies()){ ...@@ -284,7 +284,7 @@ if(WC_QD_Dependencies()){
$GLOBALS['woocommerce_quick_donation'] = WC_QD(); $GLOBALS['woocommerce_quick_donation'] = WC_QD();
} else { } else {
wc_qd_notice('WooCommerce Is Required. To Use This Plugin :)','error'); wc_qd_notice(__('WooCommerce Is Required. To Use This Plugin :)','woocommerce-quick-donation'),'error');
} }
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment