* Removed broken wgAllowAnonymousMinor and added new group right minoredit
* (bug 4457) Update for Portuguese language (pt)
* convertPlural breakage fixed a little
-* Bug 4456: Add hook for marking article patrolled
+* (bug 4456) Add hook for marking article patrolled
+* (bug 3194) default implementation of translateBlockExpiry
+ which uses ipboptions
=== Caveats ===
* @see LanguageFi.php for example implementation
*/
function translateBlockExpiry( $str ) {
+
+ $scBlockExpiryOptions = wfMsg( 'ipboptions' );
+
+ if ( $scBlockExpiryOptions == '-') {
+ return $str;
+ }
+
+ foreach (explode(',', $scBlockExpiryOptions) as $option) {
+ if ( strpos($option, ":") === false )
+ continue;
+ list($show, $value) = explode(":", $option);
+ if ( strcmp ( $str, $value) == 0 )
+ return '<span title="' . htmlspecialchars($str). '">' .
+ htmlspecialchars( trim( $show ) ) . '</span>';
+ }
+
return $str;
}