This thread is resolved. Here is a description of the problem and solution.
Problem: The client is having issues with the WPML plugin not automatically loading existing .po/.mo files for plugins such as Events Manager. Additionally, the client is unable to see the country flag options on the Events pages, even after loading strings into the WPML system.
Solution: 1. WPML should automatically load .po/.mo files if they exist for a plugin and are in the correct language. If the translations are not working, the client can regenerate the .mo files through WPML by navigating to WPML -> Support -> Troubleshooting and using the relevant option.
2. Importing .po/.mo files alone will not display flags for Events in other languages. The client needs to translate the Events themselves or use a fallback option for displaying untranslated content in secondary languages, which can be found here: Displaying Untranslated Content on Pages in Secondary Languages.
If the provided solution does not apply or is outdated, or if the issue persists, we recommend opening a new support ticket. We also 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.
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.
We have several plugins installed on the site that came with their own .po files. I'll use Events Manager as an example. We would like to get all the Events related content to be accessible in different languages. Here are the issues I'm currently stuck with:
1. Cannot find a way for the WPML plugin to load the existing .po/.mo files automatically. I was able to load the individual .pos for each plugin and language into the string translation system. This seems very tedious. I feel like there has to be a better way. Can you show me where?
2. With the strings loaded into the system I still do not see the countries flag options showing on the Events pages. I keep looking at the list of post types and pages related to Events Manager in the WPML settings but most of the pages are custom slugs generated on the fly. How can I tell WPML to attempt to translate (using the available strings) all the pages related to the Events plugin.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
Thank you for contacting WPML support!
WPML uses WordPress logic to load every mo/po files in case such thing exists for any plugin and assuming that it has language packs for the specific language.
So I'm not sure what exactly isn't working for you? This whole process is done automatically, there are no specific settings for this.
If files are there but translation don't work, you can generate them again through WPML - > Support -> Troubleshooting and the option outlined in image.
Thank you!
I realized that most of the issues I'm seeing where resolved by switching to "Translatable
use translation if available or fallback to default language" options for the post/pages.
I have a new issue now. We are using the "Language name added as a parameter" option for URL. Now I have a page generated via plugin with string translation. When I switch languages the text on the page adjusts great but I the links on the page are changed as well.
Ex. The page I'm looking at is hidden link
The internal link on the hidden link
On the translated page the link is hidden link
I need it to be hidden link
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
*********************
Ex. The page I'm looking at is hidden link
The internal link on the hidden link
On the translated page the link is hidden link
I need it to be hidden link
*********************
Hi Bruno,
The particular link on the page that is being overwritten is to a page, not a post. I have some of the pages on the site translated explicitly (there is a separate page id with the translated content). Other pages are just being translated using the strings. The problem above is that a link to a page that does not have explicit translation is overwritten with a link to the page the user is currently on. Instead I would like it to be a tier system:
1. If the fully translated page exists - link to that slug
2. If the fully translated page does not exist - add the language parameter to the url.
How can I accomplish that?
And if that is impossible I would rather have the plugin NOT change any links on the page than overwriting with links to the current page. That makes the site unusable.