-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with the translation of the "event" part of the slug #722
Comments
For now, I solved it temporarily on my friend's site by changing in the gatherpress-de_DE.po and .mo to: #: includes/core/classes/class-event-setup.php:141 instead of "veranstaltung" maybe good to have some input from @carstingaxion (when you are back from holidays :D ) |
@patriciabt cool, let's chat about this in Friday's huddle and put an action item together. Just to check, did you try re-saving permalinks on the site? That can cause unexpected issues if the permalinks haven't been updated and usually best first step with issues like this. Thx! |
This is related (#628 (comment)) to the missing Let's see if I can fix this. |
... won't be enough, because GatherPress might have to change the logic here. Instead of using the users language, the language of the event slug should be dictated by the sites default language! For all things going further, a site owner might have to use a dedicated multilingual plugin. |
same issue on our demo site now |
Should we flush rewrite rules when site language is changed? |
resaving the permalinks doesn't solve this. Also, in my opinion it's not a good idea to have a slug in the translation strings, because 1. if the site changes, the url to event changes which is not a good idea and 2. people might want to give another name than "event", see my last paragraph above in the first text in this issue and the bbPress example. I don't think "the language of the event slug should be dictated by the sites default language" as you say @carstingaxion I think the slug should be defined by the organizers |
Ok, got it. So maybe this is a setting in GatherPress then. We should do the same for venue, topics, etc as well. |
hmmm I feel the "decisions, not options" is in the way here :D |
This comment has been minimized.
This comment has been minimized.
Hello Team! |
Hello and thank you for your kind words @enrico-sorcinelli !
You are right and we agree. We came to that conclusion also and are looking forward to fix this.
Another valid reason to not do it, like it is. |
@mauteri I can imagine, we split this into two parts.
|
@patriciabt , @enrico-sorcinelli , @hagege We have a fix for the rewrite base issue, we all encountered. Please have a look at the the Playground Preview link of PR #812 to test this instantly. |
Describe the bug
I saw a strange behaviour on a German site.
When I'm logged in and my profile is in English, the event link has "event" in the slug, before the url slug
When I'm logged out, and the site is set to German, the slug becomes "veranstaltung", and on that site, it lead to a 404
This was seen on a standalone site https://tuchlaubenkonzerte.ch/ (now set to English for their visitors to be able to see the events)
On this site, it was first installed with GP 0.27.0 some months ago, and it worked, and now I updated to 0.29.3 and used the Alpha plugin "Fix GatherPress".
I first saw the same issue on our Tests/Demo site (first installed with GP 0.29.2, then upgraded to GP 0.29.3)
in the German group
https://demo.gatherpress.org/sudsauerland/veranstaltung/ki-ai-rechtliche-aspekte-und-praktische-beispiele-beim-einsatz-in-wordpress/
But strangely, it now works, (tried as logged-out), so I'm not even sure how to reproduce
In French, it works with "évènements" in the URL, and if I manually type "events" it redirects well to "évènements" but it creates that encoded URL that is not nice to share (I should set to evenements in the translations, without accents)
Waiting for Spanish groups to test, and see how it will work with "eventos".
In my opinion, it would be better to have a setting under Permalinks (like the categories and tags) or under GatherPress settings, to be able to set a user-defined word for that slug, and also not to have different URLs depending on the language for a given event. In the current way, the event link would be different if the site admin changes the language. And we should even allow to not have anything between the domain name and the event slug in the permalinks
Steps to Reproduce
Not sure
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
Version 6.5.5
Permalink structure /%postname%/
Code of Conduct
The text was updated successfully, but these errors were encountered: