Skip to Content Skip to Menu

๐ŸŽƒ Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Change and translate the label "Frontend Language" in the registration form.

  • axaler
  • axaler
  • OFFLINE
  • Posts: 31
  • Thanks: 7
  • Karma: 2
11 years 1 month ago #234196 by axaler
Hi,
May I know how to solve the problem with redirecting the user to his profile in the selected language as Frontend Language?
The cb-login module is translated with Joomfish to redirect the user after login to the profile in the corresponding languages โ€‹โ€‹(see image).
The users choose the language from the "Frontend language" (required) and this is saved in their profile.
But the user who has chosen, for example, the French language, when he makes the login, if the login page has the url in English, he is not redirected to the profile in French, but always in the language active in the url at login time, ie in English.
May I know how to solve?
Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234211 by krileon
It's a bug with the language userparams not taking affect. If you want to redirect to a custom substitution supported URL you can do that with CB Auto Actions and its Redirect action on the after login trigger. Your redirect URLs need to also be non-SEF. Example as follows using CB Auto Actions.

index.php?option=com_comprofiler&lang=fr

To get their language you'd use the below substitution, but I doubt it's going to work as it uses the same API as login normally would which appears bugged.

[cb:config param="lang_tag" /]

The problem with the above is it gives results like "en-GB" instead of just "en".

So with all that said I don't have a workaround for you, sorry. I have yet to investigate the bug and fix for next CB release.


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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum