New home › Forums › Pro Add-on › Translate Marker Category with WPML
Tagged: category, markercategory, translation, wpml
- This topic has 31 replies, 2 voices, and was last updated 9 months, 1 week ago by Matthew.
-
AuthorPosts
-
November 29, 2017 at 4:48 pm #32552jordiskMemberThis reply has been marked as private.November 30, 2017 at 9:35 am #32594PerryModerator
Hi Jordan
I’m glad to hear it!
I’ve added this code to the upcoming 6.19 patch as well as our upcoming major release.
If that will be all, could I ask you to take a minute to review us at https://wordpress.org/support/plugin/wp-google-maps/reviews/ ? Me and the team would appreciate it 🙂
If you need anything in the future please let me know,
Kind regards
– PerryDecember 1, 2017 at 11:30 am #32644jordiskMemberThis reply has been marked as private.December 5, 2017 at 11:12 am #32706neroavorioMemberHi, I recently sent you a Desk Support request about this (category translation and string translation) but I didn’t get any answer yet (invoice #37219).
From what I’m able tu understand here (from the public posts) you’re adding a category translation feature in the next PRO plugin release? I installed the 6.18 version and don’t see any further update available (I suppose it will pop up in the plugin list in my WP admin area).
ThanksDecember 5, 2017 at 11:20 am #32707PerryModeratorHi there,
Thanks for getting in touch!
This change has been implemented in the upcoming patch (6.19), but that hasn’t been released just yet.
You can apply the quick fix detailed below if it’s urgent that you get that functionality in place.
If you’re not confident carrying that out yourself, I’d be happy to apply it for you given FTP details for the site in question.
Please let me know?
Kind regards
– PerryDecember 7, 2017 at 10:11 am #32758neroavorioMemberThanks for the answer, I didn’t receive any notify by email so I saw it just now.
I managed to use “lang-independent” categories for now, so I’ll wait for the next update.
ThanksDecember 27, 2017 at 10:35 pm #33310clement.bouquetMemberHi i have the same problem i want to use wpml for the categories traduction.
I sent a email and the aswser ->
Perry
2017-12-24 12:35:14
Hi there,
Thank you for getting in touch!
If you\’re not confident carrying this out yourself, I\’d be happy to do it for you if FTP access to your site is permissible?
Please let me know.
Kind regards
– PerryCan i have the code ?? or the file modified ???
December 27, 2017 at 10:46 pm #33311clement.bouquetMemberIf you wand to do this through WPML, you would need to edit /wp-content/plugins/wp-google-maps-pro/wp-google-maps-pro_categories.php on lines 782 and 787 adding the localization function calls there,
Could u send me the code modified ?
line 782 $wpmgza_cat_tree_html .= “<ul class=’wpgmza_cat_ul wpgmza_cat_checkbox_item_holder’>”;
line 787 $wpmgza_cat_tree_html .= “<li class=’wpgmza_cat_checkbox_item_holder
wpgmza_cat_checkbox_item_holder_”.$value[‘id’].”‘>”;December 28, 2017 at 11:27 am #33329PerryModeratorHi there
Those aren’t the right lines, it sounds like the version you have installed has been modified or isn’t the same version.
If FTP access to your site is permissible I’d be happy to carry it out, if not you would need to find the relevant lines and make the changes described above.
Please let me know?
Kind regards
– PerryDecember 29, 2017 at 8:14 pm #33380clement.bouquetMemberThis reply has been marked as private.January 2, 2018 at 10:30 am #33398PerryModeratorHi there
I’ve made those changes for you, can you please confirm that translation now works as expected?
Kind regards
– PerryJanuary 4, 2018 at 9:26 pm #33459clement.bouquetMemberHi yes it is working !
Thank u
January 5, 2018 at 9:50 am #33464PerryModeratorHi there,
I’m very glad to hear that!
Is there anything else I can help you with?
Kind regards
– PerryDecember 10, 2022 at 12:35 pm #75698andreas.katzmannParticipantHi Perry,
I have the same request as jordisk had. I also need to translate the categories. Can you maybe share the relevant steps to translate marker categories here, that everyone can see this. Because I can imagine that also others are interested in this.
Kind regards
AndreasDecember 12, 2022 at 10:15 am #75709MatthewModeratorHi Andreas,
Thank you for getting in touch with us, we do appreciate your time.
You may use WPML to translate your category by doing the following:
1. Edit the plugin filewp-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.
I hope this helps?
Kindest Regards,
Natthew -
AuthorPosts
- You must be logged in to reply to this topic.