Last modified: 2010-03-17 23:40:56 UTC
The value #geocode from the Maps extension returns is not compatible with the input the type coordinates accepts
(In reply to comment #0) > The value #geocode from the Maps extension returns is not compatible with the > input the type coordinates accepts It is on my wiki. What version of Maps, SM and SMW are you using? Can you provide a link to an example of this behaviour?
Versions: MW: 1.16alpha (r61264) Maps: 0.5.3 a2 (r61363) SMW: 1.5g-SVN (r60520) SM: 0.5.3 a2 (r61363) PHP: 5.2.4-2ubuntu5.10 (apache2handler) MySQL: 5.0.51a-3ubuntu5.4 Example: http://www.wecowi.de/view/WeCoWi:Bugs/22184
(In reply to comment #2) > Versions: > MW: 1.16alpha (r61264) > Maps: 0.5.3 a2 (r61363) > SMW: 1.5g-SVN (r60520) > SM: 0.5.3 a2 (r61363) > > PHP: 5.2.4-2ubuntu5.10 (apache2handler) > MySQL: 5.0.51a-3ubuntu5.4 > > Example: > http://www.wecowi.de/view/WeCoWi:Bugs/22184 Hey, It's working fine on mine, and other, wiki's as far as I can determine. See the source of http://wiki.bn2vs.com/Berlin for an example.
Localisation? Maybe this is an issue about . and , as different seperators in different Language. I Fear you only tested on english wikis
(In reply to comment #4) > Localisation? Maybe this is an issue about . and , as different seperators in > different Language. I Fear you only tested on english wikis That could be right. #Geocode is not internationalized, so if the geo property of SMW is, that'll indeed give problems. Can you confirm this is the case?
when changing wgLanguageCode from de to en it works. So it's a problem with the localisation.
isn't it possible to make #geocode work with the built-in-features of SMW, or maybe give an output that is understood by SMW in all languages the same way. The user in my wiki are already complaining about the incompatibility of #geocode an the SMW-Coordinates function
Geocode can not hold into account the SMW stuff, since Geocode is part of Maps, which does not required SMW. It's ofcourse possible to modify the formats so SMW does recognize float coordinates, but I did not write the code responsible for that, and am not planning to try to fix this any time soon due to other work.
well cause you seem not to be able to create a fix for this I made a for line fix, took me an hour to find the place to insert and 5 Minutes to insert the fix. I fix close this as later, cause I think you have no interest to provide a working software for non english users
Hey, If you created a fix - awesome. I'd be happy to apply it to the code (unless you can do it yourself ofcourse). "I think you have no interest to provide a working software for non english users" - A little unfair considering I developed a lot of the code in my free time no?
Created attachment 7107 [details] FIX/Workaround Well sry, I was a bit frustrated this morning, after filling the whole Maps code with wfDebug to find out where I have to put in my code to corret the problem This fix is only a temporary solution for german wikis.
Fixed in 0.5.4