Skip to Content Skip to Menu

Joomfish Translation and CBAutoActions Plugin

  • jr999
  • jr999
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
12 years 6 months ago #198332 by jr999
I have:
Joomla 1.5.25
CB 1.7
CBAutoActions Plugin 2.3.0
Joomfish 2.1.7

We have a site translated into several languages. All translations are working great. The only kink is that if a user switches language and then logs in. The language is automatically reset to english (the default) after login.

This is definitely being caused by the CBAutoActions plugin because if I disable it the language is correctly maintained.

We have several conditional redirects set up in the AutoAction plugin that we need for segmenting users based on some of their profile settings. I redirected the onAfterLogin event to a script and noted that the JFactory variables for language are all set to the default (en-GB).

As another test I actually hardcoded the CBAuoAction redirect to use &lang=it in the query string and still my target script reported that the Joomla application thought the language was english.

It appears that the CBAutoAction redirect is occuring before joomfish has a chance to set the site language. Is there some order of plugin operations either in CB or (more likely) in Joomla I could change to fix this?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
12 years 6 months ago #198387 by krileon
CB Auto Actions uses CB Triggers. None of which are initiated before the page has initiated/rendered. So by time any CB trigger is made Joomfish would've already been completed (assuming it's using an after initialize or render Joomla trigger? No idea, as don't know how Joomfish works).

The redirect action is just a redirect. It does nothing more then that. In-fact it uses Joomla API indirectly (routes to CB and CB routes to the appropriate CMS) so it's performing completely valid redirects. You'll need to append the lang variable to the redirect URL for it to contain the Joomfish language to use I would assume. Perhaps contacting Joomfish for proper URL structuring for redirect would be most appropriate.

Your install also appears to be out of date. Please update to CB 1.8 followed by CB Auto Actions 2.4.2.


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