I think there is a bug in phplist-3.6.10:
I have a problem with certain translations: they do not work. I have investigated an example: The submit button in the subscribe-site (see image).
I have tried to translate the text on the button:
âSubcribe to the selected newslettersâ
After many failed attempts, I eventually substituted the excerpt with a Danish translation âTilmeld til nyhedsbreveâ in ALL phplist-files, even english.inc. Then, this command did not return anything:
grep -RI âSubscribe to the selected newslettersâ .
Whereas
grep -RI âstrSubmitâ .
returns the following relevant lines:
./texts/english.inc:$strSubmit = âTilmeld til nyhedsbreveâ;
./texts/english-usa.inc:$strSubmit = âTilmeld til nyhedsbreveâ;
./texts/usa.inc:$strSubmit = âTilmeld til nyhedsbreveâ;
./texts/danish.inc:$strSubmit = âTilmeld til nyhedsbrev(e)â;
./admin/defaultFrontendTexts.php:$strSubmit = âTilmeld til nyhedsbreveâ;
./admin/spageedit.php:$data[âbuttonâ] = $strSubmit;
./index.php: $GLOBALS[âpagedataâ][âbuttonâ] = $GLOBALS[âstrSubmitâ];
./index.php: $GLOBALS[âpagedataâ][âbuttonâ] = $GLOBALS[âstrSubmitâ];
Still the button had the English text.
I have even tried to hardcoded a Danish translation into admin/spageedit.php:
#$data[âbuttonâ] = $strSubmit;
$data[âbuttonâ] = âTilmeld til nyhedsbreveâ;
Still the button had the English text.
I found out where the English excerpt came from as I
mysqldump phplist | grep -i âSubscribe to the selectedâ
In mariadb I could then solve the problem like this:
update phplist_subscribepage_data set data = âTilmeldâ where name = âbuttonâ;
and the Danish translation was displayed on the subscribe button.
It seems that the translations and defaulttext files and even the hardcoded translation are overruled by the database content in subscribepage. This is of course correct, but there is no entry in admin-GUI config > configure where one may change the text on the subscribe button.
But, this is not the only problem. There is, indeed, an admin-GUI entry where you may change âText to display when subscription with an AJAX request was successfulâ. I have translated the text. But, still the English text was shown on the subscription confirmation page. And in the database table subscribepage, I found:
ajax_subscribeconfirmation |
Thanks, you have been added to our newsletter
You will receive an email to confirm your subscription. Please click the link in the email to confirm
Hence I updated the database table subscribepage for name: ajax_subscribeconfirmation, but it did not change the subscription confirmation message. But, when I updated the table for the name: thankyoupage, I got a translated subscription confirmation page. So, here is something wrong as well.
But, most of the other translations via the admin-GUI config seems to work. I donât know for sure, since I have not yet tested them all.