flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
185 stars 57 forks source link

Missing translation of subject in email message for new comment #149

Closed Fraenkiman closed 1 year ago

Fraenkiman commented 2 years ago

Hello, everyone,

The subject line of the e-mail for a new comment is not translated.

Here I recommend changing line 225 in the comments.php file as follows:

@utils_mail($from_mail, "{$lang ['comments'] ['newcomment']} {$fp_config ['general'] ['title']}", $mail);

Then the individual language files (lang.comments.php) should be adjusted accordingly. Insert the translation from line 18:

en-us $lang ['comments'] ['newcomment'] = 'New comment on';

de-de $lang ['comments'] ['newcomment'] = 'Neuer Kommentar auf';

A translation for other languages ​​still has to be done. As an interim solution, the English translation can be used in the other language files.

Best Regards Frank

Fraenkiman commented 1 year ago

Solved with fc9bcf4