port stuff from child PT_br to Pt
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 25 Aug 2005 17:32:32 +0000 (17:32 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 25 Aug 2005 17:32:32 +0000 (17:32 +0000)
languages/LanguagePt.php

index e276049..2c7e952 100644 (file)
@@ -1992,6 +1992,17 @@ require_once( 'LanguageUtf8.php' );
 
 class LanguagePt extends LanguageUtf8 {
 
+       function timeanddate( $ts, $adj = false ) {
+               return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj );
+       }
+
+       /**
+        * Portuguese numeric format is 123 456,78
+        */
+       function formatNum( $number, $year = false ) {
+               return $year ? $number : strtr($this->commafy($number), '.,', ', ' );
+       }
+
        /**
        * Exports $wgBookstoreListPt
        * @return array