By uartur1 on Saturday, 17 August 2024
Replies 10
Likes 0
Views 180
Votes 0
Hi.
We use multilingualism on the website.

We created categories in 2 languages, linked them together, created icalevent.edit_page files in 2 languages.

When editing an event, when switching from one language to another, two categories are displayed in the CATEGORY field, both for one language and the other, marked e.g. medicine and medycyna (pl-PL).

How can I make sure that only categories in English are displayed on the English version of the website, and only categories in that language are displayed on the website in another language?

Regards,
Artur
In JEvents you don't have to use associated multi-language categories so since the event can be in a single category and still be translated

I'll add a config option to strictly limit the category by language for the next release - the config option will be next to the 'allow multi category' events option.

While you are waiting for this change if you replace the file /components/com_jevents/libraries/jeventshtml.php with this version it should do what you need.

Remember to change the config option when you upgrade JEvents
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The category issue seems to have been resolved. Although I can't find the configuration field (enable/disable)... :-)

Where exactly is it? In the global configuration, in the Edit Events tab?

Or maybe the field itself will only be added to the configuration after the next JEvents update?

Artur
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The configuration field isn't there yet. Its in the new release (due tomorrow). Watch out for it once you've upgraded
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you :-)
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.
I updated JEvents. There is a problem with updating JEvents - Categories Module.

I can't find the option to set categories in the configuration. :-) Should it be in the 'EDIT EVENTS' tab?

You wrote that there should be "next to the 'allow multi category' events option." Next to it I have the following tabs:

...
'Standard end time (for the edited event)'
'Enable multi-category events'
'Lock parent category selection'
'Enable Bootstrap 'Chosen' style form enrichment'
...

Artur
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi.
Where exactly is this option I am writing about above?
This is most likely the reason for my numerous problems :-)

Artur
·
1 month ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm sorry - I did the work above on my laptop when I was away from the office and forgot to merge it in to the main development tree when I returned

I'll merge it in now - give me 20 minutes
·
1 month ago
·
0 Likes
·
0 Votes
·
0 Comments
·
This build should resolve the issue - sorry for the confusion
·
1 month ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello.
Thank you. No problem ;-)

I haven't checked thoroughly yet, but I can see that after installing and turning on, only the selected language categories are actually visible.

The problem is when switching the language in the detailed view. An error pops up.

Category introduced during editing: 'medicine' in Polish. The category is related to 'medicine' in English.

Example: https://www.inconferences.com/pl/o/187/xliv-zjazd-polskiego-towarzystwa-ortopedycznego-i-traumatologicznego.html

Artur
·
1 month ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I think this again caused by the fact that the event is only in a polish category - try putting it in both polish and english category
·
1 month ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post