ltb-project / service-desk

Application for support team who need to check and reset user passwords
https://service-desk.readthedocs.io/
GNU General Public License v3.0
49 stars 19 forks source link

Append an option to dynamically change messages #120

Closed cmaudoux closed 1 month ago

cmaudoux commented 1 month ago

Hello,

We are using ServiceDesk for managing different LDAP for different SSO platforms. For this purpose we employed multi-tenancy feature and an HTTP header to load different conf files.

Lang files can be customized depending on lang type FR, EN and so on...

It could be nice to dynamically adapt all SD messages by using an option. This option could be set in conf files or by using an HTTP.

By example:

" Hello {name}\n\n Your {custom_var} password has been changed blablabla"

Cheers

coudot commented 1 month ago

As lang file are php, you can define a var in your conf file and use it in your lang file:


$messages['xxx'] = "Hello {login}\n\n Your $custom_var password has been changed blablabla";
cmaudoux commented 1 month ago

Thanks!

This feature could be documented :wink: