Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If site provide multilingual support we need to display map in different languages, but by default in module Geofield map language is English.
In the official documentation written: to display a Maps API application in Japanese, add &language=ja to the
Comment | File | Size | Author |
---|---|---|---|
#2 | geofield_map-language_support-2100981-2.patch | 2.05 KB | miax |
#1 | geofield_map-language_support-2100981-1.patch | 1.11 KB | sanchiz |
Comments
Comment #1
sanchiz CreditAttribution: sanchiz commentedInitial patch.
Comment #2
miax CreditAttribution: miax commentedI was not able to get this to work with the initial patch. The map is still only in english.
I modified the patch a bit and added the language part to the google_map_plugin_style_map.inc file.
Then it started to work better for me with other languages than english.
Attached is the patch.
Comment #3
kopeboy CreditAttribution: kopeboy commentedWill this be included in a stable release?
Comment #4
BlacKICEUAWorking on version 7.x-2.3. Thanks for patch.
Comment #5
BlacKICEUAComment #6
Dr.Osd CreditAttribution: Dr.Osd commentedBoth patch work on 7.x-2.3
But have one issue. City names looks in two language on english site version 1) EN 2) site default language. Second is unnecessary.