Handle automatic reassignment of edits from duplicate accounts to the main
[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 function getNsText( $index ) {
172 global $wgNamespaceNamesLa;
173 return $wgNamespaceNamesLa[$index];
174 }
175
176 function getNsIndex( $text ) {
177 global $wgNamespaceNamesLa;
178 global $wgMetaNamespace;
179
180 foreach ( $wgNamespaceNamesLa as $i => $n ) {
181 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
182 }
183
184 # Backwards compatibility hacks
185 if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) {
186 if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT;
187 if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK;
188 }
189 return false;
190 }
191
192 function getQuickbarSettings() {
193 global $wgQuickbarSettingsLa;
194 return $wgQuickbarSettingsLa;
195 }
196
197 function getSkinNames() {
198 global $wgSkinNamesLa;
199 return $wgSkinNamesLa;
200 }
201
202 function date( $ts, $adj = false )
203 {
204 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
205
206 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
207 " " . (0 + substr( $ts, 6, 2 )) . ", " .
208 substr( $ts, 0, 4 );
209 return $d;
210 }
211
212 function timeanddate( $ts, $adj = false )
213 {
214 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
215 }
216
217 function getValidSpecialPages()
218 {
219 global $wgValidSpecialPagesLa;
220 return $wgValidSpecialPagesLa;
221 }
222
223 function getSysopSpecialPages()
224 {
225 global $wgSysopSpecialPagesLa;
226 return $wgSysopSpecialPagesLa;
227 }
228
229 function getDeveloperSpecialPages()
230 {
231 global $wgDeveloperSpecialPagesLa;
232 return $wgDeveloperSpecialPagesLa;
233 }
234
235 function getMessage( $key ) {
236 global $wgAllMessagesLa;
237 if( isset( $wgAllMessagesLa[$key] ) ) {
238 return $wgAllMessagesLa[$key];
239 }
240 return parent::getMessage( $key );
241 }
242
243 /**
244 * Convert from the nominative form of a noun to some other case
245 *
246 * Just used in a couple places for sitenames; special-case as necessary.
247 * Rules are far from complete.
248 */
249 function convertGrammar( $word, $case ) {
250 switch ( $case ) {
251 case 'genitive':
252 // 1st and 2nd declension singular only.
253 $in = array( '/a$/', '/u[ms]$/' );
254 $out = array( 'ae', 'i' );
255 return preg_replace( $in, $out, $word );
256 default:
257 return $word;
258 }
259 }
260
261 }
262
263
264 ?>