Internationalize invoice lines for new memberships
This commit is contained in:
parent
3d00c065ae
commit
6053f3e5f8
@ -34,3 +34,4 @@ ARollbackWasPerformedOnPostActions=A rollback was performed on all Post actions.
|
||||
ValidationOfPaymentFailed=Validation of payment has failed
|
||||
CardOwner=Card holder
|
||||
PayPalBalance=Paypal credit
|
||||
OnlineSubscriptionPaymentLine=Online subscription recorded on %s<br>Paid via %s<br>Originating IP address: %s<br>Transaction ID: %s
|
||||
|
||||
@ -504,9 +504,13 @@ if ($ispaymentok) {
|
||||
$datesubend = dol_time_plus_duree($datesubend, -1, 'd');
|
||||
}
|
||||
|
||||
// Set output language
|
||||
$outputlangs = new Translate('', $conf);
|
||||
$outputlangs->setDefaultLang(empty($object->thirdparty->default_lang) ? $mysoc->default_lang : $object->thirdparty->default_lang);
|
||||
$paymentdate = $now;
|
||||
$amount = $FinalPaymentAmt;
|
||||
$label = 'Online subscription '.dol_print_date($now, 'standard').' using '.$paymentmethod.' from '.$ipaddress.' - Transaction ID = '.$TRANSACTIONID;
|
||||
$formatteddate = dol_print_date($paymentdate, 'dayhour', 'auto', $outputlangs);
|
||||
$label = $langs->trans("OnlineSubscriptionPaymentLine", $formatteddate, $paymentmethod, $ipaddress, $TRANSACTIONID);
|
||||
|
||||
// Payment informations
|
||||
$accountid = 0;
|
||||
@ -693,9 +697,6 @@ if ($ispaymentok) {
|
||||
// Send subscription email
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
|
||||
$formmail = new FormMail($db);
|
||||
// Set output language
|
||||
$outputlangs = new Translate('', $conf);
|
||||
$outputlangs->setDefaultLang(empty($object->thirdparty->default_lang) ? $mysoc->default_lang : $object->thirdparty->default_lang);
|
||||
// Load traductions files required by page
|
||||
$outputlangs->loadLangs(array("main", "members"));
|
||||
// Get email content from template
|
||||
|
||||
Loading…
Reference in New Issue
Block a user