Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_KMLPrinter.php |
— | — | @@ -66,14 +66,17 @@ |
67 | 67 | $params = array_merge( parent::getParameters(), $this->exportFormatParameters() ); |
68 | 68 | |
69 | 69 | $params['text'] = new Parameter( 'text', Parameter::TYPE_STRING, $egMapsDefaultLabel ); |
70 | | - //$params['text']->setDescription(); |
| 70 | + $params['text']->setMessage( 'semanticmaps-kml-text' ); |
71 | 71 | |
72 | 72 | $params['title'] = new Parameter( 'title', Parameter::TYPE_STRING, $egMapsDefaultTitle ); |
| 73 | + $params['title']->setMessage( 'semanticmaps-kml-title' ); |
73 | 74 | |
74 | | - $params[] = new Parameter( 'linkabsolute', Parameter::TYPE_BOOLEAN, true ); |
| 75 | + $params['linkabsolute'] = new Parameter( 'linkabsolute', Parameter::TYPE_BOOLEAN, true ); |
| 76 | + $params['linkabsolute']->setMessage( 'semanticmaps-kml-linkabsolute' ); |
75 | 77 | |
76 | 78 | $params['pagelinktext'] = new Parameter( 'pagelinktext', Parameter::TYPE_STRING, wfMsg( 'semanticmaps-default-kml-pagelink' ) ); |
77 | | - |
| 79 | + $params['pagelinktext']->setMessage( 'semanticmaps-kml-pagelinktext' ); |
| 80 | + |
78 | 81 | return $params; |
79 | 82 | } |
80 | 83 | |
— | — | @@ -115,6 +118,14 @@ |
116 | 119 | $link->setParameter( 'kml', 'format' ); |
117 | 120 | $link->setParameter( $this->m_params['linkabsolute'] ? 'yes' : 'no', 'linkabsolute' ); |
118 | 121 | $link->setParameter( $this->m_params['pagelinktext'], 'pagelinktext' ); |
| 122 | + |
| 123 | + if ( $this->m_params['title'] !== '' ) { |
| 124 | + $link->setParameter( $this->m_params['title'], 'title' ); |
| 125 | + } |
| 126 | + |
| 127 | + if ( $this->m_params['text'] !== '' ) { |
| 128 | + $link->setParameter( $this->m_params['text'], 'text' ); |
| 129 | + } |
119 | 130 | |
120 | 131 | if ( array_key_exists( 'limit', $this->m_params ) ) { |
121 | 132 | $link->setParameter( $this->m_params['limit'], 'limit' ); |
Index: trunk/extensions/SemanticMaps/SemanticMaps.i18n.php |
— | — | @@ -40,6 +40,11 @@ |
41 | 41 | 'semanticmaps-par-template' => 'A template to use to format the info window contents.', |
42 | 42 | |
43 | 43 | 'semanticmaps-par-geocodecontrol' => 'Show the geocoding control.', |
| 44 | + |
| 45 | + 'semanticmaps-kml-text' => 'The text associates with each page. Overriden by the aditional queried properties if any.', |
| 46 | + 'semanticmaps-kml-title' => 'The default title for results', |
| 47 | + 'semanticmaps-kml-linkabsolute' => 'Should links be absolute or not (ie relative)', |
| 48 | + 'semanticmaps-kml-pagelinktext' => 'The text to use for the links to the page, in which $1 will be replaced by the page title', |
44 | 49 | ); |
45 | 50 | |
46 | 51 | /** Message documentation (Message documentation) |