New home › Forums › Pro Add-on › Troubleshooting › Can't change language
Tagged: language
- This topic has 12 replies, 2 voices, and was last updated 5 years, 6 months ago by NickNickname.
-
AuthorPosts
-
September 13, 2017 at 10:05 am #30472NickNicknameMember
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.
September 13, 2017 at 11:34 am #30475PerryModeratorHi 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
– PerrySeptember 13, 2017 at 11:38 am #30476NickNicknameMemberThe Page is http://kaliebe.tma-hosting.de/.
I have checkt the Translation file ther are strings for German so it should work.
September 13, 2017 at 12:11 pm #30477PerryModeratorHi 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
– PerrySeptember 13, 2017 at 1:17 pm #30481NickNicknameMemberThe Map is on the start page an on the directions page http://kaliebe.tma-hosting.de/anfahrt/
September 13, 2017 at 4:40 pm #30492PerryModeratorHi 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
– PerrySeptember 18, 2017 at 10:33 am #30570NickNicknameMemberHi Perry,
are ther any news about my problem?
regards
NickSeptember 18, 2017 at 10:44 am #30572PerryModeratorHi 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
– PerrySeptember 18, 2017 at 11:45 am #30573NickNicknameMemberHi 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
NickSeptember 18, 2017 at 11:56 am #30575NickNicknameMemberThis reply has been marked as private.September 18, 2017 at 12:06 pm #30576PerryModeratorHi 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
– PerrySeptember 18, 2017 at 3:16 pm #30586NickNicknameMemberHi 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
NickSeptember 18, 2017 at 4:04 pm #30594PerryModeratorHi 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 -
AuthorPosts
- You must be logged in to reply to this topic.