Can't change language

New home Forums Pro Add-on Troubleshooting Can't change language

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #30472
    NickNickname
    Member

    Hi, I can not change the language ot the directions!

    I use a coustem theme. Do I have to enter something special in the functions.php or elsewhere in my theme so that WPG recognizes the language?

    Where WPG gets the current language?

    • This topic was modified 5 years, 6 months ago by NickNickname.
    • This topic was modified 5 years, 6 months ago by NickNickname.
    #30475
    Perry
    Moderator

    Hi there,

    Thank you for getting in touch,

    Not all of our translations are 100% complete, but in the mean time you could use jQuery to replace the text with strings of your choice, if you need advise or examples of how to do that, please show me the page in question and I’ll get back to you with code

    Kind regards
    – Perry

    #30476
    NickNickname
    Member

    The Page is http://kaliebe.tma-hosting.de/.

    I have checkt the Translation file ther are strings for German so it should work.

    #30477
    Perry
    Moderator

    Hi there,

    In that case the text domain probably hasn’t been specified where those strings are outputted or something similar.

    I had a look on that page but I wasn’t able to see our plugin, could you please direct me to the exact page with your map on?

    Kind regards
    – Perry

    #30481
    NickNickname
    Member

    The Map is on the start page an on the directions page http://kaliebe.tma-hosting.de/anfahrt/

    #30492
    Perry
    Moderator

    Hi there,

    Just to let you know, I’ve consulted one of my colleagues who is more familiar with the multilingual functions than myself, you can expect a reply from one of us regarding this issue within the next 24 hours.

    Apologies for any inconvenience caused

    Kind regards
    – Perry

    #30570
    NickNickname
    Member

    Hi Perry,

    are ther any news about my problem?

    regards
    Nick

    #30572
    Perry
    Moderator

    Hi Nick,

    Sorry for the delay in getting back to you, I’ve been away

    You can fix this by opening /wp-content/plugins/wp-google-maps-pro/wp-google-maps-pro.php and adding the following code at the end

    add_action( ‘init’, ‘wpgmza_translation_fix’ );

    function wpgmza_translation_fix(){
    $domain = “wp-google-maps”;
    $plugin_rel_path = ‘wp-google-maps/languages/’;
    $locale = apply_filters( ‘plugin_locale’, is_admin() ? get_user_locale() : get_locale(), $domain );
    $mofile = ‘wp-google-maps’ . ‘-‘ . $locale . ‘.mo’;

    if ( false !== $plugin_rel_path ) {
    $path = WP_PLUGIN_DIR . ‘/’ . trim( $plugin_rel_path, ‘/’ );
    } else {
    $path = WP_PLUGIN_DIR;
    }

    load_textdomain( $domain, $path . ‘/’ . $mofile );
    }

    If you’re not confident making those changes yourself, I’d be happy to do it for you given FTP access

    Kind regards
    – Perry

    #30573
    NickNickname
    Member

    Hi Perry,

    i added the code but it themes to do nothing.

    If you need more acces to the page i can make you a FTP Account.

    Kind regards
    Nick

    #30575
    NickNickname
    Member
    This reply has been marked as private.
    #30576
    Perry
    Moderator

    Hi Nick

    It seems the support desk changed all the plain quotes to left and right hand quotes,

    I’ve corrected that, could you please confirm that works?

    Kind regards
    – Perry

    #30586
    NickNickname
    Member

    Hi Perry,

    it works. Thanks for your great support.
    But there is on question. What was the Problem?

    Is ther somting i have done wrong or is this a Problem on your side?

    Kind regards
    Nick

    #30594
    Perry
    Moderator

    Hi Nick,

    It’s a problem at our end – When I send quote characters like ” or ‘ through the desk, they’re converted to left-hand and right-hand quotes. PHP only accepts plain quotes.

    I’ve already asked for this to be fixed so sorry for any inconvenience caused in the mean time

    If you’d be kind enough to take a minute to leave me a support review at https://wordpress.org/support/plugin/wp-google-maps/reviews/ I would appreciate it!

    If you need anything else please don’t hesitate to ask

    Kind regards
    – Perry

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.