[Plugin: Comprehensive Google Map Plugin] i18n code flawed
-
plugin v.7.0.23
Hi,
I really appreciate this plugin, and all the work you’ve done.However, a few days ago, i needed to use it for a french language site.
Just to find the language code is not ready for use.So i made the necessary modifications.
Since i had no time at the moment, i didn’t post it here.And then today applied this plugin update, and #*&ç% lost it all
So i did it a second time this afternoon, et voila…I made an updated archive with the corrections + .pot + french translation, and a diff file (in html with colors), so you can see the changes.
Can you give me your email, i’ll send you the files?
Thanks
Notes:
– Addedcgmp_load_plugin_textdomainto init action hook incgmp_add_actions
– Changed the path used inload_plugin_textdomain(wasdirname(CGMP_PLUGIN_BOOTSTRAP)), because it has to be relative toWP_PLUGIN_DIR(replaced byplugin_basename( __FILE__ ))
– Changed every__function occurence to add the second argument (the textdomain),CGMP_NAME
– Added a short json encoding function that escapes special characters before outputting the json to the HTML page (French contains a lot of single quotes that triggered an error the second i tried the translation live).Voila !
http://ww.wp.xz.cn/extend/plugins/comprehensive-google-map-plugin/
The topic ‘[Plugin: Comprehensive Google Map Plugin] i18n code flawed’ is closed to new replies.