r24000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23999‎ | r24000 | r24001 >
Date:12:06, 11 July 2007
Author:raymond
Status:old
Tags:
Comment:
Fix German translation
Modified paths:
  • /trunk/extensions/LabeledSectionTransclusion/lst.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LabeledSectionTransclusion/lst.php
@@ -43,15 +43,15 @@
4444 /// Add the magic words - possibly with more readable aliases
4545 function wfLabeledSectionTransclusionMagic( &$magicWords, $langCode ) {
4646 global $wgParser, $wgLstLocal;
47 -
48 - switch ($langCode) {
 47+
 48+ switch( $langCode ) {
4949 case 'de':
50 - $include = 'steil';
51 - $exclude = 'steil-x';
52 - $wgLstLocal=array('section'=>'steil', 'begin'=>'anfang', 'end'=>'ende');
 50+ $include = 'Abschnitt';
 51+ $exclude = 'Abschnitt-x';
 52+ $wgLstLocal = array( 'section' => 'Abschnitt', 'begin' => 'Anfang', 'end' => 'Ende') ;
5353 }
5454
55 - if (isset($include)) {
 55+ if( isset( $include ) ) {
5656 $magicWords['lst'] = array( 0, 'lst', 'section', $include );
5757 $magicWords['lstx'] = array( 0, 'lstx', 'section-x', $exclude );
5858 $wgParser->setHook( $include, 'wfLstNoop' );

Status & tagging log