* Add support for &preload=Page_name (load text of an existing page into
edit area) and &editintro=Page_name (load text of an existing page instead
of MediaWiki:Newpagetext) to &action=edit, if page is new.
-* (bugs 2633, 2672) Fix Estonian, Portuguese and Finnish numeric formatting
+* (bugs 2633, 2672, 2685) Fix Estonian, Portuguese, Italian and Finnish numeric formatting
* (bug 2658) Fix signature time, localtime to match timezone offset again
* Files from shared repositories (e.g. commons) now display with their
image description pages when viewed on local wikis.
return $wgQuickbarSettingsIt;
}
- function date( $ts, $adj = false )
- {
+ function date( $ts, $adj = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
return $d;
}
- function getValidSpecialPages()
- {
+ function getValidSpecialPages() {
global $wgValidSpecialPagesIt;
return $wgValidSpecialPagesIt;
}
- function getSysopSpecialPages()
- {
+ function getSysopSpecialPages() {
global $wgSysopSpecialPagesIt;
return $wgSysopSpecialPagesIt;
}
- function getDeveloperSpecialPages()
- {
+ function getDeveloperSpecialPages() {
global $wgDeveloperSpecialPagesIt;
return $wgDeveloperSpecialPagesIt;
}
- function getMessage( $key )
- {
+ function getMessage( $key ) {
global $wgAllMessagesIt;
if(array_key_exists($key, $wgAllMessagesIt))
return $wgAllMessagesIt[$key];
return parent::getMessage($key);
}
+ /**
+ * Italian numeric format is 201.511,17
+ */
+ function formatNum( $number, $year = false ) {
+ return $year ? $number : strtr($this->commafy($number), '.,', ',.' );
+ }
+
}
?>