Main menu

Forum


× Help Forum English

[Calendar] Issue with second language

  • robertob
  • Topic Author
  • New Member
  • New Member
More
6 days 12 hours ago #19043 by robertob
[Calendar] Issue with second language was created by robertob
Hi everyone,I’m encountering an issue after transitioning to the new ICagenda calendar module (plugin version 4.0.6) on Joomla, using the Hydrogen frontend style.When browsing the site in a secondary language, the calendar initially displays events correctly in that language. However, once a specific day is selected, the events switch to those from the default (main) language.Additionally, when navigating between months, the calendar appears to revert to the default language entirely:
  • Month and day labels are displayed in the wrong language
  • Events shown belong to the main language instead of the selected one
This behavior suggests that the language context is not being preserved during calendar interactions.Has anyone experienced a similar issue or found a solution?Thanks in advance for your help.

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
3 days 12 hours ago #19044 by Lyr!C
Replied by Lyr!C on topic [Calendar] Issue with second language
Hello,

Is it possible to get an online link, and to get info on your browser, version and OS?

Another user reported a similar issue, but i'm not able to get it on his own website: for me it works (no language switch while navigating the calendar module) but not for him on Firefox windows.

Thank you!

Best regards,
Cyril

Latest version : iCagenda 4.0.6
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

The following user(s) said Thank You: robertob

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

  • robertob
  • Topic Author
  • New Member
  • New Member
More
3 days 7 hours ago - 3 days 7 hours ago #19046 by robertob
Replied by robertob on topic [Calendar] Issue with second language
Hi,

Thanks for the feedback

You can find the website that has the problem here: www.atts.to.it/en/home (bottom of the page)

Keep in mind that Italian is the default language, while en-GB is the secondary one

It does not seem to be an issue related to a specific browser. We can reproduce the problem on Chrome, Edge and Firefox on Windows + Chrome on Android

Details of environment:
  • Joomla up-to-date at 6.1.0 (previously on 6.0.x, same issue)
  • iCagenda 4.0.6 ((previously on 4.0.x, same issue)

We can test changes in a local environment if needed.

Hoping to hear news from you soon,

Roberto
Last edit: 3 days 7 hours ago by robertob. Reason: Missing details about env

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
2 days 12 hours ago #19047 by Lyr!C
Replied by Lyr!C on topic [Calendar] Issue with second language
Hello Roberto,

So, it seems current language of the visitor is lost in the Ajax requests. (maybe an issue in the way Joomla is caching language files...)

Here a version of the module where the current lang tag is stored on page first loading, and then pass to the Ajax requests to be able to load the language files in the wanted language.

File Attachment:

File Name: mod_icagen...ndar.zip
File Size:33 KB


If you can install it and check if it solves the issue? (i'm curious about the result, as it's a random one...)

Thank you for your help!

Best regards,
Cyril
 

Latest version : iCagenda 4.0.6
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Attachments:
The following user(s) said Thank You: robertob

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

  • robertob
  • Topic Author
  • New Member
  • New Member
More
1 day 10 hours ago #19049 by robertob
Replied by robertob on topic [Calendar] Issue with second language
Hi Cyril,

Thanks for the update.

Navigation now preserves language correctly to render months and days.

Unfortunately, some issues are still present:

1) Click on a day with an event in the current month -> UI has the correct language, but the Italian version is shown, not the English one
2) Starting from the current month, navigate one month forward -> Italian events are shown, not English ones

I can give you more details if needed

Thanks for your time

Roberto

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
1 day 10 hours ago - 1 day 10 hours ago #19050 by Lyr!C
Replied by Lyr!C on topic [Calendar] Issue with second language
Hello Roberto,
I've done a few other changes to fix this weird issue with Ajax and current language.

One pro user had it too on a site where i don't have the issue, and the strange thing is that this user has the issue only on one computer (other computer with same browser and same site does not have it).

On my side, after multiple test, i was able to get this issue only on 1 of 5 test sites where i've tried to reproduce it.

So, mainly issue comes from language cache system of Joomla or something related, and current language can't be get in a Ajax request in some cases (mysterious issue).

Here a new version, full package, as other changes added in iCagenda library to improve the correct detection of the current language by passing the lang to the Ajax data directly. So, many changes here and there.

Could you install this dev version, and check if all is ok, and if any issue left, to give me more details (for example, does events have language set on it/en or on all "*" and what is the settings in the module for the "Routing" options: " Parent List of Events " and " Use Menu Filters " options.)

 

File Attachment:

File Name: icagenda-4...-dev.zip
File Size:2,151 KB


Thank you!
Cyril

Latest version : iCagenda 4.0.6
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Attachments:
Last edit: 1 day 10 hours ago by Lyr!C.

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

  • robertob
  • Topic Author
  • New Member
  • New Member
More
10 hours 35 minutes ago #19051 by robertob
Replied by robertob on topic [Calendar] Issue with second language
Dear Cyril,

Thanks for the fast update. I installed and tested on different browsers and devices, and now everything seems fine

I have asked other users to check whether they still encounter the problem, and I will notify you in case.

Will these changes be included in the next release, so I can update it without any further issues?

Thanks for all the support,

Roberto

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

Moderators: Lyr!C
Time to create page: 0.123 seconds

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new