View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006405 | phpList 3 application | Internationalization (l18n) | public | 16-05-06 23:43 | 13-02-19 12:38 |
Reporter | hakan | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Future developments | ||||
Target Version | 2.11.11 | Fixed in Version | 2.11.11 | ||
Summary | 0006405: Message users receive when they unsubscribe is not translateable | ||||
Description | The 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 | ||||
Tags | No tags attached. | ||||
|
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. |
|
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 |
|
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 23: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"])); |
|
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 |
|
I provided a patch more than two years ago. Is this issue so hard to fix? |