• This is just part of the code, I cant wrap “Position on map” here:

    return '<div id="my_map_123"></div><h4 class="posizione">Position on map</h4><iframe width="100%" height="450" frameborder="0" style="border:0" src="' . $map_url . '" allowfullscreen></iframe><br></br>';
    }   

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    So you want “Position on map” to be translatable? Right now it’s buried within a longer string. You need to break it up into string fragments and PHP translation code, then concatenate the pieces back together.
    class="posizione">'. __('Position on map', 'sacconicase') .'</h4>

Viewing 1 replies (of 1 total)
  • The topic ‘gettext in the code displaying google map’ is closed to new replies.