* Exif::validate(): Using $this->debug() rather than wfDebug()
[lhc/web/wiklou.git] / languages / LanguageLa.php
1 <?php
2 /** Latin (lingua Latina)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 /* private */ $wgNamespaceNamesLa = array(
9 NS_SPECIAL => 'Specialis',
10 NS_MAIN => '',
11 NS_TALK => 'Disputatio',
12 NS_USER => 'Usor',
13 NS_USER_TALK => 'Disputatio_Usoris',
14 NS_PROJECT => $wgMetaNamespace,
15 NS_PROJECT_TALK => FALSE, # Set in constructor
16 NS_IMAGE => 'Imago',
17 NS_IMAGE_TALK => 'Disputatio_Imaginis',
18 NS_MEDIAWIKI => 'MediaWiki',
19 NS_MEDIAWIKI_TALK => 'Disputatio_MediaWiki',
20 NS_TEMPLATE => 'Formula',
21 NS_TEMPLATE_TALK => 'Disputatio_Formulae',
22 NS_HELP => 'Auxilium',
23 NS_HELP_TALK => 'Disputatio_Auxilii',
24 NS_CATEGORY => 'Categoria',
25 NS_CATEGORY_TALK => 'Disputatio_Categoriae',
26 ) + $wgNamespaceNamesEn;
27
28 /* private */ $wgQuickbarSettingsLa = array(
29 "Nullus", "Constituere a sinistra", "Constituere a dextra", "Innens a sinistra"
30 );
31
32 /* private */ $wgSkinNamesLa = array(
33 'standard' => 'Norma',
34 'nostalgia' => 'Nostalgia',
35 'cologneblue' => 'Caerulus Colonia',
36 'smarty' => 'Paddington',
37 'montparnasse' => 'Montparnasse',
38 'davinci' => 'DaVinci',
39 'mono' => 'Mono',
40 'monobook' => 'MonoBook',
41 'myskin' => 'MySkin'
42 );
43
44 # All special pages have to be listed here: a description of ""
45 # will make them not show up on the "Special Pages" page, which
46 # is the right thing for some of them (such as the "targeted" ones).
47 #
48 /* private */ $wgValidSpecialPagesLa = array(
49 'Userlogin' => '',
50 'Userlogout' => '',
51 'Preferences' => 'Praeferentiae usoris',
52 'Watchlist' => 'Paginae custoditae',
53 'Recentchanges' => 'Mutationes recentes',
54 'Upload' => 'Onerare fascicula',
55 'Imagelist' => 'Index imaginum',
56 'Listusers' => 'Usores perscripti',
57 'Statistics' => 'Statisticas',
58 'Randompage' => 'Pagina fortuita',
59
60 'Lonelypages' => 'Paginae orbatae',
61 'Unusedimages' => 'Imagines orbatae',
62 'Popularpages' => 'Res populares',
63 'Wantedpages' => 'Res desideratissimae',
64 'Shortpages' => 'Res breves',
65 'Longpages' => 'Res longae',
66 'Newpages' => 'Res novae',
67 # "Intl" => "Interlanguage Links",
68 "Allpages" => "Totae paginae (ex indice)",
69
70 "Ipblocklist" => "Loci IP obstructi",
71 "Maintenance" => "Pagina alimentori",
72 "Specialpages" => "", # "Paginae specialiae",
73 "Contributions" => "", # "Conlationes",
74 "Emailuser" => "", # "Mittere litteras electronicas ad usorum(?)",
75 "Whatlinkshere" => "", # "Nexi ad hanc paginam",
76 "Recentchangeslinked" => "", # "Mutationes conlata (?)",
77 "Movepage" => "", # "Motare hanc paginam",
78 "Booksources" => "Fontes externi (libri)",
79 # "Categories" => "Page categories",
80 "Export" => "Exportare in XML",
81 "Version" => "Version",
82 );
83
84 /* private */ $wgSysopSpecialPagesLa = array(
85 'Blockip' => 'Obstruere locum IP',
86 'Asksql' => 'Quaerere basem dati',
87 'Undelete' => 'Videre et restituere paginas deletas'
88 );
89
90 /* private */ $wgDeveloperSpecialPagesLa = array(
91 'Lockdb' => 'Suspendere mutationes',
92 'Unlockdb' => 'Permittere mutationes',
93 'Debug' => 'Nuntii de refectis'
94 );
95
96 $wgAllMessagesLa = array(
97
98 # User Toggles
99
100 "tog-underline" => "Subscribere nexi",
101 "tog-highlightbroken" => "Formare nexos fractos <a href=\"\" class=\"new\">sici</a> (alioqui: sic<a href=\"\" class=\"internal\">?</a>).",
102 "tog-justify" => "Saepire capites",
103 "tog-hideminor" => "Celare mutationes recentes minores",
104 "tog-usenewrc" => "Mutationes recentes amplificatae (non efficit in tota navigatra)",
105 "tog-numberheadings" => "Numerare indices necessario",
106 "tog-rememberpassword" => "Recordari tesserae inter conventa (uti cookies)",
107 "tog-editwidth" => "Capsa recensitorum totam latitudinem habet",
108 "tog-editondblclick" => "Premere bis ut paginam recensere (uti JavaScript)",
109 "tog-watchdefault" => "Custodire res novas et mutatas",
110 "tog-minordefault" => "Notare totas mutations ut minor",
111 "tog-previewontop" => "Monstrare praevisus ante capsam recensiti, non post ipsam",
112
113 # Dates
114
115 'sunday' => 'dies Solis',
116 'monday' => 'dies Lunae',
117 'tuesday' => 'dies Martis',
118 'wednesday' => 'dies Mercuri',
119 'thursday' => 'dies Iovis',
120 'friday' => 'dies Veneris',
121 'saturday' => 'dies Saturni',
122 'january' => 'Ianuarii',
123 'february' => 'Februarii',
124 'march' => 'Martii',
125 'april' => 'Aprilis',
126 'may_long' => 'Maii',
127 'june' => 'Iunii',
128 'july' => 'Iulii',
129 'august' => 'Augusti',
130 'september' => 'Septembri',
131 'october' => 'Octobri',
132 'november' => 'Novembri',
133 'december' => 'Decembri',
134 'jan' => 'ian',
135 'feb' => 'feb',
136 'mar' => 'mar',
137 'apr' => 'apr',
138 'may' => 'mai',
139 'jun' => 'iun',
140 'jul' => 'iul',
141 'aug' => 'aug',
142 'sep' => 'sep',
143 'oct' => 'oct',
144 'nov' => 'nov',
145 'dec' => 'dec',
146
147 # Math
148 'mw_math_png' => "Semper vertere PNG",
149 'mw_math_simple' => "HTML si admodum simplex, alioqui PNG",
150 'mw_math_html' => "HTML si fieri potest, alioqui PNG",
151 'mw_math_source' => "Stet ut TeX (pro navigatri texti)",
152 'mw_math_modern' => "Commendatum pro navigatri recentes",
153 'mw_math_mathml' => 'MathML',
154 );
155
156 require_once( "LanguageUtf8.php" );
157
158 class LanguageLa extends LanguageUtf8 {
159 function LanguageLa() {
160 global $wgNamespaceNamesLa, $wgMetaNamespace;
161 LanguageUtf8::LanguageUtf8();
162 $wgNamespaceNamesLa[NS_PROJECT_TALK] = 'Disputatio_' .
163 $this->convertGrammar( $wgMetaNamespace, 'genitive' );
164 }
165
166 function getNamespaces() {
167 global $wgNamespaceNamesLa;
168 return $wgNamespaceNamesLa;
169 }
170
171
172 function getNsIndex( $text ) {
173 global $wgNamespaceNamesLa;
174 global $wgMetaNamespace;
175
176 foreach ( $wgNamespaceNamesLa as $i => $n ) {
177 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
178 }
179
180 # Backwards compatibility hacks
181 if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) {
182 if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT;
183 if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK;
184 }
185 return false;
186 }
187
188 function getQuickbarSettings() {
189 global $wgQuickbarSettingsLa;
190 return $wgQuickbarSettingsLa;
191 }
192
193 function getSkinNames() {
194 global $wgSkinNamesLa;
195 return $wgSkinNamesLa;
196 }
197
198 function date( $ts, $adj = false )
199 {
200 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
201
202 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
203 " " . (0 + substr( $ts, 6, 2 )) . ", " .
204 substr( $ts, 0, 4 );
205 return $d;
206 }
207
208 function timeanddate( $ts, $adj = false )
209 {
210 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
211 }
212
213 function getValidSpecialPages()
214 {
215 global $wgValidSpecialPagesLa;
216 return $wgValidSpecialPagesLa;
217 }
218
219 function getSysopSpecialPages()
220 {
221 global $wgSysopSpecialPagesLa;
222 return $wgSysopSpecialPagesLa;
223 }
224
225 function getDeveloperSpecialPages()
226 {
227 global $wgDeveloperSpecialPagesLa;
228 return $wgDeveloperSpecialPagesLa;
229 }
230
231 function getMessage( $key ) {
232 global $wgAllMessagesLa;
233 if( isset( $wgAllMessagesLa[$key] ) ) {
234 return $wgAllMessagesLa[$key];
235 }
236 return parent::getMessage( $key );
237 }
238
239 /**
240 * Convert from the nominative form of a noun to some other case
241 *
242 * Just used in a couple places for sitenames; special-case as necessary.
243 * Rules are far from complete.
244 */
245 function convertGrammar( $word, $case ) {
246 switch ( $case ) {
247 case 'genitive':
248 // 1st and 2nd declension singular only.
249 $in = array( '/a$/', '/u[ms]$/', '/tio$/' );
250 $out = array( 'ae', 'i', 'tionis' );
251 return preg_replace( $in, $out, $word );
252 default:
253 return $word;
254 }
255 }
256
257 }
258
259
260 ?>