View Issue Details

IDProjectCategoryView StatusLast Update
0006405phpList 3 applicationInternationalization (l18n)public13-02-19 12:38
Reporterhakan 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionFuture developments 
Target Version2.11.11Fixed in Version2.11.11 
Summary0006405: Message users receive when they unsubscribe is not translateable
DescriptionThe message "Message users receive when they unsubscribe" is only available in
admin/defaultconfig.inc in "unsubscribemessage".

There is no way to provide a translated version of "unsubscribemessage".

Regards, Hakan
TagsNo tags attached.

Relationships

related to 0002705 closed PHPList v2.11 release 
related to 0016594 new translate messages sent by the system 
related to 0012214 new Always English messages on Confirmation page 
child of 0006461 new full multilingual support 

Activities

michiel

17-05-06 04:26

manager   ~0013740

you can still add your translated version in the global config or the config for a subscribe page, but yes, it would be nice to make this translateable.

hakan

17-05-06 05:53

reporter   ~0013741

True.

Sorry, that I did not explained my issue. I am currently setting up a multi-language site, starting with German and English.

In this stage, I can run English or German but not English AND German. "unsubscribemessage" can have only one value.

Regards, Hakan

michiel

17-05-06 12:17

manager   ~0013744

ah, yes but that's an entirely different issue. It would be really cool to have the frontend allow a language choice like the backend, and have this work across messages that are sent out.

17-05-06 22:43

 

spageedit.patch (4,058 bytes)
--- phplist/public_html/lists/admin/spageedit.php	2005-11-03 19:32:47.000000000 +0100
+++ html/lists/admin/spageedit.php	2006-05-17 23:21:13.000000000 +0200
@@ -42,7 +42,7 @@
       $tables["subscribepage_data"],$item,$id,$_POST[$item]));
   }
 
-  foreach (array("subscribesubject","subscribemessage","confirmationsubject","confirmationmessage") as $item) {
+  foreach (array("subscribesubject","subscribemessage","confirmationsubject","confirmationmessage","unsubscribesubject", "unsubscribemessage","updatesubject", "updatemessage") as $item) {
     SaveConfig("$item:$id",stripslashes($_POST[$item]),0);
   }
 
@@ -116,6 +116,10 @@
   printf('<input type=hidden name="id" value="%d">',$id);
   $data["subscribemessage"] = getConfig("subscribemessage:$id");
   $data["subscribesubject"] = getConfig("subscribesubject:$id");
+  $data["unsubscribemessage"] = getConfig("unsubscribemessage:$id");
+  $data["unsubscribesubject"] = getConfig("unsubscribesubject:$id");
+  $data["updatemessage"] = getConfig("updatemessage:$id");
+  $data["updatesubject"] = getConfig("updatesubject:$id");
   $data["confirmationmessage"] = getConfig("confirmationmessage:$id");
   $data["confirmationsubject"] = getConfig("confirmationsubject:$id");
 } else {
@@ -127,6 +131,10 @@
   $data["thankyoupage"] = '<h3>'.$GLOBALS["strThanks"].'</h3>'."\n". $GLOBALS["strEmailConfirmation"];
   $data["subscribemessage"] = getConfig("subscribemessage");
   $data["subscribesubject"] = getConfig("subscribesubject");
+  $data["unsubscribemessage"] = getConfig("unsubscribemessage");
+  $data["unsubscribesubject"] = getConfig("unsubscribesubject");
+  $data["updatemessage"] = getConfig("updatemessage");
+  $data["updatesubject"] = getConfig("updatesubject");
   $data["confirmationmessage"] = getConfig("confirmationmessage");
   $data["confirmationsubject"] = getConfig("confirmationsubject");
   $data["htmlchoice"] = "checkforhtml";
@@ -201,6 +209,7 @@
 printf('<tr><td valign=top>%s</td><td><textarea name=subscribemessage cols=60 rows=10 wrap=virtual>%s</textarea></td></tr>',
   $GLOBALS['I18N']->get('Message'),
   htmlspecialchars(stripslashes($data["subscribemessage"])));
+
 print '<tr><td colspan=2><h1>'.$GLOBALS['I18N']->get('Message they receive when they confirm their subscription').'</h1></td></tr>';
 printf('<tr><td valign=top>%s</td><td><input type=text name=confirmationsubject value="%s" size=60></td></tr>',
   $GLOBALS['I18N']->get('Subject'),
@@ -208,6 +217,23 @@
 printf('<tr><td valign=top>%s</td><td><textarea name=confirmationmessage cols=60 rows=10 wrap=virtual>%s</textarea></td></tr>',
   $GLOBALS['I18N']->get('Message'),
   htmlspecialchars(stripslashes($data["confirmationmessage"])));
+
+print '<tr><td colspan=2><h1>'.$GLOBALS['I18N']->get('Subject of the message users receive when they have changed their details').'</h1></td></tr>';
+printf('<tr><td valign=top>%s</td><td><input type=text name=updatesubject value="%s" size=60></td></tr>',
+  $GLOBALS['I18N']->get('Subject'),
+  htmlspecialchars(stripslashes($data["updatesubject"])));
+printf('<tr><td valign=top>%s</td><td><textarea name=updatemessage cols=60 rows=10 wrap=virtual>%s</textarea></td></tr>',
+  $GLOBALS['I18N']->get('Message'),
+  htmlspecialchars(stripslashes($data["updatemessage"])));
+
+print '<tr><td colspan=2><h1>'.$GLOBALS['I18N']->get('Message they receive when they unsubscribe').'</h1></td></tr>';
+printf('<tr><td valign=top>%s</td><td><input type=text name=unsubscribesubject value="%s" size=60></td></tr>',
+  $GLOBALS['I18N']->get('Subject'),
+  htmlspecialchars(stripslashes($data["unsubscribesubject"])));
+printf('<tr><td valign=top>%s</td><td><textarea name=unsubscribemessage cols=60 rows=10 wrap=virtual>%s</textarea></td></tr>',
+  $GLOBALS['I18N']->get('Message'),
+  htmlspecialchars(stripslashes($data["unsubscribemessage"])));
+
 print '<tr><td colspan=2><h1>'.$GLOBALS['I18N']->get('Select the attributes to use').'</h1></td></tr><tr><td colspan=2>';
   $req = Sql_Query(sprintf('select * from %s order by listorder',
     $tables["attribute"]));
spageedit.patch (4,058 bytes)

hakan

17-05-06 22:45

reporter   ~0013769

Hi,

I added the option for "unsubscribesubject"/"unsubscribemessage" and "updatesubject"/"updatemessage" into admin/spageedit.php.

Please see attached file for the patch. I hope it fits.

Regards, Hakan

hakan

11-02-09 19:48

reporter   ~0050459

I provided a patch more than two years ago. Is this issue so hard to fix?