Les notifications d'échéance ne tiennent pas compte de la langue
Elles partent en francais.
Pour tenir compte de la langue du site on peut modifier avec ce patch :
diff --git a/inc/abonnements.php b/inc/abonnements.php
index 6325f61..d04719c 100644
--- a/inc/abonnements.php
+++ b/inc/abonnements.php
@@ -293,6 +293,7 @@ function abonnements_notifier_echeance($id_abonnement, $nom, $email, $duree, $pe
'duree' => $duree,
'periode' => $periode,
'quand' => $quand,
+ 'lang' => $GLOBALS['meta']['langue_site'],
);
$notifications = charger_fonction('notifications', 'inc');
$notifications($quoi, $id_abonnement, $options);
diff --git a/notifications/abonnement_echeance.php b/notifications/abonnement_echeance.php
index da6f76b..69433cd 100644
--- a/notifications/abonnement_echeance.php
+++ b/notifications/abonnement_echeance.php
@@ -42,6 +42,7 @@ function notifications_abonnement_echeance_dist($quoi, $id, $options) {
'duree' => $options['duree'],
'periode' => $options['periode'],
'quand' => $options['quand'],
+ 'lang' => $options['lang'],
)
);
Pour affiner encore plus on pourait utiliser les notifications avancées : notifications_avancees@b7b0183e
Je propose de commiter mon patch dans un premier temps.