谷歌地图[gmap],我该如何设置语言?

时间:2015-02-15 11:30:31

标签: google-maps localization

我有这行代码:(首选语言是希伯来语)

[gmap width="940" height="350" lat="0" long="0" style="full" zoom="14" marker="yes" infowindow="car wash" infowindowdefault="no" maptype="ROADMAP" hidecontrols="true" address="California"]

我尝试使用" language = iw"和" hl =他"。

但我似乎无法找到解决方案呢?

2 个答案:

答案 0 :(得分:0)

这些是Google支持的语言及其标识符

Language    Identifier
Afrikaans   af
Albanian    sq
Basque  eu
Belarusian  be
Bulgarian   bg
Catalan ca
Chinese (Simplified)    zh-cn
Chinese (Traditional)   zh-tw
Croatian    hr
Czech   cs
Danish  da
Dutch   nl
Dutch (Belgium) nl-be
Dutch (Netherlands) nl-nl
English en
English (Australia) en-au
English (Belize)    en-bz
English (Canada)    en-ca
English (Ireland)   en-ie
English (Jamaica)   en-jm
English (New Zealand)   en-nz
English (Phillipines)   en-ph
English (South Africa)  en-za
English (Trinidad)  en-tt
English (United Kingdom)    en-gb
English (United States) en-us
English (Zimbabwe)  en-zw
Estonian    et
Faeroese    fo
Finnish fi
French  fr
French (Belgium)    fr-be
French (Canada) fr-ca
French (France) fr-fr
French (Luxembourg) fr-lu
French (Monaco) fr-mc
French (Switzerland)    fr-ch
Galician    gl
Gaelic  gd
German  de
German (Austria)    de-at
German (Germany)    de-de
German (Liechtenstein)  de-li
German (Luxembourg) de-lu
German (Switzerland)    de-ch
Greek   el
Hawaiian    haw
Hungarian   hu
Icelandic   is
Indonesian  in
Irish   ga
Italian it
Italian (Italy) it-it
Italian (Switzerland)   it-ch
Japanese    ja
Korean  ko
Macedonian  mk
Norwegian   no
Polish  pl
Portuguese  pt
Portuguese (Brazil) pt-br
Portuguese (Portugal)   pt-pt
Romanian    ro
Romanian (Moldova)  ro-mo
Romanian (Romania)  ro-ro
Russian ru
Russian (Moldova)   ru-mo
Russian (Russia)    ru-ru
Serbian sr
Slovak  sk
Slovenian   sl
Spanish es
Spanish (Argentina) es-ar
Spanish (Bolivia)   es-bo
Spanish (Chile) es-cl
Spanish (Colombia)  es-co
Spanish (Costa Rica)    es-cr
Spanish (Dominican Republic)    es-do
Spanish (Ecuador)   es-ec
Spanish (El Salvador)   es-sv
Spanish (Guatemala) es-gt
Spanish (Honduras)  es-hn
Spanish (Mexico)    es-mx
Spanish (Nicaragua) es-ni
Spanish (Panama)    es-pa
Spanish (Paraguay)  es-py
Spanish (Peru)  es-pe
Spanish (Puerto Rico)   es-pr
Spanish (Spain) es-es
Spanish (Uruguay)   es-uy
Spanish (Venezuela) es-ve
Swedish sv
Swedish (Finland)   sv-fi
Swedish (Sweden)    sv-se
Turkish tr
Ukranian    uk

答案 1 :(得分:0)

实际上[gmap]是一个WordPress短代码标签,到目前为止还没有意识到。

感谢Jawad,我找到了包含Localize参数的链接:

https://developers.google.com/maps/faq#geocoder_countries

我的问题的答案取自这里: Google map api for hebrew

我在谷歌地图链接中添加了&language=iw并完成了 - 以希伯来语显示地图。