Index: trunk/phase3/languages/LanguagePt.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * @subpackage Language |
15 | 15 | */ |
16 | 16 | |
17 | | -if( defined( 'MEDIAWIKI' ) ) { |
| 17 | +require_once( 'LanguageUtf8.php' ); |
18 | 18 | |
19 | 19 | # |
20 | 20 | # In general you should not make customizations in these language files |
— | — | @@ -22,9 +22,6 @@ |
23 | 23 | # See http://meta.wikipedia.org/wiki/MediaWiki_namespace |
24 | 24 | # |
25 | 25 | |
26 | | -if($wgMetaNamespace === FALSE) |
27 | | - $wgMetaNamespace = str_replace( ' ', '_', $wgSitename ); |
28 | | - |
29 | 26 | /* private */ $wgNamespaceNamesPt = array( |
30 | 27 | NS_MEDIA => 'Media', # -2 |
31 | 28 | NS_SPECIAL => 'Especial', # -1 |
— | — | @@ -72,15 +69,6 @@ |
73 | 70 | 'chick' => 'Chick' |
74 | 71 | ) + $wgSkinNamesEn; |
75 | 72 | |
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 | | - |
85 | 73 | # Whether to use user or default setting in Language::date() |
86 | 74 | /* private */ $wgDateFormatsPt = array( |
87 | 75 | 'Sem preferência', |
— | — | @@ -90,34 +78,7 @@ |
91 | 79 | 'ISO 8601' => '2001-01-15 16:12:34' |
92 | 80 | ); |
93 | 81 | |
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 | | -); |
100 | 82 | |
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 | | - |
122 | 83 | # Note to translators: |
123 | 84 | # Please include the English words as synonyms. This allows people |
124 | 85 | # from other wikis to contribute more easily. |
— | — | @@ -183,31 +144,6 @@ |
184 | 145 | |
185 | 146 | /* private */ $wgAllMessagesPt = array( |
186 | 147 | |
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 | | - |
212 | 148 | # User preference toggles |
213 | 149 | 'tog-underline' => 'Sublinhar links', |
214 | 150 | 'tog-highlightbroken' => 'Formatar links quebrados <a href="" class="new">como isto</a> (alternativa: como isto<a href="" class="internal">?</a>).', |
— | — | @@ -2040,8 +1976,6 @@ |
2041 | 1977 | 'confirm_purge_button' => 'OK', |
2042 | 1978 | ); |
2043 | 1979 | |
2044 | | -require_once( 'LanguageUtf8.php' ); |
2045 | | - |
2046 | 1980 | class LanguagePt extends LanguageUtf8 { |
2047 | 1981 | |
2048 | 1982 | function timeanddate( $ts, $adj = false ) { |
— | — | @@ -2056,15 +1990,6 @@ |
2057 | 1991 | } |
2058 | 1992 | |
2059 | 1993 | /** |
2060 | | - * Exports $wgBookstoreListPt |
2061 | | - * @return array |
2062 | | - */ |
2063 | | - function getBookstoreList () { |
2064 | | - global $wgBookstoreListPt; |
2065 | | - return $wgBookstoreListPt; |
2066 | | - } |
2067 | | - |
2068 | | - /** |
2069 | 1994 | * Exports $wgNamespaceNamesPt |
2070 | 1995 | * @return array |
2071 | 1996 | */ |
— | — | @@ -2072,36 +1997,6 @@ |
2073 | 1998 | global $wgNamespaceNamesPt; |
2074 | 1999 | return $wgNamespaceNamesPt; |
2075 | 2000 | } |
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 | | - } |
2106 | 2001 | |
2107 | 2002 | /** |
2108 | 2003 | * Exports $wgQuickbarSettingsPt |
— | — | @@ -2122,15 +2017,6 @@ |
2123 | 2018 | } |
2124 | 2019 | |
2125 | 2020 | /** |
2126 | | - * Exports $wgValidationTypesPt |
2127 | | - * @return array |
2128 | | - */ |
2129 | | - function getValidationTypes() { |
2130 | | - global $wgValidationTypesPt; |
2131 | | - return $wgValidationTypesPt; |
2132 | | - } |
2133 | | - |
2134 | | - /** |
2135 | 2021 | * Exports $wgDateFormatsPt |
2136 | 2022 | * @return array |
2137 | 2023 | */ |
— | — | @@ -2157,5 +2043,4 @@ |
2158 | 2044 | return $wgMagicWordsPt; |
2159 | 2045 | } |
2160 | 2046 | } |
2161 | | -} |
2162 | 2047 | ?> |