Last modified: 2011-11-17 21:27:03 UTC
Created attachment 8666 [details] The fix. I am running a server with: MediaWiki 1.16.5 Maps 0.7.6.1 Semantic MediaWiki 1.5.6 Semantic Maps 0.7.6.1 Default language is Russian ($wgLanguageCode = "ru";). Name of type "Geographic coordinate" is NOT localized, it is still displayed in English language, regardless of the file extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php: protected $m_DatatypeLabels = array( ... '_geo' => 'Географическая координата', // name of the geocoord type ... I found the cause of this bug. It is extensions/SemanticMaps/includes/SM_GeoCoordsValue.php file: public static function initGeoCoordsType() { SMWDataValueFactory::registerDatatype( '_geo', __CLASS__, 'Geographic coordinate' ); return true; } If I remove hardcoded type name: public static function initGeoCoordsType() { SMWDataValueFactory::registerDatatype( '_geo', __CLASS__ ); return true; } it will be properly localized depending on language. See attached patch.
I applied your fix in r90144. It will be in version 0.7.7, which will be released soonish. Thanks for the patch! :)