[Resolved] The Events Calendar string translation not working
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate strings such as 'Organizers' using WPML's string translation, but the translations are not appearing on your site. This issue is specifically related to The Events Calendar plugin. Solution: If you're experiencing this issue, it might be due to a known problem with WPML and The Events Calendar plugin as discussed in the WPML forums. We recommend checking the WPML errata page for a temporary fix: WPML Errata on The Events Calendar Translation Issues.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML Support Forum for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to translate strings like 'Organizers' using WPML's string translation, but as you can see here, nothing changes: hidden link
Symptoms:
The Events Calendar string translation is not working.
Questions:
Why are the strings not translating?
How can I fix the string translation issue?
Once activated, open the frontend, and WPML will scan for all available getText() calls and attempt to register them for you. After this, check if another "Organizer" string appears under WPML → String Translation.
I already did that using „Theme and plugins localization“, where I scanned strings in the „The Events Calendar“ plugin (Note: There I have many options to create PO files. Do I have to do this?).
This did not help. For example, I also searched for „Date:“ and translated it into german, but still on the german event page it says „Date:“.
You don’t need to do that. Have you already checked the "Admin Strings" section at the bottom of the String Translation table? I would recommend using the "auto-register" option. This will scan all content that is viewable on the specific frontend page.
Keep in mind that WPML (and similar plugins) can only translate strings that use gettext() calls. If a string is hardcoded, it cannot be translated. To verify this, you can use the String Locator plugin to search for the specific string in the code. This will help determine whether it’s utilizing a proper gettext() call.
Additionally, this will allow us to see if the text might be coming from another source, such as a backend input field or a variable.
Another example: When I search for the string „Upcoming“, I can see that every single string is translated. But on our german events page it still says „Upcoming“.
You didn’t clarify which part of my steps isn’t working. Did you check if the string is even using a getText() call? Is the String Locator plugin installed so I can verify that?
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
then we need to wait for the authors until they implemented the needed changes.
Best Regards,
Marcel
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.