define('MAG_FULLURLE', 47);
define('MAG_LCFIRST', 48);
define('MAG_UCFIRST', 49);
+define('MAG_LC', 50);
+define('MAG_UC', 51);
$wgVariableIDs = array(
MAG_CURRENTMONTH,
}
}
- # LCFIRST and UCFIRST
+ # LCFIRST, UCFIRST, LC and UC
if ( !$found ) {
$lcfirst =& MagicWord::get( MAG_LCFIRST );
$ucfirst =& MagicWord::get( MAG_UCFIRST );
+ $lc =& MagicWord::get( MAG_LC );
+ $uc =& MagicWord::get( MAG_UC );
if ( $lcfirst->matchStartAndRemove( $part1 ) ) {
$text = $linestart . $wgContLang->lcfirst( $part1 );
$found = true;
} else if ( $ucfirst->matchStartAndRemove( $part1 ) ) {
$text = $linestart . $wgContLang->ucfirst( $part1 );
$found = true;
+ } else if ( $lc->matchStartAndRemove( $part1 ) ) {
+ $text = $linestart . $wgContLang->lc( $part1 );
+ $found = true;
+ } else if ( $uc->matchStartAndRemove( $part1 ) ) {
+ $text = $linestart . $wgContLang->uc( $part1 );
+ $found = true;
}
}
MAG_FULLURLE => array( 0, 'FULLURLE:' ),
MAG_LCFIRST => array( 0, 'LCFIRST:' ),
MAG_UCFIRST => array( 0, 'UCFIRST:' ),
+ MAG_LC => array( 0, 'LC:' ),
+ MAG_UC => array( 0, 'UC:' ),
);
#-------------------------------------------------------------------