SergeyMosin / Appointments

Nextcloud Appointments App
GNU Affero General Public License v3.0
160 stars 48 forks source link

Appointment confirmed mail not translated #498

Closed EkkiBrue closed 5 months ago

EkkiBrue commented 5 months ago

Hi Sergey.

Since updating to 2.0 the confimation mail is always in english. Now I´m on 2.07 and the bug is still there. NC is set to german - so is the OS / Browser

Text in mail is like:

Appointment is confirmed

MYMAILTEXT

Thank you

To cancel your appointment please click: Cancel Appointment 

Interestingly all other mails seem to be translated in german (e.g. status changed, action required etc.)

Just found that the main language for cron / email is set to "en". Can I change this or is this completely unrelated to the topic? It´s the only place where I could change any language settings though...

image

SergeyMosin commented 5 months ago

I can not replicate this for confirmation emails (see images below.)

Just found that the main language for cron / email is set to "en". Can I change this or is this completely unrelated to the topic? It´s the only place where I could change any language settings though...

This only applies to "Reminder" emails because they are triggered by a system cron job. The default_language property is set by admin in NC config.php ( more info: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#default-language ) . There are plans to add a workaround for this, but it probably will be a while until it is implemented.

image

image

image

EkkiBrue commented 5 months ago

Strange. Now the phenomenon does not occur anymore and the problem seems to be gone since the release of v2.10.

Thanks ;)