2 /** Latin (lingua Latina)
8 /* private */ $wgNamespaceNamesLa = array(
9 NS_SPECIAL
=> 'Specialis',
11 NS_TALK
=> 'Disputatio',
13 NS_USER_TALK
=> 'Disputatio_Usoris',
14 NS_PROJECT
=> $wgMetaNamespace,
15 NS_PROJECT_TALK
=> FALSE, # Set in constructor
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;
28 /* private */ $wgQuickbarSettingsLa = array(
29 "Nullus", "Constituere a sinistra", "Constituere a dextra", "Innens a sinistra"
32 /* private */ $wgSkinNamesLa = array(
33 'standard' => 'Norma',
34 'nostalgia' => 'Nostalgia',
35 'cologneblue' => 'Caerulus Colonia'
39 $wgAllMessagesLa = array(
43 "tog-underline" => "Subscribere nexi",
44 "tog-highlightbroken" => "Formare nexos fractos <a href=\"\" class=\"new\">sici</a> (alioqui: sic<a href=\"\" class=\"internal\">?</a>).",
45 "tog-justify" => "Saepire capites",
46 "tog-hideminor" => "Celare mutationes recentes minores",
47 "tog-usenewrc" => "Mutationes recentes amplificatae (non efficit in tota navigatra)",
48 "tog-numberheadings" => "Numerare indices necessario",
49 "tog-rememberpassword" => "Recordari tesserae inter conventa (uti cookies)",
50 "tog-editwidth" => "Capsa recensitorum totam latitudinem habet",
51 "tog-editondblclick" => "Premere bis ut paginam recensere (uti JavaScript)",
52 "tog-watchdefault" => "Custodire res novas et mutatas",
53 "tog-minordefault" => "Notare totas mutations ut minor",
54 "tog-previewontop" => "Monstrare praevisus ante capsam recensiti, non post ipsam",
58 'sunday' => 'dies Solis',
59 'monday' => 'dies Lunae',
60 'tuesday' => 'dies Martis',
61 'wednesday' => 'dies Mercuri',
62 'thursday' => 'dies Iovis',
63 'friday' => 'dies Veneris',
64 'saturday' => 'dies Saturni',
65 'january' => 'Ianuarii',
66 'february' => 'Februarii',
72 'august' => 'Augusti',
73 'september' => 'Septembri',
74 'october' => 'Octobri',
75 'november' => 'Novembri',
76 'december' => 'Decembri',
91 'mw_math_png' => "Semper vertere PNG",
92 'mw_math_simple' => "HTML si admodum simplex, alioqui PNG",
93 'mw_math_html' => "HTML si fieri potest, alioqui PNG",
94 'mw_math_source' => "Stet ut TeX (pro navigatri texti)",
95 'mw_math_modern' => "Commendatum pro navigatri recentes",
96 'mw_math_mathml' => 'MathML',
99 require_once( "LanguageUtf8.php" );
101 class LanguageLa
extends LanguageUtf8
{
102 function LanguageLa() {
103 global $wgNamespaceNamesLa, $wgMetaNamespace;
104 LanguageUtf8
::LanguageUtf8();
105 $wgNamespaceNamesLa[NS_PROJECT_TALK
] = 'Disputatio_' .
106 $this->convertGrammar( $wgMetaNamespace, 'genitive' );
109 function getNamespaces() {
110 global $wgNamespaceNamesLa;
111 return $wgNamespaceNamesLa;
114 function getNsIndex( $text ) {
115 global $wgNamespaceNamesLa;
116 global $wgMetaNamespace;
118 foreach ( $wgNamespaceNamesLa as $i => $n ) {
119 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
122 # Backwards compatibility hacks
123 if( $wgMetaNamespace == 'Vicipaedia' ||
$wgMetaNamespace == 'Victionarium' ) {
124 if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK
;
129 function getQuickbarSettings() {
130 global $wgQuickbarSettingsLa;
131 return $wgQuickbarSettingsLa;
134 function getSkinNames() {
135 global $wgSkinNamesLa;
136 return $wgSkinNamesLa;
139 function getMessage( $key ) {
140 global $wgAllMessagesLa;
141 if( isset( $wgAllMessagesLa[$key] ) ) {
142 return $wgAllMessagesLa[$key];
144 return parent
::getMessage( $key );
148 * Convert from the nominative form of a noun to some other case
150 * Just used in a couple places for sitenames; special-case as necessary.
151 * Rules are far from complete.
153 function convertGrammar( $word, $case ) {
156 // 1st and 2nd declension singular only.
157 $in = array( '/a$/', '/u[ms]$/', '/tio$/' );
158 $out = array( 'ae', 'i', 'tionis' );
159 return preg_replace( $in, $out, $word );