Commit 10bb72f2 authored by Varun Sridharan's avatar Varun Sridharan

Bug Fix & Tweaks

* Fixed #49
* Fixed Email Template Call Issue (admin-new-donation)
* Fixed Few Donation Processing Issue
* Recreated admin new donation email
* Rarranged Class INI
* Added Versions For Email Template
parent f4b73b3e
......@@ -61,8 +61,8 @@ class WooCommerce_Quick_Donation_Emails_Functions {
}
}
public function check_order($order_id){
if(!WC_QD()->db()->_is_donation($order_id)){return;}
public function check_order($order_id){
if(! WC_QD()->db()->_is_donation($order_id)){return;}
$this->remove_emails = true;
}
......
......@@ -45,7 +45,7 @@ class WooCommerce_Quick_Donation_Functions {
'emails/email-styles.php' => 'emails/donation-email-styles.php',
'emails/donation-customer-invoice.php' => 'emails/donation-customer-invoice.php',
'emails/donation-admin-new.php' => 'emails/donation-admin-new.php',
'emails/email-addresses.php' => 'emails/donation-email-addresses.php',
'emails/donation-email-footer.php' => 'emails/donation-email-footer.php',
'emails/donation-email-header.php' => 'emails/donation-email-header.php',
......
......@@ -11,7 +11,9 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
function __construct(){
parent::__construct();
add_action( 'wp_loaded',array($this,'on_wp_loaded'),20);
add_action( 'woocommerce_checkout_update_order_meta',array($this,'save_order_id_db'),1);
add_action( 'wp_loaded',array($this,'on_wp_loaded'),20);
add_filter( 'woocommerce_get_price', array($this,'get_price'),10,2);
}
......@@ -19,9 +21,6 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
if($this->check_donation_exists_cart()){
$this->is_donation_exists = true;
add_action('woocommerce_add_order_item_meta',array($this,'add_order_meta'),99,3);
add_action( 'woocommerce_checkout_update_order_meta',array($this,'update_order_meta'));
add_action( 'woocommerce_checkout_update_order_meta', array($this,'save_order_id_db'));
//add_action( 'woocommerce_email',array($this,'remove_email_actions'));
add_filter( 'wc_quick_donation_cart_project_name', array($this,'change_donation_name'));
}
$this->process_donation();
......@@ -106,6 +105,7 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
$woocommerce->session->donation_price = $donate_price;
$woocommerce->session->projects = $projects;
$woocommerce->session->is_donation_product = true;
$donation_added = $woocommerce->cart->add_to_cart(self::$donation_id);
......@@ -199,13 +199,7 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
}
}
public function update_order_meta($order_id){
global $woocommerce;
update_post_meta( $order_id,"_is_donation",true);
update_post_meta( $order_id,"_project_details",$woocommerce->session->projects);
}
public function add_order_meta($item_id, $values, $cart_item_key){
global $woocommerce;
wc_add_order_item_meta( $item_id, "_project_details",$woocommerce->session->projects);
......@@ -215,9 +209,13 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
public function save_order_id_db($order_id){
global $woocommerce;
$project_id = intval($woocommerce->session->projects);
$user_id = get_current_user_id();
WC_QD()->db()->add_db_option($order_id,$project_id,$user_id);
if($this->check_donation_exists_cart()){
$project_id = intval($woocommerce->session->projects);
$user_id = get_current_user_id();
update_post_meta( $order_id,"_is_donation",true);
update_post_meta( $order_id,"_project_details",$woocommerce->session->projects);
WC_QD()->db()->add_db_option($order_id,$project_id,$user_id);
}
}
......@@ -235,7 +233,6 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
*/
public function get_price($price, $product){
global $woocommerce;
if($product->id == self::$donation_id){
return isset($woocommerce->session->donation_price) ? floatval($woocommerce->session->donation_price) : 0;
}
......@@ -245,4 +242,4 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
}
?>
\ No newline at end of file
?>
\ No newline at end of file
......@@ -7,118 +7,79 @@ if ( ! defined( 'ABSPATH' ) ) {
if ( ! class_exists( 'WC_QD_Donation_New_Email' ) ) :
/**
* Customer Invoice
* New Order Email
*
* An email sent to the customer via admin.
* An email sent to the admin when a new order is received/paid for.
*
* @class WC_QD_Donation_New_Email
* @version 2.3.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email
*/
class WC_QD_Donation_New_Email extends WC_Email {
public $find;
public $replace;
/**
* Constructor
*/
function __construct() {
$this->id = WC_QD_DB.'donation_new_email';
$this->title = __( 'New Donation', 'woocommerce' );
$this->description = __( 'Customer invoice emails can be sent to customers containing their order information and payment links.', 'woocommerce' );
$this->id = WC_QD_DB.'donation_new_email';
$this->title = __( 'New Donation ', WC_QD_TXT );
$this->description = __( 'New order emails are sent to the recipient list when an order is received. you can use <code> {project_name} </code> to get project name any where in the below fields', WC_QD_TXT );
$this->template_base = WC_QD_TEMPLATE;
$this->template_html = 'emails/donation-customer-invoice.php';
$this->template_plain = 'emails/plain/donation-customer-invoice.php';
$this->heading = __( 'New customer donation for {project_name}', WC_QD_TXT );
$this->subject = __( '[{site_title}] New customer donation ({order_number}) - {order_date}', WC_QD_TXT );
$this->subject = __( 'Reg : Your Recent Donation @ {site_title}', WC_QD_TXT);
$this->heading = __( 'Thank you. Your Donation has been received for {project_name}', 'woocommerce');
$this->template_base = WC_QD_TEMPLATE;
$this->template_html = 'emails/donation-admin-new.php';
$this->template_plain = 'emails/plain/admin-new-order.php';
$this->subject_paid = __( 'Your {site_title} order from {order_date}', 'woocommerce');
$this->heading_paid = __( 'Order {order_number} details', 'woocommerce');
add_filter('woocommerce_template_directory',array($this,'change_dir'),2,1);
// Call parent constructor
parent::__construct();
$this->heading_paid = $this->get_option( 'heading_paid', $this->heading_paid );
$this->subject_paid = $this->get_option( 'subject_paid', $this->subject_paid );
add_filter('woocommerce_template_directory',array($this,'change_dir'),2,1);
// Other settings
$this->recipient = $this->get_option( 'recipient' );
if ( ! $this->recipient )
$this->recipient = get_option( 'admin_email' );
}
public function change_dir($dir){
public function change_dir($dir){
$dir = $dir.'/donation';
return $dir;
}
/**
* Trigger.
*/
function trigger( $order ) {
if ( ! is_object( $order ) ) {
$order = wc_get_order( absint( $order ) );
}
function trigger( $order_id ) {
if ( $order ) {
$this->object = $order;
$this->recipient = $this->object->billing_email;
if ( $order_id ) {
$this->object = wc_get_order( $order_id );
$this->find['order-date'] = '{order_date}';
$this->find['order-number'] = '{order_number}';
$this->find['donation-project-name'] = '{project_name}';
$order_id = $this->object->get_order_number();
$this->find['donation-project-name'] = '{project_name}';
$order_id = $this->object->get_order_number();
$project_id = WC_QD()->db()->get_project_id($order_id);
$project_name = get_the_title($project_id);
$this->replace['order-date'] = date_i18n( wc_date_format(), strtotime( $this->object->order_date ) );
$this->replace['order-number'] = $this->object->get_order_number();
$this->replace['donation-project-name'] = $project_name;
$this->replace['donation-project-name'] = $project_name;
}
if ( ! $this->get_recipient() ) {
if ( ! $this->is_enabled() || ! $this->get_recipient() ) {
return;
}
$this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
}
/**
* get_subject function.
*
* @access public
* @return string
*/
function get_subject() {
if ( $this->object->has_status( array( 'processing', 'completed' ) ) ) {
return $this->format_string( $this->subject_paid );
} else {
return $this->format_string( $this->subject );
}
}
/**
* get_heading function.
*
* @access public
* @return string
*/
function get_heading() {
if ( $this->object->has_status( array( 'completed', 'processing' ) ) ) {
return $this->format_string( $this->heading_paid );
} else {
return $this->format_string( $this->heading );
}
}
/**
* get_content_html function.
*
......@@ -130,9 +91,9 @@ class WC_QD_Donation_New_Email extends WC_Email {
wc_get_template( $this->template_html, array(
'order' => $this->object,
'email_heading' => $this->get_heading(),
'sent_to_admin' => false,
'sent_to_admin' => true,
'plain_text' => false
) );
) );
return ob_get_clean();
}
......@@ -147,12 +108,10 @@ class WC_QD_Donation_New_Email extends WC_Email {
wc_get_template( $this->template_plain, array(
'order' => $this->object,
'email_heading' => $this->get_heading(),
'sent_to_admin' => false,
'sent_to_admin' => true,
'plain_text' => true
) );
return ob_get_clean();
}
/**
......@@ -160,46 +119,43 @@ class WC_QD_Donation_New_Email extends WC_Email {
*/
function init_form_fields() {
$this->form_fields = array(
'subject' => array(
'title' => __( 'Email Subject', 'woocommerce' ),
'type' => 'text',
'description' => sprintf( __( 'Defaults to <code>%s</code>', 'woocommerce' ), $this->subject ),
'placeholder' => '',
'default' => ''
'enabled' => array(
'title' => __( 'Enable/Disable', WC_QD_TXT ),
'type' => 'checkbox',
'label' => __( 'Enable this email notification', WC_QD_TXT ),
'default' => 'yes'
),
'heading' => array(
'title' => __( 'Email Heading', 'woocommerce' ),
'recipient' => array(
'title' => __( 'Recipient(s)', WC_QD_TXT ),
'type' => 'text',
'description' => sprintf( __( 'Defaults to <code>%s</code>', 'woocommerce' ), $this->heading ),
'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to <code>%s</code>.', WC_QD_TXT ), esc_attr( get_option('admin_email') ) ),
'placeholder' => '',
'default' => ''
),
'subject_paid' => array(
'title' => __( 'Email Subject (paid)', 'woocommerce' ),
'subject' => array(
'title' => __( 'Subject', WC_QD_TXT ),
'type' => 'text',
'description' => sprintf( __( 'Defaults to <code>%s</code>', 'woocommerce' ), $this->subject_paid ),
'description' => sprintf( __( 'This controls the email subject line. Leave blank to use the default subject: <code>%s</code>.', WC_QD_TXT ), $this->subject ),
'placeholder' => '',
'default' => ''
),
'heading_paid' => array(
'title' => __( 'Email Heading (paid)', 'woocommerce' ),
'heading' => array(
'title' => __( 'Email Heading', WC_QD_TXT ),
'type' => 'text',
'description' => sprintf( __( 'Defaults to <code>%s</code>', 'woocommerce' ), $this->heading_paid ),
'description' => sprintf( __( 'This controls the main heading contained within the email notification. Leave blank to use the default heading: <code>%s</code>.', WC_QD_TXT ), $this->heading ),
'placeholder' => '',
'default' => ''
),
'email_type' => array(
'title' => __( 'Email Type', 'woocommerce' ),
'title' => __( 'Email type', WC_QD_TXT ),
'type' => 'select',
'description' => __( 'Choose which format of email to send.', 'woocommerce' ),
'description' => __( 'Choose which format of email to send.', WC_QD_TXT ),
'default' => 'html',
'class' => 'email_type wc-enhanced-select',
'options' => $this->get_email_type_options()
)
);
}
}
endif;
......
No preview for this file type
msgid ""
msgstr ""
"Project-Id-Version: WC Quick Donation\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-quick-"
"donation\n"
"POT-Creation-Date: 2015-10-29 13:56:30+00:00\n"
"PO-Revision-Date: 2015-11-05 15:56+0100\n"
"POT-Creation-Date: 2015-10-28 18:04+0100\n"
"PO-Revision-Date: 2015-10-28 18:47+0100\n"
"Last-Translator: Pierre Blarre <pierre@negative-network.com>\n"
"Language-Team: Negative Network <contact@negative-network.com>\n"
"Language: fr_FR\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
......@@ -18,19 +16,9 @@ msgstr ""
"X-Poedit-KeywordsList: _e;__\n"
"X-Poedit-SearchPath-0: .\n"
#: includes/admin/class-admin-functions.php:59
msgid ""
"<strong>Your theme (%s) contains outdated copies of some WooCommerce Quick "
"Donation template files.</strong> These files may need updating to ensure "
"they are compatible with the current version of WooCommerce Quick Donation. "
"You can see which files are affected from the %ssystem status page%s. If in "
"doubt, check with the author of the theme."
msgstr ""
"<strong>Votre thème (%s) contient d'anciennes copies des templates de "
"WooCommerce Quick Donation. </strong> Ces fichiers nécessitent peut-être "
"d'être mis à jour pour assurer la compatibilité avec la version actuelle de "
"WooCommerce Quick Donation. Vous pouvez consulter les fichiers concernés sur "
"%ssystem status page%s. Dans le doute, consulter l'auteur de votre thème."
#: includes/admin/class-admin-functions.php:64
msgid "Remove "
msgstr "Retirer"
#: includes/admin/class-admin-init.php:49
msgid "Donation Orders"
......@@ -38,7 +26,7 @@ msgstr "Commandes Donations"
#: includes/admin/class-admin-init.php:50
msgid "Donation's"
msgstr "Donations"
msgstr "de la donation"
#: includes/admin/class-admin-init.php:56
#: includes/admin/class-admin-init.php:57
......@@ -80,22 +68,16 @@ msgstr "Donateur"
#: includes/admin/class-admin-order-page.php:44
#: template/cart/donation-cart.php:27 template/myaccount/my-donations.php:33
#: template/myaccount/my-donations.php:54
#: template/order/donation-order-details.php:20
msgid "Project"
msgstr "Projet"
#: includes/admin/class-admin-order-page.php:68
msgctxt "Order number by X"
msgid "%s "
msgstr "%s"
#: includes/admin/class-admin-order-page.php:90
#: includes/admin/metabox/class-donation-info-metabox.php:231
msgid "Guest"
msgstr "Invité"
#: includes/admin/class-admin-order-page.php:104
#, php-format
msgid "%s Data"
msgstr "%s des données"
......@@ -219,10 +201,12 @@ msgid "Order"
msgstr "Commande"
#: includes/admin/metabox/class-donation-info-metabox.php:169
#, php-format
msgid "%s %s details"
msgstr "%s %s les détails"
#: includes/admin/metabox/class-donation-info-metabox.php:173
#, php-format
msgid "Payment via %s"
msgstr "Paiement via %s"
......@@ -231,26 +215,16 @@ msgid "Customer IP"
msgstr "IP du client"
#: includes/admin/metabox/class-donation-info-metabox.php:192
#: includes/admin/metabox/class-donation-info-metabox.php:320
#: template/order/donation-order-details.php:16
msgid "Donation Details"
msgstr "Détails du don"
msgid "General Details"
msgstr "Détails généraux"
#: includes/admin/metabox/class-donation-info-metabox.php:194
msgid "Donation date:"
msgstr "Date de la donation:"
#: includes/admin/metabox/class-donation-info-metabox.php:196
msgid "h"
msgstr "h"
#: includes/admin/metabox/class-donation-info-metabox.php:196
msgid "m"
msgstr "m"
msgid "Order date:"
msgstr "Date de commande:"
#: includes/admin/metabox/class-donation-info-metabox.php:199
msgid "Donation status:"
msgstr "Statut de la donation"
msgid "Order status:"
msgstr "Statut de la commande:"
#: includes/admin/metabox/class-donation-info-metabox.php:210
msgid "Customer:"
......@@ -266,7 +240,7 @@ msgid "Donor Details"
msgstr "Coordonnées du donateur"
#: includes/admin/metabox/class-donation-info-metabox.php:238
#: includes/admin/wp-donation-listing-table.php:305
#: includes/admin/wp-donation-listing-table.php:304
#: includes/admin/wp-donors-listing-table.php:349
msgid "Edit"
msgstr "Modifier"
......@@ -286,7 +260,7 @@ msgid "No billing address set."
msgstr "Aucune adresse de facturation."
#: includes/admin/metabox/class-donation-info-metabox.php:286
#: template/checkout/donation-thankyou.php:49
#: template/checkout/donation-thankyou.php:50
msgid "Payment Method:"
msgstr "Mode de paiement:"
......@@ -304,6 +278,11 @@ msgstr "Autre"
msgid "Transaction ID"
msgstr "ID de transaction"
#: includes/admin/metabox/class-donation-info-metabox.php:320
#: template/order/donation-order-details.php:16
msgid "Donation Details"
msgstr "Détails du don"
#: includes/admin/metabox/class-donation-info-metabox.php:328
#: includes/admin/metabox/html/html-donation-info.php:63
#: includes/admin/metabox/html/html-donation-info.php:78
......@@ -315,6 +294,7 @@ msgid "Project Name"
msgstr "Nom du projet"
#: includes/admin/metabox/html/html-donation-info.php:35
#: template/donation-form.php:13
msgid "Donation Amount"
msgstr "Montant du don"
......@@ -322,10 +302,6 @@ msgstr "Montant du don"
msgid "No shipping address set."
msgstr "Aucune adresse de livraison."
#: includes/admin/metabox/html/html-donation-info.php:79
msgid "Customer's notes about the order"
msgstr "Notes du client sur la commande"
#: includes/admin/metabox_framework/inc/common.php:53
msgid "Documentation"
msgstr "Documentation"
......@@ -365,23 +341,6 @@ msgstr "Non"
msgid "Select Files"
msgstr "Sélectionnez les fichiers"
#: includes/admin/metabox_framework/inc/fields/file-advanced.php:66
msgctxt "file upload"
msgid "Select or Upload Files"
msgstr "Sélectionnez ou téléchargez des fichiers"
#: includes/admin/metabox_framework/inc/fields/file-advanced.php:103
#: includes/admin/metabox_framework/inc/fields/file.php:168
msgctxt "file upload"
msgid "Delete"
msgstr "Effacer"
#: includes/admin/metabox_framework/inc/fields/file-advanced.php:104
#: includes/admin/metabox_framework/inc/fields/file.php:169
msgctxt "file upload"
msgid "Edit"
msgstr "Modifier"
#: includes/admin/metabox_framework/inc/fields/file-input.php:17
msgid "Select File"
msgstr "Choisir le fichier"
......@@ -397,10 +356,12 @@ msgid "Remove"
msgstr "Retirer"
#: includes/admin/metabox_framework/inc/fields/file.php:19
#, php-format
msgid "You may only upload maximum %d file"
msgstr "Vous ne pouvez pas télécharger plus de %d fichier"
#: includes/admin/metabox_framework/inc/fields/file.php:20
#, php-format
msgid "You may only upload maximum %d files"
msgstr "Vous ne pouvez pas télécharger plus de %d fichiers"
......@@ -408,56 +369,10 @@ msgstr "Vous ne pouvez pas télécharger plus de %d fichiers"
msgid "Error: Cannot delete file"
msgstr "Erreur: Impossible de supprimer le fichier"
#: includes/admin/metabox_framework/inc/fields/file.php:111
msgctxt "file upload"
msgid "Upload Files"
msgstr "Télecharger des fichiers"
#: includes/admin/metabox_framework/inc/fields/file.php:112
msgctxt "file upload"
msgid "+ Add new file"
msgstr "+ Ajouter un nouveau fichier"
#: includes/admin/metabox_framework/inc/fields/image-advanced.php:23
msgid "Select Images"
msgstr "Sélectionner les images"
#: includes/admin/metabox_framework/inc/fields/image-advanced.php:71
msgctxt "image upload"
msgid "Select or Upload Images"
msgstr "Sélectionner ou télécharger les images"
#: includes/admin/metabox_framework/inc/fields/image-advanced.php:108
#: includes/admin/metabox_framework/inc/fields/image.php:136
msgctxt "image upload"
msgid "Delete"
msgstr "Effacer"
#: includes/admin/metabox_framework/inc/fields/image-advanced.php:109
#: includes/admin/metabox_framework/inc/fields/image.php:137
msgctxt "image upload"
msgid "Edit"
msgstr "Modifier"
#: includes/admin/metabox_framework/inc/fields/image.php:70
#: includes/admin/metabox_framework/inc/fields/thickbox-image.php:34
msgctxt "image upload"
msgid "Upload Images"
msgstr "Télécharger les images"
#: includes/admin/metabox_framework/inc/fields/image.php:71
msgctxt "image upload"
msgid "+ Add new image"
msgstr "+ Ajouter une nouvelle image"
#: includes/admin/metabox_framework/inc/fields/key-value.php:19
msgid "Key"
msgstr "Clé"
#: includes/admin/metabox_framework/inc/fields/key-value.php:20
msgid "Value"
msgstr "Valeur"
#: includes/admin/metabox_framework/inc/fields/map.php:46
msgid "Find Address"
msgstr "Trouver une adresse"
......@@ -470,32 +385,13 @@ msgstr "Code embed HTML non disponible."
msgid "Preview"
msgstr "Aperçu"
#: includes/admin/metabox_framework/inc/fields/plupload-image.php:105
msgctxt "image upload"
msgid "Drop images here"
msgstr "Faîtes glisser des images ici"
#: includes/admin/metabox_framework/inc/fields/plupload-image.php:106
msgctxt "image upload"
msgid "or"
msgstr "ou"
#: includes/admin/metabox_framework/inc/fields/plupload-image.php:107
msgctxt "image upload"
msgid "Select Files"
msgstr "Sélectionnez les fichiers"
#: includes/admin/metabox_framework/inc/fields/plupload-image.php:182
msgctxt "image upload"
msgid "Allowed Image Files"
msgstr "Fichiers images acceptés"
#: includes/admin/metabox_framework/inc/fields/post.php:67
msgid "Select a post"
msgstr "Sélectionnez un post"
#: includes/admin/metabox_framework/inc/fields/post.php:71
#: includes/admin/metabox_framework/inc/fields/taxonomy.php:40
#, php-format
msgid "Select a %s"
msgstr "Sélectionnez un(e) %s"
......@@ -539,6 +435,22 @@ msgstr ""
"Sélectionnez la passerelle de paiement pour les utilisateurs pour payer "
"leurs dons"
#: includes/admin/settings/fields.php:31
msgid ""
"<div class=\"decs\"> <span> Add <code>{donation_amount}</code> To Get Ented "
"Amount By User. </span> \n"
" <span> Add <code>{min_amount}</code> To Get Minimum Required "
"Amount From Selected Project </span> \n"
" <span> Add <code>{max_amount}</code> To Get Minimum Required "
"Amount From Selected Project </span> </div>"
msgstr ""
"<div class=\"decs\"> <span> Add <code>{donation_amount}</code> To Get Ented "
"Amount By User. </span> \n"
" <span> Add <code>{min_amount}</code> To Get Minimum Required "
"Amount From Selected Project </span> \n"
" <span> Add <code>{max_amount}</code> To Get Minimum Required "
"Amount From Selected Project </span> </div>"
#: includes/admin/settings/fields.php:41
#: includes/admin/settings/settings-message.php:18
msgid "Empty Donation Amount"
......@@ -611,131 +523,108 @@ msgstr "Erreur Donation : "
msgid "Error: Please Select Atlest 1 Payment Gateway."
msgstr "Erreur: Veuillez sélectionner au moins 1 passerelle de paiement."
#: includes/admin/wp-donation-listing-table.php:237
msgctxt "posts"
msgid "Mine <span class=\"count\">(%s)</span>"
msgid_plural "Mine <span class=\"count\">(%s)</span>"
msgstr[0] "%1$s <span class=\"count\">(%2$s)</span>"
msgstr[1] "Les miens <span class=\"count\">(%s)</span>"
#: includes/admin/wp-donation-listing-table.php:253
msgctxt "posts"
msgid "All <span class=\"count\">(%s)</span>"
msgid_plural "All <span class=\"count\">(%s)</span>"
msgstr[0] "%1$s <span class=\"count\">(%2$s)</span>"
msgstr[1] "Tous <span class=\"count\">(%s)</span>"
#: includes/admin/wp-donation-listing-table.php:284
msgctxt "posts"
msgid "Sticky <span class=\"count\">(%s)</span>"
msgid_plural "Sticky <span class=\"count\">(%s)</span>"
msgstr[0] "Mis en avant <span class=\"count\">(%s)</span>"
msgstr[1] "Mis en avant <span class=\"count\">(%s)</span>"
#: includes/admin/wp-donation-listing-table.php:303
#: includes/admin/wp-donation-listing-table.php:302
msgid "Restore"
msgstr "Restaurer"
#: includes/admin/wp-donation-listing-table.php:310
#: includes/admin/wp-donation-listing-table.php:309
msgid "Delete Permanently"
msgstr "Supprimer définitivement"
#: includes/admin/wp-donation-listing-table.php:312
#: includes/admin/wp-donation-listing-table.php:311
msgid "Move to Trash"
msgstr "Mettre à la corbeille"
#: includes/admin/wp-donation-listing-table.php:329
#: includes/admin/wp-donation-listing-table.php:328
#: template/donation-form.php:9
#: template/emails/donation-customer-invoice.php:31
msgid "Donation Project"
msgstr "Projet de don"
#: includes/admin/wp-donation-listing-table.php:355
#: includes/admin/wp-donation-listing-table.php:354
msgid "All categories"
msgstr "Toutes catégories"
#: includes/admin/wp-donation-listing-table.php:363
#: includes/admin/wp-donation-listing-table.php:362
msgid "Filter by category"
msgstr "Filtrer par catégorie"
#: includes/admin/wp-donation-listing-table.php:377
#: includes/admin/wp-donation-listing-table.php:376
msgid "Filter"
msgstr "Filtre"
#: includes/admin/wp-donation-listing-table.php:381
#: includes/admin/wp-donation-listing-table.php:380
msgid "Empty Trash"
msgstr "Vider la corbeille"
#. translators: manage posts column name
#: includes/admin/wp-donation-listing-table.php:432
msgctxt "column name"
msgid "Title"
msgstr "Titre"
#: includes/admin/wp-donation-listing-table.php:435
#: includes/admin/wp-donation-listing-table.php:434
msgid "Author"
msgstr "Auteur"
#: includes/admin/wp-donation-listing-table.php:468
#: includes/admin/wp-donation-listing-table.php:467
msgid "Comments"
msgstr "Commentaires"
#: includes/admin/wp-donation-listing-table.php:470
#: includes/admin/wp-donation-listing-table.php:469
#: template/myaccount/my-donations.php:34
#: template/myaccount/my-donations.php:60
msgid "Date"
msgstr "Date"
#: includes/admin/wp-donation-listing-table.php:731
#: includes/admin/wp-donation-listing-table.php:730
#: includes/admin/wp-donors-listing-table.php:372
#, php-format
msgid "Select %s"
msgstr "Select %s"
#: includes/admin/wp-donation-listing-table.php:804
#: includes/admin/wp-donation-listing-table.php:803
#, php-format
msgid "Edit &#8220;%s&#8221;"
msgstr "Modifier &#8220;%s&#8221;"
#: includes/admin/wp-donation-listing-table.php:822
#: includes/admin/wp-donation-listing-table.php:821
#, php-format
msgid "%s is currently editing"
msgstr "%s est actuellement édition"
#: includes/admin/wp-donation-listing-table.php:851
#: includes/admin/wp-donation-listing-table.php:850
msgid "Unpublished"
msgstr "Non publié"
#: includes/admin/wp-donation-listing-table.php:854
#: includes/admin/wp-donation-listing-table.php:853
msgid "Y/m/d g:i:s a"
msgstr "Y/m/d g:i:s a"
#: includes/admin/wp-donation-listing-table.php:861
#: includes/admin/wp-donation-listing-table.php:860
#, php-format
msgid "%s ago"
msgstr "il y a %s"
#: includes/admin/wp-donation-listing-table.php:863
#: includes/admin/wp-donation-listing-table.php:862
msgid "Y/m/d"
msgstr "Y/m/d"
#: includes/admin/wp-donation-listing-table.php:890
#: includes/admin/wp-donation-listing-table.php:889
msgid "Published"
msgstr "Publié"
#: includes/admin/wp-donation-listing-table.php:893
#: includes/admin/wp-donation-listing-table.php:892
msgid "Missed schedule"
msgstr "Date manquée"
#: includes/admin/wp-donation-listing-table.php:895
#: includes/admin/wp-donation-listing-table.php:894
msgid "Scheduled"
msgstr "Date prévue"
#: includes/admin/wp-donation-listing-table.php:898
#: includes/admin/wp-donation-listing-table.php:897
msgid "Last Modified"
msgstr "Dernière mise à jour"
#. translators: used between list items, there is a space after the comma
#: includes/admin/wp-donation-listing-table.php:979
#: includes/admin/wp-donation-listing-table.php:978
msgid ", "
msgstr ", "
#: includes/admin/wp-donation-listing-table.php:1093
#: includes/admin/wp-donation-listing-table.php:1092
msgid "Search Donations"
msgstr "Rechercher les dons"
......@@ -743,15 +632,9 @@ msgstr "Rechercher les dons"
msgid "No users found."
msgstr "Aucun utilisateur trouvé."
#: includes/admin/wp-donors-listing-table.php:169
msgctxt "users"
msgid "All <span class=\"count\">(%s)</span>"
msgid_plural "All <span class=\"count\">(%s)</span>"
msgstr[0] "Tous <span class=\"count\">(%s)</span>"
msgstr[1] "Tous <span class=\"count\">(%s)</span>"
#. translators: User role name with count
#: includes/admin/wp-donors-listing-table.php:182
#, php-format
msgid "%1$s <span class=\"count\">(%2$s)</span>"
msgstr "%1$s <span class=\"count\">(%2$s)</span>"
......@@ -775,244 +658,179 @@ msgstr "Contribuer à"
msgid "Total Donations"
msgstr "Total des dons"
#: includes/class-post-types.php:21
#: includes/class-post-types.php:20
msgid "Quick Donation Project"
msgstr "Projet Quick Donation"
#: includes/class-post-types.php:22
#: includes/class-post-types.php:21
msgid "WooCommerce Donation Projects"
msgstr "Projets de donation WooCommerce"
#: includes/class-post-types.php:49
msgctxt "Post Type General Name"
msgid "Quick Donation Projects"
msgstr "Projets Quick Donation"
#: includes/class-post-types.php:50
msgctxt "Post Type Singular Name"
msgid "Quick Donation Project"
msgstr "Projet Quick Donation"
#: includes/class-post-types.php:51
msgid "Quick Donation"
msgstr "Quick Donation"
#: includes/class-post-types.php:52
#: includes/class-post-types.php:51
msgid "Donation"
msgstr "Donation"
#: includes/class-post-types.php:53
#: includes/class-post-types.php:52
msgid "Parent Project :"
msgstr "Projet Parent:"
#: includes/class-post-types.php:54
#: includes/class-post-types.php:53
msgid "All Project"
msgstr "Tous les projets"
#: includes/class-post-types.php:55
#: includes/class-post-types.php:54
msgid "Add New Project"
msgstr "Ajouter un nouveau projet"
#: includes/class-post-types.php:56
#: includes/class-post-types.php:55
msgid "Add Project"
msgstr "Ajouter un projet"
#: includes/class-post-types.php:57
#: includes/class-post-types.php:56
msgid "New Project"
msgstr "Nouveau projet"
#: includes/class-post-types.php:58
#: includes/class-post-types.php:57
msgid "Edit Project"
msgstr "Modifier Projet"
#: includes/class-post-types.php:59
#: includes/class-post-types.php:58
msgid "Update ProjectNot found in Trash"
msgstr "Mise à jour du Projet. Non trouvé dans la corbeille"
#: includes/class-post-types.php:60
#: includes/class-post-types.php:59
msgid "View Project"
msgstr "Voir le projet"
#: includes/class-post-types.php:61
#: includes/class-post-types.php:60
msgid "Search Project"
msgstr "Recherche de projet"
#: includes/class-post-types.php:62
#: includes/class-post-types.php:61
msgid "No Project Found"
msgstr "Pas de projet trouvé"
#: includes/class-post-types.php:63
#: includes/class-post-types.php:62
msgid "No Project Found in Trash"
msgstr "Pas de projet trouvé dans la corbeille"
#: includes/class-post-types.php:87
msgctxt "Taxonomy General Name"
msgid "Project Categories"
msgstr "Catégories des projets"
#: includes/class-post-types.php:88
msgctxt "Taxonomy Singular Name"
msgid "Project Category"
msgstr "Catégorie du projet"
#: includes/class-post-types.php:89
msgid "Categories"
msgstr "Catégories"
#: includes/class-post-types.php:90
#: includes/class-post-types.php:89
msgid "All Categories"
msgstr "Toutes les catégories"
#: includes/class-post-types.php:91
#: includes/class-post-types.php:90
msgid "Parent Category"
msgstr "Catégorie parente"
#: includes/class-post-types.php:92
#: includes/class-post-types.php:91
msgid "Parent Category:"
msgstr "Catégorie parente:"
#: includes/class-post-types.php:93
#: includes/class-post-types.php:92
msgid "New Category Name"
msgstr "Nouveau Nom de la catégorie"
#: includes/class-post-types.php:94
#: includes/class-post-types.php:93
msgid "Add New Project Category"
msgstr "Ajouter une nouvelle catégorie de projet"
#: includes/class-post-types.php:95
#: includes/class-post-types.php:94
msgid "Edit Category"
msgstr "Modifier une catégorie"
#: includes/class-post-types.php:96
#: includes/class-post-types.php:95
msgid "Update Category"
msgstr "Mettre à jour la Catégorie"
#: includes/class-post-types.php:97
#: includes/class-post-types.php:96
msgid "View Category"
msgstr "Voir la catégorie"
#: includes/class-post-types.php:98
#: includes/class-post-types.php:97
msgid "Separate Categories with commas"
msgstr "Séparez les catégories par des virgules"
#: includes/class-post-types.php:99
#: includes/class-post-types.php:98
msgid "Add or remove Categories"
msgstr "Ajouter ou supprimer des catégories"
#: includes/class-post-types.php:100 includes/class-post-types.php:147
#: includes/class-post-types.php:99 includes/class-post-types.php:146
msgid "Choose from the most used"
msgstr "Choisissez parmi les plus utilisés"
#: includes/class-post-types.php:101
#: includes/class-post-types.php:100
msgid "Popular Categories"
msgstr "Catégories populaires"
#: includes/class-post-types.php:102
#: includes/class-post-types.php:101
msgid "Search Categories"
msgstr "Recherche Catégories"
#: includes/class-post-types.php:103 includes/class-post-types.php:150
#: includes/class-post-types.php:102 includes/class-post-types.php:149
msgid "Not Found"
msgstr "Non trouvé"
#: includes/class-post-types.php:134
msgctxt "Taxonomy General Name"
msgid "Project Tags"
msgstr "Mots-clés du projet"
#: includes/class-post-types.php:135
msgctxt "Taxonomy Singular Name"
msgid "Project Tag"
msgstr "Mot-clé du projet"
#: includes/class-post-types.php:136
msgid "Tags"
msgstr "Thèmes"
#: includes/class-post-types.php:137
#: includes/class-post-types.php:136
msgid "All Tags"
msgstr "Tous les thèmes"
#: includes/class-post-types.php:138
#: includes/class-post-types.php:137
msgid "Parent Tag"
msgstr "Thème parent"
#: includes/class-post-types.php:139
#: includes/class-post-types.php:138
msgid "Parent Tag :"
msgstr "Thème parent"
#: includes/class-post-types.php:140
#: includes/class-post-types.php:139
msgid "New Tag Name"
msgstr "Nom du nouveau thème"
#: includes/class-post-types.php:141
#: includes/class-post-types.php:140
msgid "Add New Tag"
msgstr "Ajouter un nouveau thème"
#: includes/class-post-types.php:142
#: includes/class-post-types.php:141
msgid "Edit Tag "
msgstr "Modifier le thème "
#: includes/class-post-types.php:143
#: includes/class-post-types.php:142
msgid "Update Tags"
msgstr "Mettre à jour les thèmes"
#: includes/class-post-types.php:144
#: includes/class-post-types.php:143
msgid "View Tag"
msgstr "Voir le thème"
#: includes/class-post-types.php:145
#: includes/class-post-types.php:144
msgid "Separate Tags with commas"
msgstr "Séparez les thèmes avec des virgules"
#: includes/class-post-types.php:146
#: includes/class-post-types.php:145
msgid "Add or remove Tags"
msgstr "Ajouter ou supprimer des thèmes"
#: includes/class-post-types.php:148
#: includes/class-post-types.php:147
msgid "Popular Tags"
msgstr "Thèmes populaires"
#: includes/class-post-types.php:149
#: includes/class-post-types.php:148
msgid "Search Tags"
msgstr "Rechercher des thèmes"
#: includes/class-post-types.php:175
msgctxt "Order status"
msgid "Completed"
msgstr "Complété"
#: includes/class-post-types.php:176
msgid "Completed (%s)"
msgid_plural "Completed (%s)"
msgstr[0] "Complété ($s)"
msgstr[1] "Complété(s)"
#: includes/class-post-types.php:184
#: includes/wc-quick-donation-functions.php:37
msgctxt "Order status"
msgid "Donation On Hold"
msgstr "Don en attente"
#: includes/class-post-types.php:189
msgid "Donation On Hold <span class=\"count\">(%s)</span>"
msgid_plural "DonationOn Hold <span class=\"count\">(%s)</span>"
msgstr[0] "Donation en attente <span class=\"count\">(%s)</span>"
msgstr[1] "%1$s <span class=\"count\">(%2$s)</span>"
#: includes/class-post-types.php:192
#: includes/wc-quick-donation-functions.php:36
msgctxt "Order status"
msgid "Donation Refunded"
msgstr "Donation remboursée"
#: includes/class-post-types.php:197
msgid "Refunded <span class=\"count\">(%s)</span>"
msgid_plural "Refunded <span class=\"count\">(%s)</span>"
msgstr[0] "<span class=\"count\">(%s)</span> Remboursé"
msgstr[1] "%1$s <span class=\"count\">(%2$s)</span>"
#: includes/class-quick-donation-functions.php:241
#: includes/class-quick-donation-functions.php:226
msgid "No Payment Gateway Configured In WooCommerce. Kindly Configure One"
msgstr ""
"Pas de passerelles de paiement configurées dans WooCommerce. Veuillez en "
......@@ -1052,6 +870,7 @@ msgstr "Sujet de l'email"
#: includes/emails/class-new-email.php:163
#: includes/emails/class-new-email.php:170
#: includes/emails/class-new-email.php:177
#, php-format
msgid "Defaults to <code>%s</code>"
msgstr "Defaults to <code>%s</code>"
......@@ -1075,27 +894,23 @@ msgstr "Type de l'email"
msgid "Choose which format of email to send."
msgstr "Choisissez le format d'email à envoyer."
#: includes/wc-quick-donation-functions.php:35
msgctxt "Donation Completed"
msgid "Donation Completed"
msgstr "Donation complétée"
#: template/cart/donation-cart-shipping.php:18
#: template/cart/donation-cart-shipping.php:20
#, php-format
msgid "Shipping #%d"
msgstr "Livraison #%d"
#: template/cart/donation-cart-shipping.php:20
#: template/cart/donation-cart-shipping.php:95
#: template/cart/donation-cart-shipping.php:22
#: template/cart/donation-cart-shipping.php:97
msgid "Shipping"
msgstr "Livraison"
#: template/cart/donation-cart-shipping.php:57
#: template/cart/donation-cart-shipping.php:59
msgid "Please use the shipping calculator to see available shipping methods."
msgstr ""
"S'il vous plaît utiliser le calculateur pour voir les méthodes de livraison "
"disponibles."
#: template/cart/donation-cart-shipping.php:61
#: template/cart/donation-cart-shipping.php:63
msgid ""
"Please continue to the checkout and enter your full address to see if there "
"are any available shipping methods."
......@@ -1103,14 +918,14 @@ msgstr ""
"Entrez votre adresse complète à la prochaine étape pour voir si il y a des "
"méthodes de livraison disponibles."
#: template/cart/donation-cart-shipping.php:65
#: template/cart/donation-cart-shipping.php:67
msgid "Please fill in your details to see available shipping methods."
msgstr ""
"Veuillez remplir vos coordonnées pour voir les méthodes de livraison "
"disponibles."
#: template/cart/donation-cart-shipping.php:74
#: template/cart/donation-cart-shipping.php:80
#: template/cart/donation-cart-shipping.php:76
#: template/cart/donation-cart-shipping.php:82
msgid ""
"There are no shipping methods available. Please double check your address, "
"or contact us if you need any help."
......@@ -1124,7 +939,7 @@ msgstr ""
msgid "Amount"
msgstr "Montant"
#: template/cart/donation-cart.php:48
#: template/cart/donation-cart.php:48 template/donation-cart.php:50
msgid "Remove this item"
msgstr "Supprimer cet article"
......@@ -1187,7 +1002,7 @@ msgstr ""
"coordonnées ci-dessous. Si vous êtes un nouveau client veuillez procéder à "
"l'étape de facturation &amp; de livraison "
#: template/checkout/donation-form-pay.php:20
#: template/checkout/donation-form-pay.php:20 template/donation-cart.php:27
msgid "Product"
msgstr "Produit"
......@@ -1253,11 +1068,8 @@ msgstr ""
"commande. Vous pouvez être facturé plus que le montant indiqué ci-dessus si "
"vous n'effectuez pas cette action."
#: template/checkout/donation-payment.php:43
msgid "Update totals"
msgstr "Mettre à jour les totaux"
#: template/checkout/donation-payment.php:53
#, php-format
msgid ""
"I&rsquo;ve read and accept the <a href=\"%s\" target=\"_blank\">terms &amp; "
"conditions</a>"
......@@ -1269,7 +1081,7 @@ msgstr ""
msgid "Donation for"
msgstr "Don pour"
#: template/checkout/donation-thankyou.php:17
#: template/checkout/donation-thankyou.php:18
msgid ""
"Unfortunately your order cannot be processed as the originating bank/"
"merchant has declined your transaction."
......@@ -1277,43 +1089,67 @@ msgstr ""
"Malheureusement, votre commande ne peut être traitée car le système de "
"paiemen a refusé votre transaction."
#: template/checkout/donation-thankyou.php:21
#: template/checkout/donation-thankyou.php:22
msgid "Please attempt your purchase again or go to your account page."
msgstr ""
"S'il vous plaît essayer à nouveau votre achat ou aller sur la page de votre "
"compte."
#: template/checkout/donation-thankyou.php:23
#: template/checkout/donation-thankyou.php:24
msgid "Please attempt your purchase again."
msgstr "S'il vous plaît essayer à nouveau"
#: template/checkout/donation-thankyou.php:27
#: template/checkout/donation-thankyou.php:28
#: template/myaccount/my-donations.php:76
msgid "Pay"
msgstr "Payer"
#: template/checkout/donation-thankyou.php:29
#: template/checkout/donation-thankyou.php:30
msgid "My Account"
msgstr "Mon compte"
#: template/checkout/donation-thankyou.php:35
#: template/checkout/donation-thankyou.php:36
msgid "Thank you. Your Donation has been received."
msgstr "Merci. Votre don a bien été pris en compte."
#: template/checkout/donation-thankyou.php:39
#: template/checkout/donation-thankyou.php:40
msgid "Reference Number :"
msgstr "Numéro de référence :"
#: template/checkout/donation-thankyou.php:43
#: template/checkout/donation-thankyou.php:44
msgid "Date:"
msgstr "Date:"
#: template/checkout/donation-thankyou.php:63
#: template/checkout/donation-thankyou.php:64
msgid "Thank you. Your order has been received."
msgstr "Merci. Votre commande a été prise en compte."
#: template/donation-cart.php:28
#: template/emails/donation-customer-invoice.php:33
msgid "Price"
msgstr "Prix"
#: template/donation-cart.php:29
#: template/emails/donation-customer-invoice.php:32
msgid "Quantity"
msgstr "Quantité"
#: template/donation-cart.php:30 template/myaccount/my-donations.php:36
msgid "Total"
msgstr "Total"
#: template/donation-cart.php:128
msgid "Coupon"
msgstr "Coupon"
#: template/donation-form.php:18
#, fuzzy
msgid "Add Donation"
msgstr "Donation"
#: template/emails/donation-customer-invoice.php:20
#: template/emails/plain/donation-customer-invoice.php:17
#, php-format
msgid ""
"An order has been created for you on %s. To pay for this order please use "
"the following link: %s"
......@@ -1326,18 +1162,12 @@ msgid "pay"
msgstr "payer"
#: template/emails/donation-customer-invoice.php:26
#, php-format
msgid "Order #%s"
msgstr "Commande #%s"
#: template/emails/donation-customer-invoice.php:32
msgid "Quantity"
msgstr "Quantité"
#: template/emails/donation-customer-invoice.php:33
msgid "Price"
msgstr "Prix"
#: template/emails/plain/donation-customer-invoice.php:23
#, php-format
msgid "Order number: %s"
msgstr "Commande numéro %s"
......@@ -1350,30 +1180,9 @@ msgid "Recent Donations"
msgstr "Dons récents"
#: template/myaccount/my-donations.php:35
#: template/myaccount/my-donations.php:63
msgid "Status"
msgstr "Statut"
#: template/myaccount/my-donations.php:36
#: template/myaccount/my-donations.php:66
msgid "Total"
msgstr "Total"
#: template/myaccount/my-donations.php:48
msgid "Order Number"
msgstr "Commande numéro"
#: template/myaccount/my-donations.php:50
msgctxt "hash before order number"
msgid "#"
msgstr "#"
#: template/myaccount/my-donations.php:67
msgid "%s for %s item"
msgid_plural "%s for %s items"
msgstr[0] "%s de %s élément"
msgstr[1] "%s de %s éléments"
#: template/myaccount/my-donations.php:83
msgid "Cancel"
msgstr "Annuler"
......@@ -1382,7 +1191,8 @@ msgstr "Annuler"
msgid "View"
msgstr "Voir"
#: template/myaccount/view-donation.php:18
#: template/myaccount/view-donation.php:20
#, php-format
msgid ""
"Placed on <mark class=\"order-date\">%s</mark> and is currently <mark class="
"\"order-status\">%s</mark>."
......@@ -1390,11 +1200,11 @@ msgstr ""
"Placé sur <marque class =\"afin jour %s </marque> et est actuellement <mark "
"class=\"d'état des commandes %s </marque>."
#: template/myaccount/view-donation.php:22 template/order/tracking.php:25
#: template/myaccount/view-donation.php:24 template/order/tracking.php:25
msgid "Order Updates"
msgstr "Mises à jour de la commande"
#: template/myaccount/view-donation.php:28 template/order/tracking.php:31
#: template/myaccount/view-donation.php:30 template/order/tracking.php:31
msgid "l jS \\o\\f F Y, h:ia"
msgstr "l jS \\o\\f F Y, h:ia"
......@@ -1413,22 +1223,10 @@ msgstr ""
msgid "Order ID"
msgstr "Numéro de commande"
#: template/order/form-tracking.php:22
msgid "Found in your order confirmation email."
msgstr "Trouvé dans l'email de confirmation de votre commande"
#: template/order/form-tracking.php:23
msgid "Billing Email"
msgstr "Email de facturation"
#: template/order/form-tracking.php:23
msgid "Email you used during checkout."
msgstr "L'email ustilisée lors de la validation de la commande."
#: template/order/form-tracking.php:26
msgid "Track"
msgstr "Traquer"
#: template/order/order-again.php:16
msgid "Order Again"
msgstr "Commander une nouvelle fois"
......@@ -1450,6 +1248,7 @@ msgid "Telephone:"
msgstr "Téléphone:"
#: template/order/tracking.php:14
#, php-format
msgid "Order #%s which was made %s has the status &ldquo;%s&rdquo;"
msgstr "Commande #%s qui a été faite %s a le statut &ldquo;%s&rdquo;"
......@@ -1464,60 +1263,3 @@ msgstr "et a été achevé"
#: template/order/tracking.php:16
msgid " ago"
msgstr " depuis"
#: woocommerce-quick-donation.php:287
msgid "WooCommerce Is Required. To Use This Plugin :)"
msgstr "WooCommerce est requis pour utiliser cette extension :)"
#. Plugin Name of the plugin/theme
msgid "WooCommerce Quick Donation"
msgstr "WooCommerce Quick Donation"
#. Plugin URI of the plugin/theme
msgid "http://wordpress.org/plugins/woocommerce-quick-donation/"
msgstr "http://wordpress.org/plugins/woocommerce-quick-donation/"
#. Description of the plugin/theme
msgid "Turns WooCommerce Into Online Donation"
msgstr "Tranforme WooCommerce en platforme de donations en ligne"
#. Author of the plugin/theme
msgid "Varun Sridharan"
msgstr "Varun Sridharan"
#. Author URI of the plugin/theme
msgid "http://varunsridharan.in"
msgstr "http://varunsridharan.in"
#~ msgid "Remove "
#~ msgstr "Retirer"
#~ msgid "General Details"
#~ msgstr "Détails généraux"
#~ msgid "Order date:"
#~ msgstr "Date de commande:"
#~ msgid "Order status:"
#~ msgstr "Statut de la commande:"
#~ msgid ""
#~ "<div class=\"decs\"> <span> Add <code>{donation_amount}</code> To Get "
#~ "Ented Amount By User. </span> \n"
#~ " <span> Add <code>{min_amount}</code> To Get Minimum "
#~ "Required Amount From Selected Project </span> \n"
#~ " <span> Add <code>{max_amount}</code> To Get Minimum "
#~ "Required Amount From Selected Project </span> </div>"
#~ msgstr ""
#~ "<div class=\"decs\"> <span> Add <code>{donation_amount}</code> To Get "
#~ "Ented Amount By User. </span> \n"
#~ " <span> Add <code>{min_amount}</code> To Get Minimum "
#~ "Required Amount From Selected Project </span> \n"
#~ " <span> Add <code>{max_amount}</code> To Get Minimum "
#~ "Required Amount From Selected Project </span> </div>"
#~ msgid "Coupon"
#~ msgstr "Coupon"
#~ msgid "Add Donation"
#~ msgstr "Ajouter"
<?php
/**
* Customer invoice email
*
* @author Varun Sridharan
* @package WooCommerce Quick Donation/Templates/emails
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<?php do_action( 'woocommerce_donation_email_header', $email_heading ); ?>
<?php if ( $order->has_status( 'pending' ) ) : ?>
<p><?php printf( __( 'An order has been created for you on %s. To pay for this order please use the following link: %s', 'woocommerce' ), get_bloginfo( 'name', 'display' ), '<a href="' . esc_url( $order->get_checkout_payment_url() ) . '">' . __( 'pay', 'woocommerce' ) . '</a>' ); ?></p>
<?php endif; ?>
<?php do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text ); ?>
<h2><?php printf( __( 'Donation ID #%s', 'woocommerce' ), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ); ?>)</h2>
<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
<thead>
<tr>
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Project', WC_QD_TXT ); ?></th>
<th class="td" scope="col" style="text-align:left;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
<?php
switch ( $order->get_status() ) {
case "completed" :
echo $order->email_order_items_table( false, false, true );
break;
case "processing" :
echo $order->email_order_items_table( false, true, true );
break;
default :
echo $order->email_order_items_table( false, true, false );
break;
}
?>
</tbody>
<tfoot>
<?php
if ( $totals = $order->get_order_item_totals() ) {
$i = 0;
foreach ( $totals as $subKey => $total ) {
$i++;
if($subKey == 'cart_subtotal' || $subKey == 'order_total'){continue;}
?><tr>
<td class="td" colspan="1" style="text-align:left; <?php if ( $i == 1 ) echo 'border-top-width: 4px !important;'; ?>"><?php echo $total['label']; ?></td>
<td class="td" style="text-align:left; <?php if ( $i == 1 ) echo 'border-top-width: 4px !important;'; ?>"><?php echo $total['value']; ?></td>
</tr><?php
}
}
?>
</tfoot>
</table>
<?php do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); ?>
<?php do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); ?>
<?php do_action( 'woocommerce_donation_email_footer' ); ?>
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.4.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.4.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.4.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.1.2
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.3.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.4.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
<?php
/**
* Customer invoice email (plain text)
*
* @author Varun Sridharan
* @package WooCommerce Quick Donation/Templates/emails/plain
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
echo "= " . $email_heading . " =\n\n";
if ( $order->has_status( 'pending' ) )
echo sprintf( __( 'An order has been created for you on %s. To pay for this order please use the following link: %s', 'woocommerce' ), get_bloginfo( 'name', 'display' ), $order->get_checkout_payment_url() ) . "\n\n";
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text );
echo strtoupper( sprintf( __( 'Order number: %s', 'woocommerce' ), $order->get_order_number() ) ) . "\n";
echo date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text );
echo "\n";
switch ( $order->get_status() ) {
case "completed" :
echo $order->email_order_items_table( $order->is_download_permitted(), false, true, '', '', true );
break;
case "processing" :
echo $order->email_order_items_table( $order->is_download_permitted(), true, true, '', '', true );
break;
default :
echo $order->email_order_items_table( $order->is_download_permitted(), true, false, '', '', true );
break;
}
echo "==========\n\n";
if ( $totals = $order->get_order_item_totals() ) {
foreach ( $totals as $total ) {
echo $total['label'] . "\t " . $total['value'] . "\n";
}
}
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text );
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 2.3.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 2.2.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 2.1.2
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 2.3.0
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -130,11 +130,11 @@ class WooCommerce_Quick_Donation {
* Inits loaded Class
*/
private function init_class(){
self::$email = new WooCommerce_Quick_Donation_Emails_Functions;
self::$db = new WooCommerce_Quick_Donation_DB;
self::$f = new WooCommerce_Quick_Donation_Functions;
self::$settings = new WooCommerce_Quick_Donation_Settings;
self::$db = new WooCommerce_Quick_Donation_DB;
self::$email = new WooCommerce_Quick_Donation_Emails_Functions;
if($this->is_request('frontend')){
self::$shortcode = new WooCommerce_Quick_Donation_Shortcode;
$this->donation = new WooCommerce_Quick_Donation_Process;
......
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