Links broken with qTranslate
-
I have qTranslate installed (main WP language German, 2ndary language English). Hence the links generated by The Events Calendar are:
myUrl.com/events/bevorstehend
(event list, upcoming events)
myUrl.com/events/monat
(month, calendar view)
etc.However, when I view the page in English, the links are “translated” to
myUrl.com/events/upcoming
and
myUrl.com/events/month
– which do not exist, see above.This is due to the following: In
link.php
, the functionstribe_get_gridview_link
et.al. have the links hardcoded. IMO, this is a bug: Either, the permalinks should always be the English (“upcoming”, “month”, …; no translation of the permalinks), or the functions inlink.php
should take translation into consideration the same way it is done when generating the permalinks.Workaround: Open link.php and edit the calls
$output = $tribe_ecp->getLink('month', false, $term);
to$output = $tribe_ecp->getLink('monat', false, $term);
(just exchange the English word with the appropriate German word that suits your permalink structure). Your workaround will break the next time you update The Events Calendar, since thelink.php
file will be overwritten by the update.https://www.ads-software.com/extend/plugins/the-events-calendar/
- The topic ‘Links broken with qTranslate’ is closed to new replies.