Flexible Map

Flexible Map

Easily embed Google Maps in WordPress pages and posts

Localising the map

The plugin uses localised messages for many common languages — albeit mostly through Google Translate. Some very kind people have provided real, human translations for their languages — thanks!

The plugin automatically loads the localised messages for the current language set in WordPress, so if your installation is set for your language, you probably don’t need to do anything. For example, the following actions will make the plugin load localised messages automatically:

If you need to force it to pick up your language (or want to offer a different language), use the locale parameter, e.g. locale="el" or locale="zh-TW". Google Maps will use the locale information from your web browser to help display maps in your language (see your browser’s language settings).

[flexiblemap center="-32.918657,151.797894" locale="el" directions="true" title="Nobby's Head" width="100%"]

Usually, Google Maps will display maps and directions in the preferred language settings of your web browser, rather than the locale set in WordPress or the Flexible Map plugin. If you need to force Google Maps to use the current WordPress locale, you can add this code to a simple plugin or your theme’s functions.php file:

// force Google Maps to use current locale
add_filter('flexmap_google_maps_api_args', 'force_gmaps_locale');

function force_gmaps_locale($args) {
    $args['language'] = get_locale();
    return $args;