function afterContent()
{
global $wgUser, $wgOut, $wgServer;
- global $wgTitle;
+ global $wgTitle, $wgLang;
if ( $wgOut->isPrintable() ) {
$s = "\n</div>\n";
} else { $lm = ""; }
$cr = wfMsg( "gnunote" );
- $s .= "<p><em>{$rf}{$lm} {$cr}</em>\n";
+ $s .= "<p>" . $wgLang->emphasize("{$rf}{$lm} {$cr}\n");
return $s;
}
return $this->doAfterContent();
# Enhanced RC ungrouped line
function recentChangesBlockLine ( $rcObj )
{
- global $wgUploadPath ;
+ global $wgUploadPath, $wgLang ;
# Get rc_xxxx variables
extract( $rcObj->mAttribs ) ;
$r .= $rcObj->usertalklink ;
# Comment
- if ( $rc_comment != "" && $rc_type != RC_MOVE )
- $r .= " <em>(".wfEscapeHTML($rc_comment).")</em>" ;
+ if ( $rc_comment != "" && $rc_type != RC_MOVE ) {
+ $r .= $wgLang->emphasize( " (".wfEscapeHTML($rc_comment).")" );
+ }
$r .= "<br>\n" ;
return $r ;
}
# Enhanced RC group
function recentChangesBlockGroup ( $block )
{
- global $wgUploadPath ;
+ global $wgUploadPath, $wgLang ;
$r = "" ;
$M = wfMsg( "minoreditletter" );
$r .= $rcObj->lastlink ;
$r .= ") . . ".$rcObj->userlink ;
$r .= $rcObj->usertalklink ;
- if ( $rc_comment != "" )
- $r .= " <em>(".wfEscapeHTML($rc_comment).")</em>" ;
+ if ( $rc_comment != "" ) {
+ $r .= $wgLang->emphasize( " (".wfEscapeHTML($rc_comment).")" ) ;
+ }
$r .= "<br>\n" ;
}
$r .= "</div>\n" ;
# Add comment
if ( "" != $rc_comment && "*" != $rc_comment && $rc_type != RC_MOVE ) {
- $s .= " <em>(" . wfEscapeHTML( $rc_comment ) . ")</em>";
+ $s .= $wgLang->emphasize(" (" . wfEscapeHTML( $rc_comment ) . ")");
}
$s .= "</li>\n";
. " . . {$ul} ({$nb})";
if ( "" != $c && "*" != $c ) {
- $s .= " <em>(" . wfEscapeHTML( $c ) . ")</em>";
+ $s .= $wgLang->emphasize(" (" . wfEscapeHTML( $c ) . ")");
}
$s .= "</li>\n";
return $s;
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}
+
+ # Italic is unsuitable for some languages
+ function emphasize( $text )
+ {
+ return "<em>$text</em>";
+ }
}
@include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );