]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - languages/LanguageLa.php
MediaWiki 1.5.8 (initial commit)
[autoinstallsdev/mediawiki.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 ) + $wgSkinNamesEn;
37
38
39 $wgAllMessagesLa = array(
40
41 # User Toggles
42
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",
55
56 # Dates
57
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',
67 'march' => 'Martii',
68 'april' => 'Aprilis',
69 'may_long' => 'Maii',
70 'june' => 'Iunii',
71 'july' => 'Iulii',
72 'august' => 'Augusti',
73 'september' => 'Septembri',
74 'october' => 'Octobri',
75 'november' => 'Novembri',
76 'december' => 'Decembri',
77 'jan' => 'ian',
78 'feb' => 'feb',
79 'mar' => 'mar',
80 'apr' => 'apr',
81 'may' => 'mai',
82 'jun' => 'iun',
83 'jul' => 'iul',
84 'aug' => 'aug',
85 'sep' => 'sep',
86 'oct' => 'oct',
87 'nov' => 'nov',
88 'dec' => 'dec',
89
90 # Math
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',
97 );
98
99 require_once( "LanguageUtf8.php" );
100
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' );
107         }
108
109         function getNamespaces() {
110                 global $wgNamespaceNamesLa;
111                 return $wgNamespaceNamesLa;
112         }
113
114         function getNsIndex( $text ) {
115                 global $wgNamespaceNamesLa;
116                 global $wgMetaNamespace;
117
118                 foreach ( $wgNamespaceNamesLa as $i => $n ) {
119                         if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
120                 }
121
122                 # Backwards compatibility hacks
123                 if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) {
124                         if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT;
125                         if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK;
126                 }
127                 return false;
128         }
129
130         function getQuickbarSettings() {
131                 global $wgQuickbarSettingsLa;
132                 return $wgQuickbarSettingsLa;
133         }
134
135         function getSkinNames() {
136                 global $wgSkinNamesLa;
137                 return $wgSkinNamesLa;
138         }
139
140         function date( $ts, $adj = false ) {
141                 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
142
143                 $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
144                   " " . (0 + substr( $ts, 6, 2 )) . ", " .
145                   substr( $ts, 0, 4 );
146                 return $d;
147         }
148
149         function timeanddate( $ts, $adj = false ) {
150                 return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
151         }
152
153         function getMessage( $key ) {
154                 global $wgAllMessagesLa;
155                 if( isset( $wgAllMessagesLa[$key] ) ) {
156                         return $wgAllMessagesLa[$key];
157                 }
158                 return parent::getMessage( $key );
159         }
160
161         /**
162          * Convert from the nominative form of a noun to some other case
163          *
164          * Just used in a couple places for sitenames; special-case as necessary.
165          * Rules are far from complete.
166          */
167         function convertGrammar( $word, $case ) {
168                 switch ( $case ) {
169                 case 'genitive':
170                         // 1st and 2nd declension singular only.
171                         $in  = array( '/a$/', '/u[ms]$/', '/tio$/' );
172                         $out = array( 'ae',   'i',        'tionis' );
173                         return preg_replace( $in, $out, $word );
174                 default:
175                         return $word;
176                 }
177         }
178
179 }
180
181
182 ?>