multilanguage in confirmation & approval emails?

17 years 9 months ago #17125 by smeallum
Thanks...

I definetely need this...so i'll have to mod it myself...i'll be fine. Could you tell where exactly is the email message prepared?. Wherever the subject and body are looked up in the database, i will make it so it looks to the corresponding language define instead.

Thanks,
NiCo

Please Log in to join the conversation.

17 years 5 months ago #25033 by robert101083
Replied by robert101083 on topic Re:multilanguage in confirmation & approval emails
Hello NiCo,

Are you making any progress on this. Or can i better do it myself?

Greetz,
Robert

The Netherlands

Please Log in to join the conversation.

17 years 5 months ago #25051 by smeallum
Hi Robert...

I made it work, with minimal changes.

The only turnoff with my workaround is that you will lose the ability to modify the CB configuration from the backend.

You have to put the language logic in the administrator/components/com_comprofiler/ue_config.php in this manner(i have 2 languages so i used if...else. If you have more than 2 languages you can use switch())

[code:1]
if (trim($mosConfig_lang) == 'spanish'){

$ueConfig=' Tu Solicitud está pendiente de confirmación';

$ueConfig='Hola [NAME],

Gracias por querer formar.....etc...etc...

}else{

$ueConfig=' Your Request is pending confirmation';

$ueConfig='Hello [NAME],

Thank you for wanting to be part....etc...etc....
}
[/code:1]
and do the same for the welcome email.

I recommend that you decide first how you are going to have your CB configured and use the backend to make changes, and at the end you manually put the logic i explained to you, then change the permissions of the ue_config.php file so you don´t accidentaly overwrite it from the backend and that´s it.
As i say, you won´t be able to make config settings after this from the backend cause it overwrites all the contents of the file.

For me it´s ok, hope it solves your needs too ;-)
NiCo

Please Log in to join the conversation.

17 years 5 months ago #25175 by robert101083
Replied by robert101083 on topic Re:multilanguage in confirmation & approval emails
Hello NiCo,

Thanks 4 your reply.

I have tried something else:

Edit your language files and add new lines for the email. Then use comments like _UE_EMAIL_INTRO in the input field and text areas at the Configuration page of CB.

Now you can still use your configuration page. :woohoo:

Greets,
Robert

Please Log in to join the conversation.

17 years 5 months ago #25350 by robert101083
Replied by robert101083 on topic Re:multilanguage in confirmation & approval emails
Hey NiCo,

Unfortunately my solution doesn't work for the email send by the administrator when approving the account. The language is always english.

Does your solution solves this problem?

Greets,

Robert

Please Log in to join the conversation.

17 years 3 months ago #28933 by Oliver23
Hi

I need the same thing too. Send my registration emails in different languages.

What is the best way to do that?

Thanks an regards - Oliver

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.530 seconds

Facebook Twitter LinkedIn