Forums

Geolocation
Geolocation Language Localization option (1 post)

  1. unsalkorkmaz
    Member
    Posted 8 months ago #

    Hello,

    I want turkish location informations from geolocation but i needed to edit php files for it.

    function reverse_geocode($latitude, $longitude) {
    	$url = "http://maps.google.com/maps/api/geocode/json?latlng=".$latitude.",".$longitude."&sensor=false";

    need to changed to:

    function reverse_geocode($latitude, $longitude) {
    	$url = "http://maps.google.com/maps/api/geocode/json?latlng=".$latitude.",".$longitude."&sensor=false&language=tr&region=tr_TR";

    and
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
    need to changed to
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&language=tr&region=tr_TR"></script>

    basically i added &language=tr&region=tr_TR section.. is there any chance to give an option for those so i dont need to edit plugin?

    http://wordpress.org/extend/plugins/geolocation/

Reply

You must log in to post.

About this Plugin

About this Topic