Custom wording working only partially
-
Hi everyone,
I’m trying to replace some words in the Slovenian translation of The Events Calendar because there are untranslated parts left and some declensions are off even in the fully translated parts. I’m a total newbie when it comes to coding, so the easiest way seemed to be the one suggested in your “Custom Wording in the Calendar” knowledgebase article.
I created a child theme and edited the functions.php file according to the instructions. However, some replacements work and others don’t. I have the following code:
function tribe_replace_strings() { $custom_text = [ '%s onwards' => 'Prihodnji dogodki', 'Zdaj!' => 'danes', 'Subscribe to calendar' => 'Naroči se na koledar', 'Trenutno ni prihajajočih dogodki.' => 'Trenutno ni prihajajočih dogodkov.', ]; return $custom_text; }If I inspect the code, it seems to me that “Trenutno ni prihajajočih dogodki.” (“There are no upcoming events” in English) should be an independent text string, just like the button text. But the replacement of the “Subscribe to calendar” button text works, the replacement of the other string doesn’t. Also, no matter what I do, I can’t seem to replace the “Latest Past” in the “Latest Past dogodki” showing up on the site.
Here is the screenshot of the site I have issues with: https://www.dropbox.com/s/5kev0objclerfiw/Screenshot%202022-08-02%20114627.png?dl=0
Many thanks for your help,
Tea
The page I need help with: [log in to see the link]
The topic ‘Custom wording working only partially’ is closed to new replies.