Skip to content

Email notifications are not localized and are always sent in English #24

Description

@lgerard19

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Configure the user account, the resource account and the admin account with the same non-English language (French in my case).
  2. Create a room booking.
  3. Wait for the booking confirmation email.

Expected behaviour

The email subject and body should be sent in the recipient's configured language (French in my case), just like the RoomVox user interface.

Email notifications should use the existing Nextcloud localization (IL10N) system.

Actual behaviour

The booking confirmation email is always sent in English.

Example:

Subject

Booking confirmed: Room A — Test

Body

Your booking has been confirmed.

Room: Room A
Event: Test
...

Additional investigation

  • RoomVox version: 1.2.1
  • Nextcloud version: 33.0.4
  • PHP version: 8.4.21
  • All involved accounts (user, resource and admin) are configured in French.
  • The RoomVox web interface is correctly translated into French.
  • The project already contains translation files such as:
    • l10n/fr.json
    • l10n/de.json
    • l10n/nl.json

However, the email texts are hardcoded in:

lib/Service/MailService.php

For example:

return "Your booking has been confirmed.\n\n";

It looks like email notifications are not using the existing Nextcloud localization (IL10N) system.

Server configuration

Web server: Apache 2.4.67 (Debian)

Database: MariaDB

PHP version: 8.4.21

Nextcloud version: 33.0.4

RoomVox version: 1.2.1

Deployment: Docker

Browser

Not applicable (server-side email generation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejectionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions