41260aad6066e9466955ca9b1f7facb351baccb6
[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
45 /* private */ $wgBookstoreListLa = array(
46 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
47 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1',
48 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
49 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
50 );
51
52
53 # All special pages have to be listed here: a description of ""
54 # will make them not show up on the "Special Pages" page, which
55 # is the right thing for some of them (such as the "targeted" ones).
56 #
57 /* private */ $wgValidSpecialPagesLa = array(
58 'Userlogin' => '',
59 'Userlogout' => '',
60 'Preferences' => 'Praeferentiae usoris',
61 'Watchlist' => 'Paginae custoditae',
62 'Recentchanges' => 'Mutationes recentes',
63 'Upload' => 'Onerare fascicula',
64 'Imagelist' => 'Index imaginum',
65 'Listusers' => 'Usores perscripti',
66 'Statistics' => 'Statisticas',
67 'Randompage' => 'Pagina fortuita',
68
69 'Lonelypages' => 'Paginae orbatae',
70 'Unusedimages' => 'Imagines orbatae',
71 'Popularpages' => 'Res populares',
72 'Wantedpages' => 'Res desideratissimae',
73 'Shortpages' => 'Res breves',
74 'Longpages' => 'Res longae',
75 'Newpages' => 'Res novae',
76 # "Intl" => "Interlanguage Links",
77 "Allpages" => "Totae paginae (ex indice)",
78
79 "Ipblocklist" => "Loci IP obstructi",
80 "Maintenance" => "Pagina alimentori",
81 "Specialpages" => "", # "Paginae specialiae",
82 "Contributions" => "", # "Conlationes",
83 "Emailuser" => "", # "Mittere litteras electronicas ad usorum(?)",
84 "Whatlinkshere" => "", # "Nexi ad hanc paginam",
85 "Recentchangeslinked" => "", # "Mutationes conlata (?)",
86 "Movepage" => "", # "Motare hanc paginam",
87 "Booksources" => "Fontes externi (libri)",
88 # "Categories" => "Page categories",
89 "Export" => "Exportare in XML",
90 "Version" => "Version",
91 );
92
93 /* private */ $wgSysopSpecialPagesLa = array(
94 'Blockip' => 'Obstruere locum IP',
95 'Asksql' => 'Quaerere basem dati',
96 'Undelete' => 'Videre et restituere paginas deletas'
97 );
98
99 /* private */ $wgDeveloperSpecialPagesLa = array(
100 'Lockdb' => 'Suspendere mutationes',
101 'Unlockdb' => 'Permittere mutationes',
102 'Debug' => 'Nuntii de refectis'
103 );
104
105 $wgAllMessagesLa = array(
106 'special_version_prefix' => '',
107 'special_version_postfix' => '',
108
109 # User Toggles
110
111 "tog-underline" => "Subscribere nexi",
112 "tog-highlightbroken" => "Formare nexos fractos <a href=\"\" class=\"new\">sici</a> (alioqui: sic<a href=\"\" class=\"internal\">?</a>).",
113 "tog-justify" => "Saepire capites",
114 "tog-hideminor" => "Celare mutationes recentes minores",
115 "tog-usenewrc" => "Mutationes recentes amplificatae (non efficit in tota navigatra)",
116 "tog-numberheadings" => "Numerare indices necessario",
117 "tog-rememberpassword" => "Recordari tesserae inter conventa (uti cookies)",
118 "tog-editwidth" => "Capsa recensitorum totam latitudinem habet",
119 "tog-editondblclick" => "Premere bis ut paginam recensere (uti JavaScript)",
120 "tog-watchdefault" => "Custodire res novas et mutatas",
121 "tog-minordefault" => "Notare totas mutations ut minor",
122 "tog-previewontop" => "Monstrare praevisus ante capsam recensiti, non post ipsam",
123
124 # Dates
125
126 'sunday' => 'dies Solis',
127 'monday' => 'dies Lunae',
128 'tuesday' => 'dies Martis',
129 'wednesday' => 'dies Mercuri',
130 'thursday' => 'dies Iovis',
131 'friday' => 'dies Veneris',
132 'saturday' => 'dies Saturni',
133 'january' => 'Ianuarii',
134 'february' => 'Februarii',
135 'march' => 'Martii',
136 'april' => 'Aprilis',
137 'may_long' => 'Maii',
138 'june' => 'Iunii',
139 'july' => 'Iulii',
140 'august' => 'Augusti',
141 'september' => 'Septembri',
142 'october' => 'Octobri',
143 'november' => 'Novembri',
144 'december' => 'Decembri',
145 'jan' => 'ian',
146 'feb' => 'feb',
147 'mar' => 'mar',
148 'apr' => 'apr',
149 'may' => 'mai',
150 'jun' => 'iun',
151 'jul' => 'iul',
152 'aug' => 'aug',
153 'sep' => 'sep',
154 'oct' => 'oct',
155 'nov' => 'nov',
156 'dec' => 'dec',
157
158 # Math
159 'mw_math_png' => "Semper vertere PNG",
160 'mw_math_simple' => "HTML si admodum simplex, alioqui PNG",
161 'mw_math_html' => "HTML si fieri potest, alioqui PNG",
162 'mw_math_source' => "Stet ut TeX (pro navigatri texti)",
163 'mw_math_modern' => "Commendatum pro navigatri recentes",
164 'mw_math_mathml' => 'MathML',
165 );
166
167 require_once( "LanguageUtf8.php" );
168
169 class LanguageLa extends LanguageUtf8 {
170 function LanguageLa() {
171 global $wgNamespaceNamesLa, $wgMetaNamespace;
172 LanguageUtf8::LanguageUtf8();
173 $wgNamespaceNamesLa[NS_PROJECT_TALK] = 'Disputatio_' .
174 $this->convertGrammar( $wgMetaNamespace, 'genitive' );
175 }
176
177 function getNamespaces() {
178 global $wgNamespaceNamesLa;
179 return $wgNamespaceNamesLa;
180 }
181
182 function getNsText( $index ) {
183 global $wgNamespaceNamesLa;
184 return $wgNamespaceNamesLa[$index];
185 }
186
187 function getNsIndex( $text ) {
188 global $wgNamespaceNamesLa;
189 global $wgMetaNamespace;
190
191 foreach ( $wgNamespaceNamesLa as $i => $n ) {
192 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
193 }
194
195 # Backwards compatibility hacks
196 if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) {
197 if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT;
198 if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK;
199 }
200 return false;
201 }
202
203 function getQuickbarSettings() {
204 global $wgQuickbarSettingsLa;
205 return $wgQuickbarSettingsLa;
206 }
207
208 function getSkinNames() {
209 global $wgSkinNamesLa;
210 return $wgSkinNamesLa;
211 }
212
213 function date( $ts, $adj = false )
214 {
215 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
216
217 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
218 " " . (0 + substr( $ts, 6, 2 )) . ", " .
219 substr( $ts, 0, 4 );
220 return $d;
221 }
222
223 function timeanddate( $ts, $adj = false )
224 {
225 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
226 }
227
228 function getValidSpecialPages()
229 {
230 global $wgValidSpecialPagesLa;
231 return $wgValidSpecialPagesLa;
232 }
233
234 function getSysopSpecialPages()
235 {
236 global $wgSysopSpecialPagesLa;
237 return $wgSysopSpecialPagesLa;
238 }
239
240 function getDeveloperSpecialPages()
241 {
242 global $wgDeveloperSpecialPagesLa;
243 return $wgDeveloperSpecialPagesLa;
244 }
245
246 function getMessage( $key ) {
247 global $wgAllMessagesLa;
248 if( isset( $wgAllMessagesLa[$key] ) ) {
249 return $wgAllMessagesLa[$key];
250 }
251 return parent::getMessage( $key );
252 }
253
254 /**
255 * Convert from the nominative form of a noun to some other case
256 *
257 * Just used in a couple places for sitenames; special-case as necessary.
258 * Rules are far from complete.
259 */
260 function convertGrammar( $word, $case ) {
261 switch ( $case ) {
262 case 'genitive':
263 // 1st and 2nd declension singular only.
264 $in = array( '/a$/', '/u[ms]$/' );
265 $out = array( 'ae', 'i' );
266 return preg_replace( $in, $out, $word );
267 default:
268 return $word;
269 }
270 }
271
272 }
273
274
275 ?>