Home › Forums › Calendar Products › Events Calendar PRO › Slug issue when switching between list and month.
- This topic has 7 replies, 2 voices, and was last updated 8 years, 9 months ago by
Ulf.
-
AuthorPosts
-
July 5, 2017 at 8:02 am #1316277
Ulf
ParticipantHi,
I am experience a strange problem when switching between list and month view using the tribe top bar.
The slug gets translated (to local language) instead of using events/month/ and events/list/ .
month and list slug is working correctly but the translated ones is not.I am not using WPML.
Thanks,
July 6, 2017 at 8:34 am #1316821Ulf
ParticipantCould it be connected to the translation files that comes with the event calendar?
It sometimes also happens when I just reload the page.
If I am located at /events/month/ it sometimes redirects to events/månad/ which is the swedish translation.I also noticed language problems when displaying the month headers in the list view.
First time a load the list view they are displayed in swedish if I then select a date and the page reloads they are displayed in english.As I said previously I am only interested in using one language. Is there a way to remove all other lang files then the swedish one?
-
This reply was modified 8 years, 9 months ago by
Ulf.
July 6, 2017 at 8:58 am #1316827Ulf
ParticipantAfter some more investigation I noticed that the slug changes(from english to swedish) as soon as either select a new date or apply any filter. That’s why I thought that it was happening on reload but the url had already changed and when hitting refresh it tried to load the swedish slug which does not work.
July 6, 2017 at 9:32 pm #1317253Geoff B.
MemberGood evening Ulf and welcome back!
Thank you for reaching out to us.
We are sorry to hear about the language issues you are experiencing.
I would love to help you with this topic.As a first troubleshooting step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?
https://theeventscalendar.com/knowledgebase/sharing-sys-info/
Once I see how you are setup, I will be able to know more.
In the meantime, I would recommend re-saving your permalinks and temporarily clearing and deactivating all caching plugins you might have.
Hang in there!
Geoff B.
July 7, 2017 at 2:30 am #1317294July 7, 2017 at 11:19 pm #1317795Geoff B.
MemberGood evening Ulf,
Thank you for writing back and for the info.
As you suggested, based on your specific issue, you might want to make sure that the slugs for the different views do not get translated (month, list, photo, map, day, week, all).I highly recommend reading the 3 following articles on translation:
- https://theeventscalendar.com/knowledgebase/translating-the-events-calendar/
- https://theeventscalendar.com/knowledgebase/how-to-override-plugin-language-files/
- https://theeventscalendar.com/knowledgebase/incomplete-translations/
That should enable you to adjust your language files to prevent slug translation.
Make sure you update the language files for both the Events Calendar and the Events Calendar Pro.As I said previously I am only interested in using one language. Is there a way to remove all other lang files then the swedish one?
Even if you removed all other language files, the default will always revert back to english.
One way around that would be to create fake en_US.po and en_US.mo language files that are in reality copies of the swedish language files.
That would “trick the system”.
Let me know if that helps.
Have a great day!
Geoff B.
July 29, 2017 at 9:35 am #1327936Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
This reply was modified 8 years, 9 months ago by
-
AuthorPosts
- The topic ‘Slug issue when switching between list and month.’ is closed to new replies.
