Index: trunk/phase3/includes/Skin.php |
— | — | @@ -504,12 +504,15 @@ |
505 | 505 | |
506 | 506 | if( count( $wgOut->mCategoryLinks ) == 0 ) return ''; |
507 | 507 | |
| 508 | + # Separator |
| 509 | + $sep = wfMsgHtml( 'catseparator' ); |
| 510 | + |
508 | 511 | // Use Unicode bidi embedding override characters, |
509 | 512 | // to make sure links don't smash each other up in ugly ways. |
510 | 513 | $dir = $wgContLang->isRTL() ? 'rtl' : 'ltr'; |
511 | 514 | $embed = "<span dir='$dir'>"; |
512 | 515 | $pop = '</span>'; |
513 | | - $t = $embed . implode ( "$pop | $embed" , $wgOut->mCategoryLinks ) . $pop; |
| 516 | + $t = $embed . implode ( "{$pop} {$sep} {$embed}" , $wgOut->mCategoryLinks ) . $pop; |
514 | 517 | |
515 | 518 | $msg = count( $wgOut->mCategoryLinks ) === 1 ? 'categories1' : 'categories'; |
516 | 519 | $s = $this->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Categories' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -116,6 +116,7 @@ |
117 | 117 | * Remove useless whitespace from Special:Brokenredirects header |
118 | 118 | * Treat "allmessagesnotsupporteddb" as wikitext when echoing; change default text |
119 | 119 | * (bug 5497) regeression in HTML normalization in 1.6 (unclosed <li>,<dd>,<dt>) |
| 120 | +* (bug 5709) Allow customisation of separator for categories |
120 | 121 | |
121 | 122 | == Compatibility == |
122 | 123 | |
Index: trunk/phase3/languages/Messages.php |
— | — | @@ -2024,6 +2024,9 @@ |
2025 | 2025 | # DISPLAYTITLE |
2026 | 2026 | 'displaytitle' => '(Link to this page as [[$1]])', |
2027 | 2027 | |
| 2028 | +# Separator for categories in page lists |
| 2029 | +'catseparator' => '|', |
| 2030 | + |
2028 | 2031 | ); |
2029 | 2032 | |
2030 | 2033 | |