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
- Configure the user account, the resource account and the admin account with the same non-English language (French in my case).
- Create a room booking.
- 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).
How to use GitHub
Steps to reproduce
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
Body
Additional investigation
l10n/fr.jsonl10n/de.jsonl10n/nl.jsonHowever, the email texts are hardcoded in:
lib/Service/MailService.phpFor example:
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).