After upgrading to 7.x-2.6,How to indicate the language in the Google Maps?

It used to be in Hebrew for me, now after upgrading all the node locations maps are only in English.

Where do I change this?

BR
Itzhak

Comments

johnv’s picture

Which version did you use before?

imoreno’s picture

Hi,
I was using GMap 7.x-1.0-beta3. used to work OK.
I think that api V3 is broken somehow with the language parameter. I have roled back but i think there is an issue with map localization on the 7x.2x versions.
would love to test any new version.

BR
Itzhak

imoreno’s picture

Title: After upgrading to 7.x-2.6,How to indicate the language in the Google Maps? » Gmap 7.x-2.6,localization is broken - API does not respect language parameter in the Google Maps
Category: support » bug

7.x-1.0-beta3 does not have this issue, working fine in Hebrew. After upgrading to 7.2.6. maps displays only in English, language parameter is ignored.

BR
Itzhak

johnv’s picture

Title: Gmap 7.x-2.6,localization is broken - API does not respect language parameter in the Google Maps » After upgrading to 7.x-2.6 (API v3), some languages are not translated anymore.

GoogleMaps changed the language indicator from "hl=[language]" (v2) to "language=[language]". They have different domains (value sets).
There is 1 language parameter, which GMap is using, as described here with the language list here.
The Drupal language code are listed in includes/iso.inc.
From the Google documentation page:

See also the supported list of languages. Note that we often update supported languages so this list may not be exhaustive.

For your situation, I created a language 'Hebrew', and its drupal code is 'he'. Google's API v3 code is 'iw'.
Hence we need a mapping, like is done for #870350: Patch for better gmap for China.
Since your OP describes the general symptom adequately, let's keep this issue open for other people experiencing the same problem, and re-open a separate issue for the hebrew translation.

johnv’s picture

Another language: Google: 'no' = NORWEGIAN is in Drupal:
'nb' => array('Norwegian Bokmål', 'Bokmål'),
'nn' => array('Norwegian Nynorsk', 'Nynorsk'),

All other languages are not (yet) supported by Google maps API v3.

johnv’s picture