Someone knows, how to do the self subscription form multi-lingual?
On Github exists already a feature request from JonBendtson; but nothing goes on. Foundation, Associations- Member-Module is always in a secondary queue.
JonBendtson wrote:
Feature Request
Currently the public membership form is in the same language as Dolibarr, and it would be nice if one could change the language to something else in the setup of the membership module - or even better that the public user could self select which language they want to see the membership form in.
Use case
Those administrating dolibarr are probably locals, but members might not all be locals, so language can be different.
Suggested implementation
That visitors to the membership form can self select the language, secondary that the configuration of the membership module can select a different language than the one which dolibarr uses.
Suggested steps
Some ideas or already a solution before I change the file new.php by my self???
I think you can achieve this by developing a custom module. Give an option from that custom module’s setup area, use that module’s lang file, and use that module’s lang file in the page where you actually want by using a custom hook.
Hi saikatkoley,
Thank you for your help.
Yes that is an idea.
In the meantime I solved it in a easy way. Because the link to the Self Subscription website is needed anyway from somewhere,I made now an email template in different languages and links from our Portal and there I hang only the preferred language from requestor on, like: /public/new.php?lang=de_DE
That works now fine with all translated extrafields.
Greetings,Pete
New Solution. Much better and easy without coding:
Login as admin:
Set in Genaral -settings the GUI as “Language Browser Detection” and the internal users, set user-GUI -settings to the language you need.
Thats all.