WordPress.org

Ready to get started?Download WordPress

Forums

Geolocation
Geolocation Language Localization option (1 post)

  1. Unsal Korkmaz
    Member
    Posted 2 years 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic