r12285 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12284‎ | r12285 | r12286 >
Date:16:47, 29 December 2005
Author:nikerabbit
Status:old
Tags:
Comment:
Removed useless code
Modified paths:
  • /trunk/phase3/languages/LanguagePt.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguagePt.php
@@ -13,7 +13,7 @@
1414 * @subpackage Language
1515 */
1616
17 -if( defined( 'MEDIAWIKI' ) ) {
 17+require_once( 'LanguageUtf8.php' );
1818
1919 #
2020 # In general you should not make customizations in these language files
@@ -22,9 +22,6 @@
2323 # See http://meta.wikipedia.org/wiki/MediaWiki_namespace
2424 #
2525
26 -if($wgMetaNamespace === FALSE)
27 - $wgMetaNamespace = str_replace( ' ', '_', $wgSitename );
28 -
2926 /* private */ $wgNamespaceNamesPt = array(
3027 NS_MEDIA => 'Media', # -2
3128 NS_SPECIAL => 'Especial', # -1
@@ -72,15 +69,6 @@
7370 'chick' => 'Chick'
7471 ) + $wgSkinNamesEn;
7572
76 -/* private */ $wgMathNamesEn = array(
77 - MW_MATH_PNG => 'mw_math_png',
78 - MW_MATH_SIMPLE => 'mw_math_simple',
79 - MW_MATH_HTML => 'mw_math_html',
80 - MW_MATH_SOURCE => 'mw_math_source',
81 - MW_MATH_MODERN => 'mw_math_modern',
82 - MW_MATH_MATHML => 'mw_math_mathml'
83 -);
84 -
8573 # Whether to use user or default setting in Language::date()
8674 /* private */ $wgDateFormatsPt = array(
8775 'Sem preferência',
@@ -90,34 +78,7 @@
9179 'ISO 8601' => '2001-01-15 16:12:34'
9280 );
9381
94 -/* private */ $wgBookstoreListPt = array(
95 - 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
96 - 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1',
97 - 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
98 - 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
99 -);
10082
101 -/* private */ $wgWeekdayNamesPt = array(
102 - 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
103 - 'friday', 'saturday'
104 -);
105 -
106 -/* private */ $wgMonthNamesPt = array(
107 - 'january', 'february', 'march', 'april', 'may_long', 'june',
108 - 'july', 'august', 'september', 'october', 'november',
109 - 'december'
110 -);
111 -/* private */ $wgMonthNamesGenPt = array(
112 - 'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen',
113 - 'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen',
114 - 'december-gen'
115 -);
116 -
117 -/* private */ $wgMonthAbbreviationsPt = array(
118 - 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
119 - 'sep', 'oct', 'nov', 'dec'
120 -);
121 -
12283 # Note to translators:
12384 # Please include the English words as synonyms. This allows people
12485 # from other wikis to contribute more easily.
@@ -183,31 +144,6 @@
184145
185146 /* private */ $wgAllMessagesPt = array(
186147
187 -# The navigation toolbar, int: is used here to make sure that the appropriate
188 -# messages are automatically pulled from the user-selected language file.
189 -
190 -/*
191 -The sidebar for MonoBook is generated from this message, lines that do not
192 -begin with * or ** are discarded, furthermore lines that do begin with ** and
193 -do not contain | are also discarded, but don't depend on this behaviour for
194 -future releases. Also note that since each list value is wrapped in a unique
195 -XHTML id it should only appear once and include characters that are legal
196 -XHTML id names.
197 -
198 -Note to translators: Do not include this message in the language files you
199 -submit for inclusion in MediaWiki, it should always be inherited from the
200 -parent class in order maintain consistency across languages.
201 -*/
202 -'sidebar' => '
203 -* navigation
204 -** mainpage|mainpage
205 -** portal-url|portal
206 -** currentevents-url|currentevents
207 -** recentchanges-url|recentchanges
208 -** randompage-url|randompage
209 -** helppage|help
210 -** sitesupport-url|sitesupport',
211 -
212148 # User preference toggles
213149 'tog-underline' => 'Sublinhar links',
214150 'tog-highlightbroken' => 'Formatar links quebrados <a href="" class="new">como isto</a> (alternativa: como isto<a href="" class="internal">?</a>).',
@@ -2040,8 +1976,6 @@
20411977 'confirm_purge_button' => 'OK',
20421978 );
20431979
2044 -require_once( 'LanguageUtf8.php' );
2045 -
20461980 class LanguagePt extends LanguageUtf8 {
20471981
20481982 function timeanddate( $ts, $adj = false ) {
@@ -2056,15 +1990,6 @@
20571991 }
20581992
20591993 /**
2060 - * Exports $wgBookstoreListPt
2061 - * @return array
2062 - */
2063 - function getBookstoreList () {
2064 - global $wgBookstoreListPt;
2065 - return $wgBookstoreListPt;
2066 - }
2067 -
2068 - /**
20691994 * Exports $wgNamespaceNamesPt
20701995 * @return array
20711996 */
@@ -2072,36 +1997,6 @@
20731998 global $wgNamespaceNamesPt;
20741999 return $wgNamespaceNamesPt;
20752000 }
2076 -
2077 - /**
2078 - * Get a namespace value by key
2079 - * <code>
2080 - * $mw_ns = $wgContLang->getNsText( NS_MEDIAWIKI );
2081 - * echo $mw_ns; // prints 'MediaWiki'
2082 - * </code>
2083 - *
2084 - * @param int $index the array key of the namespace to return
2085 - * @return string
2086 - */
2087 - function getNsText( $index ) {
2088 - global $wgNamespaceNamesPt;
2089 - return $wgNamespaceNamesPt[$index];
2090 - }
2091 -
2092 - /**
2093 - * Get a namespace key by value
2094 - *
2095 - * @param string $text
2096 - * @return mixed An integer if $text is a valid value otherwise false
2097 - */
2098 - function getNsIndex( $text ) {
2099 - global $wgNamespaceNamesPt, $wgNamespaceNamesEn;
2100 -
2101 - foreach ( $wgNamespaceNamesPt as $i => $n ) {
2102 - if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
2103 - }
2104 - return false;
2105 - }
21062001
21072002 /**
21082003 * Exports $wgQuickbarSettingsPt
@@ -2122,15 +2017,6 @@
21232018 }
21242019
21252020 /**
2126 - * Exports $wgValidationTypesPt
2127 - * @return array
2128 - */
2129 - function getValidationTypes() {
2130 - global $wgValidationTypesPt;
2131 - return $wgValidationTypesPt;
2132 - }
2133 -
2134 - /**
21352021 * Exports $wgDateFormatsPt
21362022 * @return array
21372023 */
@@ -2157,5 +2043,4 @@
21582044 return $wgMagicWordsPt;
21592045 }
21602046 }
2161 -}
21622047 ?>

Status & tagging log