This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using the WP Go Maps plugin and is unable to find the category strings for translating country names using WPML. Despite rescanning the plugin and following existing threads, the issue persisted. Solution: We discovered that the WP Go Maps plugin does not natively support the translation of marker categories. However, a workaround is available: 1. Edit the plugin file at
. 3. Enable WPML’s “Look for strings while pages are rendered” setting found in the “Auto register strings for translation” block (WPML -> String Translations). After these steps, you should be able to search for your category name in WPML and add the respective translations. For more details, visit WP Go Maps forum.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket at WPML support forum.
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’m using the WP Go Maps plugin and have created categories for the countries where the shops are located. I am trying to translate the country names using WPML.
Symptoms:
I can’t find the category strings anywhere to translate them. I tried rescanning the plugin with WPML and followed a thread on translating marker categories, but neither helped.
Questions:
How can I translate the country names in WP Go Maps categories using WPML?
These categories were created directly within the WP Go Maps plugin itself. There is a section called "Categories" where they can be added — please see the attachment.
That’s why I tried rescanning the plugin with WPML.
Sorry, I forgot to mention this earlier.
I couldn’t find any WP Go Maps entry under WPML > Settings, either in the Taxonomies Translation section or anywhere else in the page, to mark as translatable.
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
On the other hand plugin support has provided a workaround you can use, I tested it and it works fine.
1. Edit the plugin file wp-google-maps-pro\includes\category-filter-widgets\class.dropdown.php:
In the build method, replace $option->import($node->category_name); with $option->import(__($node->category_name, "wp-google-maps"));.
2. Run WPML’s “Look for strings while pages are rendered” setting which can be found in the “Auto register strings for translation” block (WPML -> String Translations).
Once this has been done, you should then be able to search for your category name in WPML and add the respective translations.
Source: hidden link
If you need further info on this please contact plugin author or suggest a feature request / to implement this as standard in newer version of plugin.
Once everything was set up as you described, I initially had a hard time getting WPML to detect the category strings, but I finally found the right way.
The shortcode widget allows you to apply changes and preview how they look. Once I applied them, WPML was immediately able to detect all the category strings.