Skip to content Skip to sidebar

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

wp-google-maps-pro\includes\category-filter-widgets\class.dropdown.php

.
2. In the build method, replace

$option->import($node->category_name);

with

$option->import(__($node->category_name, "wp-google-maps"));

.
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.

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by Dražen 1 day, 3 hours ago.

Assisted by: Dražen.

Author Posts
August 4, 2025 at 5:42 pm #17294301

jean-philippeP-6

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?

August 6, 2025 at 10:07 am #17299037

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

how did you create these categories?

If there are regular taxonomy, you can set them to translatable via WPML > Settings and then translate from WPML > Taxonomy translation.

Please check:
- https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

Let me know how it goes.

Regards,
Drazen

August 6, 2025 at 7:52 pm #17300758

jean-philippeP-6

Hello Drazen,

Thank you for your reply.

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.

I hope this clarifies things.

Thanks in advance,
Best regards,

Capture.PNG
August 7, 2025 at 6:04 am #17301225

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

Scanning WPML or WP Go Map plugin, will only get you with PHP strings in WPML > String translation that you can translate.

Can you please check the suggestion from my last reply and let me know if that helps?

Regadrs,
Drazen

August 7, 2025 at 10:10 am #17302105

jean-philippeP-6

Hello Drazen,

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.

Best regards

Captureend.PNG
Capture.PNG
August 7, 2025 at 11:33 am #17302405

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

Please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- 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.



Thanks,
Drazen

August 8, 2025 at 6:42 am #17304401

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I checked further and it seems this is expected and plugin is not supporting translating of markers / categories.

- https://wpml.org/plugin/wp-go-maps-formerly-wp-google-maps-2/

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.

Hope this helps.

Regards,
Drazen

August 10, 2025 at 1:53 pm #17307677

jean-philippeP-6

Thanks a lot, Drazen.

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.

Thanks again for your help!

August 11, 2025 at 5:47 am #17308084

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

amazing, glad to hear that.

Since the issue is resolved, I will be closing the ticket now.

Feel free to contact us again.

Regards,
Drazen