added language support however, something is broken :/
This commit is contained in:
parent
2724ecbf16
commit
cf6a297452
3 changed files with 75 additions and 5 deletions
|
@ -21,7 +21,15 @@ class Mail_Handler{
|
||||||
$sendingId = NULL;
|
$sendingId = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
$variables = Helpers::handle_language();
|
global $AMS_TRANS;
|
||||||
|
if(is_numeric($receiver)){
|
||||||
|
$webUser = new WebUsers($receiver);
|
||||||
|
$lang = $webUser->getLanguage();
|
||||||
|
}else{
|
||||||
|
global $DEFAULT_LANGUAGE;
|
||||||
|
$lang = $DEFAULT_LANGUAGE;
|
||||||
|
}
|
||||||
|
$variables = parse_ini_file( $AMS_TRANS . '/' . $lang . '.ini', true );
|
||||||
$mailText = array();
|
$mailText = array();
|
||||||
foreach ( $variables['email'] as $key => $value ){
|
foreach ( $variables['email'] as $key => $value ){
|
||||||
$mailText[$key] = $value;
|
$mailText[$key] = $value;
|
||||||
|
|
|
@ -137,8 +137,9 @@ tac_tag1= "YES, I agree to the "
|
||||||
tac_tag2="terms of service"
|
tac_tag2="terms of service"
|
||||||
tac_message = "You must accept the Terms of Service."
|
tac_message = "You must accept the Terms of Service."
|
||||||
|
|
||||||
|
|
||||||
[email]
|
[email]
|
||||||
|
|
||||||
|
;NEWREPLY==========================================================================
|
||||||
email_subject_new_reply = "New reply on [Ticket #"
|
email_subject_new_reply = "New reply on [Ticket #"
|
||||||
email_body_new_reply_1 = "---------- Ticket #"
|
email_body_new_reply_1 = "---------- Ticket #"
|
||||||
email_body_new_reply_2 = " ----------
|
email_body_new_reply_2 = " ----------
|
||||||
|
@ -151,6 +152,8 @@ email_body_new_reply_4 = "
|
||||||
--------------------
|
--------------------
|
||||||
You can reply on this message to answer directly on the ticket!"
|
You can reply on this message to answer directly on the ticket!"
|
||||||
|
|
||||||
|
;NEWTICKET
|
||||||
|
;==========================================================================
|
||||||
email_subject_new_ticket = "New ticket created [Ticket #"
|
email_subject_new_ticket = "New ticket created [Ticket #"
|
||||||
email_body_new_ticket_1 = "---------- Ticket #"
|
email_body_new_ticket_1 = "---------- Ticket #"
|
||||||
email_body_new_ticket_2 = " ----------
|
email_body_new_ticket_2 = " ----------
|
||||||
|
@ -162,6 +165,8 @@ email_body_new_ticket_4 = "
|
||||||
----------
|
----------
|
||||||
You can reply on this message to answer directly on the ticket!"
|
You can reply on this message to answer directly on the ticket!"
|
||||||
|
|
||||||
|
;WARNAUTHOR
|
||||||
|
;==========================================================================
|
||||||
email_subject_warn_author = "Someone tried to reply to your ticket: [Ticket #"
|
email_subject_warn_author = "Someone tried to reply to your ticket: [Ticket #"
|
||||||
email_body_warn_author_1 = "Someone tried to reply at your ticket: "
|
email_body_warn_author_1 = "Someone tried to reply at your ticket: "
|
||||||
email_body_warn_author_2 = " by sending an email from "
|
email_body_warn_author_2 = " by sending an email from "
|
||||||
|
@ -170,13 +175,17 @@ email_body_warn_author_3 = " ! Please use the email address matching to your acc
|
||||||
If "
|
If "
|
||||||
email_body_warn_author_4 = " isn't one of your email addresses, please contact us by replying to this ticket!"
|
email_body_warn_author_4 = " isn't one of your email addresses, please contact us by replying to this ticket!"
|
||||||
|
|
||||||
|
;WARNSENDER
|
||||||
|
;==========================================================================
|
||||||
email_subject_warn_sender = "You tried to reply to someone elses ticket!"
|
email_subject_warn_sender = "You tried to reply to someone elses ticket!"
|
||||||
email_body_warn_sender = "It seems you tried to reply to someone elses ticket, please use the matching email address to that account!
|
email_body_warn_sender = "It seems you tried to reply to someone elses ticket, please use the matching email address to that account!
|
||||||
|
|
||||||
This action is notified to the real ticket owner!"
|
This action is notified to the real ticket owner!"
|
||||||
|
|
||||||
|
;WARNUNKNOWNENDER
|
||||||
|
;==========================================================================
|
||||||
email_subject_warn_unknown_sender = "You tried to reply to someone's ticket!"
|
email_subject_warn_unknown_sender = "You tried to reply to someone's ticket!"
|
||||||
email_body_warn_unknown_sender = "It seems you tried to reply to someone's ticket, However this email address isn't linked to any account, please use the matching email address to that account!
|
email_body_warn_unknown_sender = "It seems you tried to reply to someone's ticket, However this email address isn't linked to any account, please use the matching email address to that account!
|
||||||
|
|
||||||
This action is notified to the real ticket owner!"
|
This action is notified to the real ticket owner!"
|
||||||
|
;===========================================================================
|
|
@ -133,3 +133,56 @@ email_default = "email"
|
||||||
tac_tag1 = "OUI, j'accepte les "
|
tac_tag1 = "OUI, j'accepte les "
|
||||||
tac_tag2 = "termes de service"
|
tac_tag2 = "termes de service"
|
||||||
tac_message = "Vous devez accepter les Conditions d'utilisation."
|
tac_message = "Vous devez accepter les Conditions d'utilisation."
|
||||||
|
|
||||||
|
[email]
|
||||||
|
|
||||||
|
;NEWREPLY==========================================================================
|
||||||
|
email_subject_new_reply = "Nouvelle message sur [Billet #"
|
||||||
|
email_body_new_reply_1 = "---------- Billet #"
|
||||||
|
email_body_new_reply_2 = " ----------
|
||||||
|
Vous avez recu un nouvelle message sur: "
|
||||||
|
email_body_new_reply_3 = "
|
||||||
|
--------------------
|
||||||
|
Repondre Contenu:
|
||||||
|
"
|
||||||
|
email_body_new_reply_4 = "
|
||||||
|
--------------------
|
||||||
|
Vous ne pouvez pas repondre a ce message pour repondre directement sur le billet! "
|
||||||
|
|
||||||
|
;NEWTICKET
|
||||||
|
;==========================================================================
|
||||||
|
email_subject_new_ticket = "nouvelle billet est cree [Billet #"
|
||||||
|
email_body_new_ticket_1 = "---------- Billet #"
|
||||||
|
email_body_new_ticket_2 = " ----------
|
||||||
|
Votre Billet: "
|
||||||
|
email_body_new_ticket_3 = " est nouvelle cree
|
||||||
|
----------
|
||||||
|
"
|
||||||
|
email_body_new_ticket_4 = "
|
||||||
|
----------
|
||||||
|
Vous ne pouvez pas repondre a ce message pour repondre directement sur le billet!"
|
||||||
|
|
||||||
|
;WARNAUTHOR
|
||||||
|
;==========================================================================
|
||||||
|
email_subject_warn_author = "Quelqu'un a essayé de répondre à votre billet: [Ticket #"
|
||||||
|
email_body_warn_author_1 = "Quelqu'un a essayé de répondre à votre billet: "
|
||||||
|
email_body_warn_author_2 = " en envoyant un courriel à partir de "
|
||||||
|
email_body_warn_author_3 = " ! Veuillez utiliser l'adresse e-mail correspondant à votre compte si vous souhaitez réponse automatique.
|
||||||
|
|
||||||
|
Si "
|
||||||
|
email_body_warn_author_4 = " n'est pas l'une de vos adresses e-mail, s'il vous plaît contactez-nous en répondant à ce billet!"
|
||||||
|
|
||||||
|
;WARNSENDER
|
||||||
|
;==========================================================================
|
||||||
|
email_subject_warn_sender = "Vous avez tenté de répondre à quelqu'un billet elses!"
|
||||||
|
email_body_warn_sender = "Il semble que vous avez essayé de répondre à quelqu'un billet elses, copiez l'adresse e-mail correspondant à ce compte!
|
||||||
|
|
||||||
|
Cet acte est notifié au propriétaire du billet de vrai! "
|
||||||
|
|
||||||
|
;WARNUNKNOWNENDER
|
||||||
|
;==========================================================================
|
||||||
|
email_subject_warn_unknown_sender = "Vous avez tenté de répondre à la billetterie de quelqu'un!"
|
||||||
|
email_body_warn_unknown_sender = "Il semble que vous avez essayé de répondre à la billetterie de quelqu'un, mais cette adresse e-mail n'est pas liée à un compte, veuillez utiliser l'adresse e-mail correspondant à ce compte!
|
||||||
|
|
||||||
|
Cet acte est notifié au propriétaire du billet de vrai!"
|
||||||
|
;===========================================================================
|
Loading…
Reference in a new issue