Multi-language registration email

12 years 4 months ago #185873 by adop
Multi-language registration email was created by adop
J 1.7.3 CB 1.7.1
I would like to have a fully multi-language email in the registration process, including terms of use, sender's name and email.
When I check the code among other strings that are completly translated I have for example these lines:

in administrator\components\com_profiler\ue_config.php:
$ueConfig='_UE_TERMS_URL';

in default_language.php:
DEFINE('_UE_TERMS_URL','terms-of-use.html');

in italian.php:
DEFINE('_UE_TERMS_URL','termini-di-utilizzo.html');

However this substitution does not work like all the others. I get <a target="_BLANK" href="http://www.domain_name.com/_UE_TERMS_URL"> Termini e Condizioni.

So the question is where and how I should change the code in order to have also these elements of the email translated.

Thankx A

J2.5.3 CB 1.8.0 GJ 2.5.1 Kunena 1.7.2

Please Log in to join the conversation.

12 years 4 months ago #185939 by krileon
Replied by krileon on topic Re: Multi-language registration email
Don't use SEF links in a URL and no that language string will not work. When supplying your terms and conditions URL from CB > Configuration > Registration it should be a non-SEF URL such as below.

index.php?option=com_content&view=article&id=ARTICLE_ID&catid=CATEGORY_ID&Itemid=ITEMID

With the above replace ARTICLE_ID with the actual ID of the article, CATEGORY_ID with the actual ID of the articles category, and ITEMID with the Itemid of the articles page.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

12 years 4 months ago #186024 by adop
Replied by adop on topic Re: Multi-language registration email
I understand the non-SEF url point but if I set a string like

index.php?option=com_content&view=article&id=47&Itemid=141

in CB > Configuration > Registration I will get displayed only art 47 which is say in ES. How do I get the same thing for terms in EN or IT if user is from another country?

Also how do I change sender's name (reg_email_name in $ueConfig) and address (reg_email_from in $ueConfig) according to language?

Thanks


Alfio

J2.5.3 CB 1.8.0 GJ 2.5.1 Kunena 1.7.2

Please Log in to join the conversation.

12 years 4 months ago #186036 by krileon
Replied by krileon on topic Re: Multi-language registration email
I think Itemid helps determine language, maybe exclude it and it'll figure it out automatically? I don't think what you're trying to do is possible, sorry. You also can not change the from address and name based off language.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn