Closed (outdated)
Project:
GeoIP API
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2010 at 18:56 UTC
Updated:
15 Nov 2018 at 13:48 UTC
Jump to comment: Most recent
I had set up a multilanguage website with language detection by URL prefix with GeoIP fallback.
After adding i18n variables in the settings.php file, they didn't work as expected. I set my site's footer and title as multilanguage variables, and they appeared in the i18n_variable table in the database, but nothing actually happened.
After disabling GeoIP, these variables worked normally.
Comments
Comment #1
msagi commentedGeoIP language negotiation is called _AFTER_ i18n variables initialization. The value $language->language has not set up correctly at this moment and this causes i18n variables malfunctioning.
To patch it working again search for the
function geoip_language_init()in geoip_language.module . Since you should reinitialize i18n variables after GeoIP language negotiation, insert the following code after linegeoip_language_negotiation();:Remember, this is just a patch :)
Comment #2
ramsegal commentedHello there,
I am also facing the same problem.
The above patch doesn't work for me...
Anyone solved this issue?
Comment #3
soulston commentedThis is working for me
Comment #4
bojanz commented