We've successfully integrated a code to allow Weglot to translate the booking system and its dynamic strings.
However, we also want to ensure that the email notifications sent upon completion of the booking form are in the user's selected language. Could you assist us with setting this up?
We tried the following code to make this work, where the code identifies the language in the url (/no/ for norwegian). But we have not had success so far:
add_filter('amelia_before_notification_added_filter', 'change_amelia_notification_language', 10, 1); function change_amelia_notification_language( $notification ) { if ( strpos( $_SERVER['REQUEST_URI'], '/no/' ) !== false ) { // Set the notification language to Norwegian $notification['language'] = 'nb_NO'; // } return $notification; }
We are not familiar with Weglot and we can not guarantee or be responsible if something is not working with this plugin since we do not have any official integration with this. Also for any customize work we can not be responsible if something goes wrong since you have implemented custom solution that are not built in Amelia.
We can only explain how Amelia works in notification language regard for any customization of the plugin we can not say or know.
In version 5.6 , we added a new option, you can now set/change Customer Notification Language :
In the Amelia Customers tab, in the "Edit Customer" modal you will find the Notification Language setting.
This is the language in which the customer will receive notifications for all bookings going forward,
( made from the back-end/front-end/employee panel).
It is preselected if the customer has booked on a page in the language available in Amelia notifications,
or it can be set here.
When the notification language has been saved for a customer,
then later on, even if they visit another page that has a different language locale,
this customer will still keep getting the Notifications in the same language which is saved here,
unless an Admin changes it for them on the back end.
-
Hope this explains and that it helps.
Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
We've successfully integrated a code to allow Weglot to translate the booking system and its dynamic strings.
However, we also want to ensure that the email notifications sent upon completion of the booking form are in the user's selected language. Could you assist us with setting this up?
We tried the following code to make this work, where the code identifies the language in the url (/no/ for norwegian). But we have not had success so far:
add_filter('amelia_before_notification_added_filter', 'change_amelia_notification_language', 10, 1);
function change_amelia_notification_language( $notification ) {
if ( strpos( $_SERVER['REQUEST_URI'], '/no/' ) !== false ) {
// Set the notification language to Norwegian
$notification['language'] = 'nb_NO'; //
}
return $notification;
}
Hello there,
Thank you for reaching out to us.
We are not familiar with Weglot and we can not guarantee or be responsible if something is not working with this plugin since we do not have any official integration with this. Also for any customize work we can not be responsible if something goes wrong since you have implemented custom solution that are not built in Amelia.
We can only explain how Amelia works in notification language regard for any customization of the plugin we can not say or know.
In version 5.6 , we added a new option, you can now set/change Customer Notification Language :
In the Amelia Customers tab, in the "Edit Customer" modal you will find the Notification Language setting.
This is the language in which the customer will receive notifications for all bookings going forward,
( made from the back-end/front-end/employee panel).
It is preselected if the customer has booked on a page in the language available in Amelia notifications,
or it can be set here.
When the notification language has been saved for a customer,
then later on, even if they visit another page that has a different language locale,
this customer will still keep getting the Notifications in the same language which is saved here,
unless an Admin changes it for them on the back end.
-
Hope this explains and that it helps.
Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
Kind Regards,
Marko Davidovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you for the quick reply.
I am wondering how i can make Amelia recognize that a page is in a different language, without using the multilangual plugins like wpml or polylang.
I am able to get translations added in the customize section of amelia, to appear in the url of amelia containing /no/. But not the notifications.
Example:
website.com/booking/ - for standard language
website.com/no/booking/ - for norwegian bokmål language
This would also solve the Weglot issue.
Hello again,
You need to set locale page language. Amelia follows the language that is set for that page and then it is automatically translated to that language.
We wish you all the best and hope you have a wonderful day ahead.
Kind Regards,
Marko Davidovic
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables