Index: trunk/extensions/Babel/Babel.class.php |
— | — | @@ -53,6 +53,20 @@ |
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
| 57 | + $cellspacing = wfMsgForContent( 'babel-box-cellspacing' ); |
| 58 | + if ( strlen( $cellspacing ) == 0 ) { |
| 59 | + $cellspacing = ''; |
| 60 | + } else { |
| 61 | + $cellspacing = ' cellspacing="'.$cellspacing.'"'; |
| 62 | + } |
| 63 | + |
| 64 | + $cellpadding = wfMsgForContent( 'babel-box-cellpadding' ); |
| 65 | + if ( strlen( $cellpadding ) == 0 ) { |
| 66 | + $cellpadding = ''; |
| 67 | + } else { |
| 68 | + $cellpadding = ' cellpadding="'.$cellpadding.'"'; |
| 69 | + } |
| 70 | + |
57 | 71 | $top = wfMsgExt( 'babel', array( 'parsemag', 'content' ), self::$title->getDBkey() ); |
58 | 72 | if ( strlen( $top ) == 0 ) { |
59 | 73 | $top = ''; |
— | — | @@ -75,9 +89,6 @@ |
76 | 90 | $footer = '! class="mw-babel-footer" | ' . $footer; |
77 | 91 | } |
78 | 92 | |
79 | | - $cellspacing = Babel::mHtmlAttrib( 'cellspacing', 'babel-box-cellspacing' ); |
80 | | - $cellpadding = Babel::mHtmlAttrib( 'cellpadding', 'babel-box-cellpadding' ); |
81 | | - |
82 | 93 | $tower = <<<EOT |
83 | 94 | {|$cellspacing$cellpadding class="mw-babel-wrapper" |
84 | 95 | $top |
— | — | @@ -188,13 +199,11 @@ |
189 | 200 | |
190 | 201 | $dir_content = wfMsgForContent( 'babel-directionality' ); |
191 | 202 | $dir_current = wfMsgExt( 'babel-directionality', array( 'language' => $code ) ); |
| 203 | + $cellspacing = wfMsgForContent( 'babel-cellspacing' ); |
192 | 204 | |
193 | | - $cellspacing = Babel::mHtmlAttrib( 'cellspacing', 'babel-cellspacing' ); |
194 | | - $cellpadding = Babel::mHtmlAttrib( 'cellpadding', 'babel-cellpadding' ); |
195 | | - |
196 | 205 | $box = <<<EOT |
197 | 206 | <div class="mw-babel-box mw-babel-box-$level" dir="$dir_content"> |
198 | | -{|$cellspacing$cellpadding |
| 207 | +{| cellspacing="$cellspacing" |
199 | 208 | ! dir="$dir_content" | $header |
200 | 209 | | dir="$dir_current" lang="$lang" xml:lang="$lang" | $text |
201 | 210 | |} |