fixed german translations
Dieser Commit ist enthalten in:
Ursprung
68caaa0bf4
Commit
c0e41ea0fa
20 geänderte Dateien mit 318 neuen und 317 gelöschten Zeilen
|
|
@ -73,7 +73,7 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
|
||||
if ($_REQUEST["selTemplate"] > 0) {
|
||||
// Template has been changed, but specified: Store template article as new newsletter article
|
||||
$iIDArt = conCopyArticle($_REQUEST["selTemplate"], $oClientLang->getProperty("newsletter", "html_newsletter_idcat"), sprintf(i18n("Newsletter: %s", "cl_newsletter"), $oNewsletter->get("name")));
|
||||
$iIDArt = conCopyArticle($_REQUEST["selTemplate"], $oClientLang->getProperty("newsletter", "html_newsletter_idcat"), sprintf(i18n("Newsletter: %s", "cl-newsletter"), $oNewsletter->get("name")));
|
||||
conMakeOnline($iIDArt, $lang); // Article has to be online for sending...
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
|
||||
if ($oArticles->count() == 0) {
|
||||
// Ups, article lost, reset idart and template_idart for newsletter
|
||||
$notis = $notification->returnNotification("error", sprintf(i18n("The html newsletter article has been deleted (idart: %s), the html message is lost", "cl_newsletter"), $oNewsletter->get("idart"))) . "<br>";
|
||||
$notis = $notification->returnNotification("error", sprintf(i18n("The html newsletter article has been deleted (idart: %s), the html message is lost", "cl-newsletter"), $oNewsletter->get("idart"))) . "<br>";
|
||||
|
||||
$oNewsletter->set("idart", 0);
|
||||
$oNewsletter->set("template_idart", 0);
|
||||
|
|
@ -104,9 +104,9 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
|
||||
if ($oArticles->count() == 0) {
|
||||
// Ups, template has been deleted: Restore from current newsletter message article
|
||||
$notis = $notification->returnNotification("warning", i18n("The html newsletter template article has been deleted, it has been restored using the html message article of this newsletter", "cl_newsletter")) . "<br>";
|
||||
$notis = $notification->returnNotification("warning", i18n("The html newsletter template article has been deleted, it has been restored using the html message article of this newsletter", "cl-newsletter")) . "<br>";
|
||||
|
||||
$iIDArt = conCopyArticle($oNewsletter->get("idart"), $oClientLang->getProperty("newsletter", "html_template_idcat"), sprintf(i18n("%s (Template restored)", "cl_newsletter"), $oNewsletter->get("name")));
|
||||
$iIDArt = conCopyArticle($oNewsletter->get("idart"), $oClientLang->getProperty("newsletter", "html_template_idcat"), sprintf(i18n("%s (Template restored)", "cl-newsletter"), $oNewsletter->get("name")));
|
||||
$oNewsletter->set("template_idart", $iIDArt);
|
||||
$oNewsletter->store();
|
||||
}
|
||||
|
|
@ -120,35 +120,35 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
$oForm->setVar("idnewsletter", $idnewsletter);
|
||||
$oForm->setWidth("100%");
|
||||
|
||||
$oForm->addHeader(sprintf(i18n("Edit newsletter message (%s)", "cl_newsletter"), $oNewsletter->get("name")));
|
||||
$oForm->addHeader(sprintf(i18n("Edit newsletter message (%s)", "cl-newsletter"), $oNewsletter->get("name")));
|
||||
$oForm->add(i18n("Subject"), $oNewsletter->get("subject"));
|
||||
|
||||
$sTagInfoText = '<a href="javascript:fncShowHide(\'idTagInfoText\');"><strong>' . i18n("Tag information", "cl_newsletter") . '</strong></a>' .
|
||||
'<div id="idTagInfoText" style="display: none"><br /><b>' . i18n("Special message tags (will be replaced when sending)", "cl_newsletter") . ':</b><br>' .
|
||||
'MAIL_NAME: ' . i18n("Name of the recipient", "cl_newsletter") . '<br />' .
|
||||
'MAIL_DATE: ' . i18n("Date, when the mail has been sent", "cl_newsletter") . '<br />' .
|
||||
'MAIL_TIME: ' . i18n("Time, when the mail has been sent", "cl_newsletter") . '<br />' .
|
||||
'MAIL_NUMBER: ' . i18n("Number of recipients", "cl_newsletter") . '<br />' .
|
||||
#'MAIL_CHANGE: '.i18n("Link to change the e-mail adress", "cl_newsletter").'<br />'.
|
||||
'MAIL_UNSUBSCRIBE: ' . i18n("Link to unsubscribe", "cl_newsletter") . '<br />' .
|
||||
'MAIL_STOP: ' . i18n("Link to pause the subscription", "cl_newsletter") . '<br />' .
|
||||
'MAIL_GOON: ' . i18n("Link to resume the subscription", "cl_newsletter");
|
||||
$sTagInfoText = '<a href="javascript:fncShowHide(\'idTagInfoText\');"><strong>' . i18n("Tag information", "cl-newsletter") . '</strong></a>' .
|
||||
'<div id="idTagInfoText" style="display: none"><br /><b>' . i18n("Special message tags (will be replaced when sending)", "cl-newsletter") . ':</b><br>' .
|
||||
'MAIL_NAME: ' . i18n("Name of the recipient", "cl-newsletter") . '<br />' .
|
||||
'MAIL_DATE: ' . i18n("Date, when the mail has been sent", "cl-newsletter") . '<br />' .
|
||||
'MAIL_TIME: ' . i18n("Time, when the mail has been sent", "cl-newsletter") . '<br />' .
|
||||
'MAIL_NUMBER: ' . i18n("Number of recipients", "cl-newsletter") . '<br />' .
|
||||
#'MAIL_CHANGE: '.i18n("Link to change the e-mail adress", "cl-newsletter").'<br />'.
|
||||
'MAIL_UNSUBSCRIBE: ' . i18n("Link to unsubscribe", "cl-newsletter") . '<br />' .
|
||||
'MAIL_STOP: ' . i18n("Link to pause the subscription", "cl-newsletter") . '<br />' .
|
||||
'MAIL_GOON: ' . i18n("Link to resume the subscription", "cl-newsletter");
|
||||
|
||||
$sTagInfoHTML = '<a href="javascript:fncShowHide(\'idTagInfoHTML\');"><strong>' . i18n("Tag information", "cl_newsletter") . '</strong></a>' .
|
||||
'<div id="idTagInfoHTML" style="display: none"><br /><b>' . i18n("Special message tags (will be replaced when sending, {..} = optional)", "cl_newsletter") . ":</b><br />" .
|
||||
'[mail name="name" type="text"]{text}MAIL_NAME{text}[/mail]: ' . i18n("Name of the recipient", "cl_newsletter") . "<br />" .
|
||||
'[mail name="date" type="text"]{text}MAIL_DATE{text}[/mail]: ' . i18n("Date, when the mail has been sent", "cl_newsletter") . "<br />" .
|
||||
'[mail name="time" type="text"]{text}MAIL_TIME{text}[/mail]: ' . i18n("Time, when the mail has been sent", "cl_newsletter") . "<br />" .
|
||||
'[mail name="number" type="text"]{text}MAIL_NUMBER{text}[/mail]: ' . i18n("Number of recipients", "cl_newsletter") . "<br />" .
|
||||
#'[mail name="change" type="link" {text="'.i18n("Link text", "cl_newsletter").'"}]{text}MAIL_CHANGE{text}[/mail]: '.i18n("Link to change the e-mail adress", "cl_newsletter")."<br />".
|
||||
'[mail name="unsubscribe" type="link" {text="' . i18n("Link text", "cl_newsletter") . '" }]{text}MAIL_UNSUBSCRIBE{text}[/mail]: ' . i18n("Link to unsubscribe", "cl_newsletter") . "<br />" .
|
||||
'[mail name="stop" type="link" {text="' . i18n("Link text", "cl_newsletter") . '" }]{text}MAIL_STOP{text}[/mail]: ' . i18n("Link to pause the subscription", "cl_newsletter") . "<br />" .
|
||||
'[mail name="goon" type="link" {text="' . i18n("Link text", "cl_newsletter") . '" }]{text}MAIL_GOON{text}[/mail]: ' . i18n("Link to resume the subscription", "cl_newsletter");
|
||||
$sTagInfoHTML = '<a href="javascript:fncShowHide(\'idTagInfoHTML\');"><strong>' . i18n("Tag information", "cl-newsletter") . '</strong></a>' .
|
||||
'<div id="idTagInfoHTML" style="display: none"><br /><b>' . i18n("Special message tags (will be replaced when sending, {..} = optional)", "cl-newsletter") . ":</b><br />" .
|
||||
'[mail name="name" type="text"]{text}MAIL_NAME{text}[/mail]: ' . i18n("Name of the recipient", "cl-newsletter") . "<br />" .
|
||||
'[mail name="date" type="text"]{text}MAIL_DATE{text}[/mail]: ' . i18n("Date, when the mail has been sent", "cl-newsletter") . "<br />" .
|
||||
'[mail name="time" type="text"]{text}MAIL_TIME{text}[/mail]: ' . i18n("Time, when the mail has been sent", "cl-newsletter") . "<br />" .
|
||||
'[mail name="number" type="text"]{text}MAIL_NUMBER{text}[/mail]: ' . i18n("Number of recipients", "cl-newsletter") . "<br />" .
|
||||
#'[mail name="change" type="link" {text="'.i18n("Link text", "cl-newsletter").'"}]{text}MAIL_CHANGE{text}[/mail]: '.i18n("Link to change the e-mail adress", "cl-newsletter")."<br />".
|
||||
'[mail name="unsubscribe" type="link" {text="' . i18n("Link text", "cl-newsletter") . '" }]{text}MAIL_UNSUBSCRIBE{text}[/mail]: ' . i18n("Link to unsubscribe", "cl-newsletter") . "<br />" .
|
||||
'[mail name="stop" type="link" {text="' . i18n("Link text", "cl-newsletter") . '" }]{text}MAIL_STOP{text}[/mail]: ' . i18n("Link to pause the subscription", "cl-newsletter") . "<br />" .
|
||||
'[mail name="goon" type="link" {text="' . i18n("Link text", "cl-newsletter") . '" }]{text}MAIL_GOON{text}[/mail]: ' . i18n("Link to resume the subscription", "cl-newsletter");
|
||||
|
||||
// Mention plugin interface
|
||||
if (getSystemProperty("newsletter", "newsletter-recipients-plugin") == "true") {
|
||||
$sTagInfoText .= "<br /><br /><strong>" . i18n("Additional message tags from recipients plugins:", "cl_newsletter") . "</strong><br />";
|
||||
$sTagInfoHTML .= "<br /><br /><strong>" . i18n("Additional message tags from recipients plugins:", "cl_newsletter") . "</strong><br />";
|
||||
$sTagInfoText .= "<br /><br /><strong>" . i18n("Additional message tags from recipients plugins:", "cl-newsletter") . "</strong><br />";
|
||||
$sTagInfoHTML .= "<br /><br /><strong>" . i18n("Additional message tags from recipients plugins:", "cl-newsletter") . "</strong><br />";
|
||||
|
||||
if (is_array($cfg['plugins']['recipients'])) {
|
||||
foreach ($cfg['plugins']['recipients'] as $plugin) {
|
||||
|
|
@ -182,7 +182,7 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
$oTemplateArticles = new ArticleCollection($aOptions);
|
||||
|
||||
$aItems = array();
|
||||
$aItems[] = array(0, i18n("-- none --", "cl_newsletter"));
|
||||
$aItems[] = array(0, i18n("-- none --", "cl-newsletter"));
|
||||
while ($oArticle = $oTemplateArticles->nextArticle()) {
|
||||
$aItems[] = array($oArticle->get("idart"), $oArticle->get("title"));
|
||||
}
|
||||
|
|
@ -193,21 +193,21 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
unset($oArticles);
|
||||
unset($oTemplateArticles);
|
||||
|
||||
$oForm->add(i18n("HTML Template", "cl_newsletter"), $oSelTemplate->render() . " " . i18n("Note, that changing the template discards the current html message content", "cl_newsletter"));
|
||||
$oForm->add(i18n("HTML Template", "cl-newsletter"), $oSelTemplate->render() . " " . i18n("Note, that changing the template discards the current html message content", "cl-newsletter"));
|
||||
|
||||
if ($iTplIDArt != 0) {
|
||||
$sFrameSrc = $cfgClient[$client]["path"]["htmlpath"] . "front_content.php?changeview=edit&action=con_editart&idart=" . $oNewsletter->get("idart") . "&idcat=" . $oClientLang->getProperty("newsletter", "html_newsletter_idcat") . "&lang=" . $lang . "&contenido=" . $sess->id;
|
||||
$oForm->add(i18n("HTML Message", "cl_newsletter"), '<iframe width="100%" height="600" src="' . $sFrameSrc . '"></iframe><br />' . $sTagInfoHTML);
|
||||
$oForm->add(i18n("HTML Message", "cl-newsletter"), '<iframe width="100%" height="600" src="' . $sFrameSrc . '"></iframe><br />' . $sTagInfoHTML);
|
||||
} else {
|
||||
// Add a real note, that a template has to be specified
|
||||
$notis .= $notification->returnNotification("warning", i18n("Newsletter type has been set to HTML/text, please remember to select an html template", "cl_newsletter")) . "<br />";
|
||||
$notis .= $notification->returnNotification("warning", i18n("Newsletter type has been set to HTML/text, please remember to select an html template", "cl-newsletter")) . "<br />";
|
||||
|
||||
$oForm->add(i18n("HTML Message", "cl_newsletter"), i18n("Please choose a template first", "cl_newsletter"));
|
||||
$oForm->add(i18n("HTML Message", "cl-newsletter"), i18n("Please choose a template first", "cl-newsletter"));
|
||||
}
|
||||
}
|
||||
|
||||
$oTxtMessage = new cHTMLTextarea("txtMessage", $oNewsletter->get("message"), 80, 20);
|
||||
$oForm->add(i18n("Text Message", "cl_newsletter"), $oTxtMessage->render() . "<br />" . $sTagInfoText);
|
||||
$oForm->add(i18n("Text Message", "cl-newsletter"), $oTxtMessage->render() . "<br />" . $sTagInfoText);
|
||||
|
||||
$sExecScript = '
|
||||
<script type="text/javascript">
|
||||
|
|
@ -237,7 +237,7 @@ if ($oNewsletter->virgin == false && $oNewsletter->get("idclient") == $client &&
|
|||
submitForm();
|
||||
} else {
|
||||
// You may loose information, warn!
|
||||
box.confirm("' . i18n("HTML newsletter template changed", "cl_newsletter") . '", "' . i18n("HTML template has been changed. Do you like to save now to apply changes?<br /><br /><b>Note, that existing HTML newsletter content will get lost!</b>", "cl_newsletter") . '", "submitForm()");
|
||||
box.confirm("' . i18n("HTML newsletter template changed", "cl-newsletter") . '", "' . i18n("HTML template has been changed. Do you like to save now to apply changes?<br /><br /><b>Note, that existing HTML newsletter content will get lost!</b>", "cl-newsletter") . '", "submitForm()");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren