Translate Marker Category with WPML

New home Forums Pro Add-on Translate Marker Category with WPML

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • #32552
    jordisk
    Member
    This reply has been marked as private.
    #32594
    Perry
    Moderator

    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
    – Perry

    #32644
    jordisk
    Member
    This reply has been marked as private.
    #32706
    neroavorio
    Member

    Hi, 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).
    Thanks

    #32707
    Perry
    Moderator

    Hi 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
    – Perry

    #32758
    neroavorio
    Member

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

    #33310
    clement.bouquet
    Member

    Hi 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
    – Perry

    Can i have the code ?? or the file modified ???

    #33311
    clement.bouquet
    Member

    If 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’].”‘>”;

    #33329
    Perry
    Moderator

    Hi 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
    – Perry

    #33380
    clement.bouquet
    Member
    This reply has been marked as private.
    #33398
    Perry
    Moderator

    Hi there

    I’ve made those changes for you, can you please confirm that translation now works as expected?

    Kind regards
    – Perry

    #33459
    clement.bouquet
    Member

    Hi yes it is working !

    Thank u

    #33464
    Perry
    Moderator

    Hi there,

    I’m very glad to hear that!

    Is there anything else I can help you with?

    Kind regards
    – Perry

    #75698
    andreas.katzmann
    Participant

    Hi 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
    Andreas

    #75709
    Matthew
    Moderator

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

    I hope this helps?

    Kindest Regards,
    Natthew

Viewing 15 posts - 16 through 30 (of 32 total)
  • You must be logged in to reply to this topic.