Index: trunk/extensions/SemanticMediaWiki/specials/OntologyImport/SMW_SpecialOntologyImport.php |
— | — | @@ -188,7 +188,8 @@ |
189 | 189 | } else { |
190 | 190 | $classnew = 'class="new" '; |
191 | 191 | } |
192 | | - $s['HUMAN'] = wfMsg( 'smw_oi_thishascategory' ) . ' <a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a>' . "\n"; |
| 192 | + $thishascategoryLink = '<a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a>'; |
| 193 | + $s['HUMAN'] = wfMsg( 'smw_oi_thishascategory', $thishascategoryLink ) . "\n"; |
193 | 194 | $s['WIKI'] = "[[" . $t->getPrefixedText() . "]]" . "\n"; |
194 | 195 | $statements[] = $s; |
195 | 196 | } |
— | — | @@ -222,7 +223,8 @@ |
223 | 224 | } else { |
224 | 225 | $classnew = 'class="new" '; |
225 | 226 | } |
226 | | - $s['HUMAN'] = wfMsg( 'smw_oi_thisissubcategoryof' ) . ' <a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a>' . "\n"; |
| 227 | + $thisissubcategoryofLink = '<a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a>'; |
| 228 | + $s['HUMAN'] = wfMsg( 'smw_oi_thisissubcategoryof', $thisissubcategoryofLink ) . "\n"; |
227 | 229 | $s['WIKI'] = "[[" . $t->getPrefixedText() . "]]" . "\n"; |
228 | 230 | $statements[] = $s; |
229 | 231 | } |
— | — | @@ -340,12 +342,14 @@ |
341 | 343 | |
342 | 344 | // TODO $message .= '<input type="checkbox" />'; one click to click all statements about an entity |
343 | 345 | wfLoadExtensionMessages('SemanticMediaWiki'); |
344 | | - $message .= wfMsg( 'smw_oi_statementsabout' ) . ' <a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a> <br />' . "\n"; |
| 346 | + $statementsaboutLink = ' <a href="'. $t->getLocalURL() .'" '. $classnew .'title="'. $t->getPrefixedText() .'">'. $t->getPrefixedText() .'</a> <br />'; |
| 347 | + $message .= wfMsg( 'smw_oi_statementsabout', $statementsaboutLink ) . "\n"; |
345 | 348 | |
346 | 349 | $snr = 0; |
347 | 350 | if ($need_to_map) { |
348 | 351 | $value = $ns . ':' . $t->getDBkey() . '::[[equivalent URI:=' . $entity->getURI() . '| ]]'; // TODO internationalize equivalent URI |
349 | | - $message .= ' <input type="checkbox" name="s' . $enr . '_' . $snr++ . '" value="' . $value . '" />' . wfMsg( 'smw_oi_mapto' ) . ' <em><a href="' . $entity->getURI() . '" title="' . $entity->getURI() . '">' . $entity->getURI() . '</a></em> <br />' . "\n"; |
| 352 | + $maptoLink = '<em><a href="' . $entity->getURI() . '" title="' . $entity->getURI() . '">' . $entity->getURI() . '</a></em> <br />'; |
| 353 | + $message .= ' <input type="checkbox" name="s' . $enr . '_' . $snr++ . '" value="' . $value . '" />' . wfMsg( 'smw_oi_mapto', $maptoLink ) . "\n"; |
350 | 354 | } |
351 | 355 | |
352 | 356 | foreach ($statements as $statement) { |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -171,11 +171,11 @@ |
172 | 172 | 'smw_oi_select' => 'Select the statements to import, and then click the import button.', |
173 | 173 | 'smw_oi_textforall' => 'Header text to add to all imports (may be empty):', |
174 | 174 | 'smw_oi_selectall' => 'Select or unselect all statements', |
175 | | - 'smw_oi_statementsabout' => 'Statements about', |
176 | | - 'smw_oi_mapto' => 'Map entity to', |
| 175 | + 'smw_oi_statementsabout' => 'Statements about $1', |
| 176 | + 'smw_oi_mapto' => 'Map entity to $1', |
177 | 177 | 'smw_oi_comment' => 'Add the following text:', |
178 | | - 'smw_oi_thisissubcategoryof' => 'A subcategory of', |
179 | | - 'smw_oi_thishascategory' => 'Is part of', |
| 178 | + 'smw_oi_thisissubcategoryof' => 'A subcategory of $1', |
| 179 | + 'smw_oi_thishascategory' => 'Is part of $1', |
180 | 180 | 'smw_oi_importedfromontology' => 'Import from ontology', |
181 | 181 | |
182 | 182 | // Messages for (data)Types Special |