Index: trunk/phpwiki/newcodebase/LanguageDe.php |
— | — | @@ -198,6 +198,7 @@ |
199 | 199 | "wikipediapage" => "Wikipedia-Text", |
200 | 200 | "userpage" => "Benutzerseite", |
201 | 201 | "imagepage" => "Bildseite", |
| 202 | +"viewtalkpage" => "Diskussion", |
202 | 203 | "otherlanguages" => "Andere Sprachen", |
203 | 204 | "redirectedfrom" => "(Weitergeleitet von $1)", |
204 | 205 | "lastmodified" => "Diese Seite wurde zuletzt ge�ndert um $1.", |
Index: trunk/phpwiki/newcodebase/Skin.php |
— | — | @@ -488,7 +488,7 @@ |
489 | 489 | |
490 | 490 | function quickBar() |
491 | 491 | { |
492 | | - global $wgOut, $wgTitle, $wgUser; |
| 492 | + global $wgOut, $wgTitle, $wgUser, $action, $wgLang; |
493 | 493 | |
494 | 494 | $s = "\n<div id='quickbar'>"; |
495 | 495 | $s .= "\n" . $this->logoText() . "\n<hr>"; |
— | — | @@ -523,7 +523,51 @@ |
524 | 524 | } |
525 | 525 | } |
526 | 526 | $s .= "\n<hr>"; |
| 527 | + } |
| 528 | + |
| 529 | + if( $action == "edit" || $action == "history") { # add a backlink to the article |
| 530 | + |
| 531 | + if($wgTitle->getArticleID()){ # no backlink if no article |
| 532 | + $tns=$wgTitle->getNamespace(); |
| 533 | + switch($tns) { |
| 534 | + case 0: |
| 535 | + $text = wfMsg("articlepage"); |
| 536 | + break; |
| 537 | + case 1: |
| 538 | + $text = wfMsg("viewtalkpage"); |
| 539 | + break; |
| 540 | + case 2: |
| 541 | + $text = wfMsg("userpage"); |
| 542 | + break; |
| 543 | + case 3: |
| 544 | + $text = wfMsg("viewtalkpage"); |
| 545 | + break; |
| 546 | + case 4: |
| 547 | + $text = wfMsg("wikipediapage"); |
| 548 | + break; |
| 549 | + case 5: |
| 550 | + $text = wfMsg("viewtalkpage"); |
| 551 | + break; |
| 552 | + case 6: |
| 553 | + $text = wfMsg("imagepage"); |
| 554 | + break; |
| 555 | + case 7: |
| 556 | + $text = wfMsg("viewtalkpage"); |
| 557 | + break; |
| 558 | + default: |
| 559 | + $text= wfMsg("articlepage"); |
| 560 | + } |
| 561 | + |
| 562 | + $link = $wgTitle->getText(); |
| 563 | + if ($nstext = $wgLang->getNsText($tns) ) { # add namespace if necessary |
| 564 | + $link = $nstext . ":" . $link ; |
| 565 | + } |
| 566 | + $s .= $this->makeLink($link, $text ); |
| 567 | + $s .="\n<hr>"; |
| 568 | + } |
527 | 569 | } |
| 570 | + |
| 571 | + |
528 | 572 | if ( 0 != $wgUser->getID() ) { |
529 | 573 | $s .= $this->specialLink( "upload" ) . $sep; |
530 | 574 | } |
Index: trunk/phpwiki/newcodebase/Language.php |
— | — | @@ -317,6 +317,7 @@ |
318 | 318 | "userpage" => "View user page", |
319 | 319 | "wikipediapage" => "View meta page", |
320 | 320 | "imagepage" => "View image page", |
| 321 | +"viewtalkpage" => "View discussion", |
321 | 322 | "otherlanguages" => "Other languages", |
322 | 323 | "redirectedfrom" => "(Redirected from $1)", |
323 | 324 | "lastmodified" => "The page was last modified $1.", |