2003-12-18 02:41:39 +00:00
|
|
|
<?php
|
2005-04-09 05:30:15 +00:00
|
|
|
/** Latin (lingua Latina)
|
|
|
|
|
*
|
2005-04-05 11:00:27 +00:00
|
|
|
* @package MediaWiki
|
|
|
|
|
* @subpackage Language
|
|
|
|
|
*/
|
2003-12-18 02:41:39 +00:00
|
|
|
|
2004-02-28 07:23:04 +00:00
|
|
|
/* private */ $wgNamespaceNamesLa = array(
|
2005-05-06 02:38:42 +00:00
|
|
|
NS_SPECIAL => 'Specialis',
|
|
|
|
|
NS_MAIN => '',
|
|
|
|
|
NS_TALK => 'Disputatio',
|
|
|
|
|
NS_USER => 'Usor',
|
|
|
|
|
NS_USER_TALK => 'Disputatio_Usoris',
|
|
|
|
|
NS_PROJECT => $wgMetaNamespace,
|
|
|
|
|
NS_PROJECT_TALK => FALSE, # Set in constructor
|
|
|
|
|
NS_IMAGE => 'Imago',
|
|
|
|
|
NS_IMAGE_TALK => 'Disputatio_Imaginis',
|
|
|
|
|
NS_MEDIAWIKI => 'MediaWiki',
|
|
|
|
|
NS_MEDIAWIKI_TALK => 'Disputatio_MediaWiki',
|
|
|
|
|
NS_TEMPLATE => 'Formula',
|
|
|
|
|
NS_TEMPLATE_TALK => 'Disputatio_Formulae',
|
|
|
|
|
NS_HELP => 'Auxilium',
|
|
|
|
|
NS_HELP_TALK => 'Disputatio_Auxilii',
|
|
|
|
|
NS_CATEGORY => 'Categoria',
|
|
|
|
|
NS_CATEGORY_TALK => 'Disputatio_Categoriae',
|
2004-06-28 02:27:03 +00:00
|
|
|
) + $wgNamespaceNamesEn;
|
2004-02-28 07:23:04 +00:00
|
|
|
|
|
|
|
|
/* private */ $wgQuickbarSettingsLa = array(
|
|
|
|
|
"Nullus", "Constituere a sinistra", "Constituere a dextra", "Innens a sinistra"
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/* private */ $wgSkinNamesLa = array(
|
2005-03-29 17:41:08 +00:00
|
|
|
'standard' => 'Norma',
|
|
|
|
|
'nostalgia' => 'Nostalgia',
|
|
|
|
|
'cologneblue' => 'Caerulus Colonia',
|
|
|
|
|
'smarty' => 'Paddington',
|
|
|
|
|
'montparnasse' => 'Montparnasse',
|
|
|
|
|
'davinci' => 'DaVinci',
|
|
|
|
|
'mono' => 'Mono',
|
|
|
|
|
'monobook' => 'MonoBook',
|
|
|
|
|
'myskin' => 'MySkin'
|
2004-02-28 07:23:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
# All special pages have to be listed here: a description of ""
|
|
|
|
|
# will make them not show up on the "Special Pages" page, which
|
|
|
|
|
# is the right thing for some of them (such as the "targeted" ones).
|
|
|
|
|
#
|
|
|
|
|
/* private */ $wgValidSpecialPagesLa = array(
|
2005-03-29 17:41:08 +00:00
|
|
|
'Userlogin' => '',
|
|
|
|
|
'Userlogout' => '',
|
|
|
|
|
'Preferences' => 'Praeferentiae usoris',
|
|
|
|
|
'Watchlist' => 'Paginae custoditae',
|
|
|
|
|
'Recentchanges' => 'Mutationes recentes',
|
|
|
|
|
'Upload' => 'Onerare fascicula',
|
|
|
|
|
'Imagelist' => 'Index imaginum',
|
|
|
|
|
'Listusers' => 'Usores perscripti',
|
|
|
|
|
'Statistics' => 'Statisticas',
|
|
|
|
|
'Randompage' => 'Pagina fortuita',
|
|
|
|
|
|
|
|
|
|
'Lonelypages' => 'Paginae orbatae',
|
|
|
|
|
'Unusedimages' => 'Imagines orbatae',
|
|
|
|
|
'Popularpages' => 'Res populares',
|
|
|
|
|
'Wantedpages' => 'Res desideratissimae',
|
|
|
|
|
'Shortpages' => 'Res breves',
|
|
|
|
|
'Longpages' => 'Res longae',
|
|
|
|
|
'Newpages' => 'Res novae',
|
2004-02-28 07:23:04 +00:00
|
|
|
# "Intl" => "Interlanguage Links",
|
|
|
|
|
"Allpages" => "Totae paginae (ex indice)",
|
|
|
|
|
|
|
|
|
|
"Ipblocklist" => "Loci IP obstructi",
|
|
|
|
|
"Maintenance" => "Pagina alimentori",
|
|
|
|
|
"Specialpages" => "", # "Paginae specialiae",
|
|
|
|
|
"Contributions" => "", # "Conlationes",
|
|
|
|
|
"Emailuser" => "", # "Mittere litteras electronicas ad usorum(?)",
|
|
|
|
|
"Whatlinkshere" => "", # "Nexi ad hanc paginam",
|
|
|
|
|
"Recentchangeslinked" => "", # "Mutationes conlata (?)",
|
|
|
|
|
"Movepage" => "", # "Motare hanc paginam",
|
|
|
|
|
"Booksources" => "Fontes externi (libri)",
|
|
|
|
|
# "Categories" => "Page categories",
|
|
|
|
|
"Export" => "Exportare in XML",
|
|
|
|
|
"Version" => "Version",
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/* private */ $wgSysopSpecialPagesLa = array(
|
2005-03-29 17:41:08 +00:00
|
|
|
'Blockip' => 'Obstruere locum IP',
|
|
|
|
|
'Asksql' => 'Quaerere basem dati',
|
|
|
|
|
'Undelete' => 'Videre et restituere paginas deletas'
|
2004-02-28 07:23:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/* private */ $wgDeveloperSpecialPagesLa = array(
|
2005-03-29 17:41:08 +00:00
|
|
|
'Lockdb' => 'Suspendere mutationes',
|
|
|
|
|
'Unlockdb' => 'Permittere mutationes',
|
|
|
|
|
'Debug' => 'Nuntii de refectis'
|
2004-02-28 07:23:04 +00:00
|
|
|
);
|
|
|
|
|
|
2004-07-13 18:18:34 +00:00
|
|
|
$wgAllMessagesLa = array(
|
2004-07-23 07:03:52 +00:00
|
|
|
|
|
|
|
|
# User Toggles
|
|
|
|
|
|
|
|
|
|
"tog-underline" => "Subscribere nexi",
|
|
|
|
|
"tog-highlightbroken" => "Formare nexos fractos <a href=\"\" class=\"new\">sici</a> (alioqui: sic<a href=\"\" class=\"internal\">?</a>).",
|
|
|
|
|
"tog-justify" => "Saepire capites",
|
|
|
|
|
"tog-hideminor" => "Celare mutationes recentes minores",
|
|
|
|
|
"tog-usenewrc" => "Mutationes recentes amplificatae (non efficit in tota navigatra)",
|
|
|
|
|
"tog-numberheadings" => "Numerare indices necessario",
|
|
|
|
|
"tog-rememberpassword" => "Recordari tesserae inter conventa (uti cookies)",
|
|
|
|
|
"tog-editwidth" => "Capsa recensitorum totam latitudinem habet",
|
|
|
|
|
"tog-editondblclick" => "Premere bis ut paginam recensere (uti JavaScript)",
|
|
|
|
|
"tog-watchdefault" => "Custodire res novas et mutatas",
|
|
|
|
|
"tog-minordefault" => "Notare totas mutations ut minor",
|
|
|
|
|
"tog-previewontop" => "Monstrare praevisus ante capsam recensiti, non post ipsam",
|
|
|
|
|
|
2004-07-19 20:29:43 +00:00
|
|
|
# Dates
|
|
|
|
|
|
|
|
|
|
'sunday' => 'dies Solis',
|
|
|
|
|
'monday' => 'dies Lunae',
|
|
|
|
|
'tuesday' => 'dies Martis',
|
|
|
|
|
'wednesday' => 'dies Mercuri',
|
|
|
|
|
'thursday' => 'dies Iovis',
|
|
|
|
|
'friday' => 'dies Veneris',
|
|
|
|
|
'saturday' => 'dies Saturni',
|
|
|
|
|
'january' => 'Ianuarii',
|
|
|
|
|
'february' => 'Februarii',
|
|
|
|
|
'march' => 'Martii',
|
|
|
|
|
'april' => 'Aprilis',
|
|
|
|
|
'may_long' => 'Maii',
|
|
|
|
|
'june' => 'Iunii',
|
|
|
|
|
'july' => 'Iulii',
|
|
|
|
|
'august' => 'Augusti',
|
|
|
|
|
'september' => 'Septembri',
|
|
|
|
|
'october' => 'Octobri',
|
|
|
|
|
'november' => 'Novembri',
|
|
|
|
|
'december' => 'Decembri',
|
|
|
|
|
'jan' => 'ian',
|
|
|
|
|
'feb' => 'feb',
|
|
|
|
|
'mar' => 'mar',
|
|
|
|
|
'apr' => 'apr',
|
|
|
|
|
'may' => 'mai',
|
|
|
|
|
'jun' => 'iun',
|
|
|
|
|
'jul' => 'iul',
|
|
|
|
|
'aug' => 'aug',
|
|
|
|
|
'sep' => 'sep',
|
|
|
|
|
'oct' => 'oct',
|
|
|
|
|
'nov' => 'nov',
|
|
|
|
|
'dec' => 'dec',
|
|
|
|
|
|
2004-07-13 18:18:34 +00:00
|
|
|
# Math
|
|
|
|
|
'mw_math_png' => "Semper vertere PNG",
|
|
|
|
|
'mw_math_simple' => "HTML si admodum simplex, alioqui PNG",
|
|
|
|
|
'mw_math_html' => "HTML si fieri potest, alioqui PNG",
|
|
|
|
|
'mw_math_source' => "Stet ut TeX (pro navigatri texti)",
|
|
|
|
|
'mw_math_modern' => "Commendatum pro navigatri recentes",
|
|
|
|
|
'mw_math_mathml' => 'MathML',
|
|
|
|
|
);
|
2004-02-28 07:23:04 +00:00
|
|
|
|
2004-05-07 13:43:10 +00:00
|
|
|
require_once( "LanguageUtf8.php" );
|
2004-02-28 07:23:04 +00:00
|
|
|
|
|
|
|
|
class LanguageLa extends LanguageUtf8 {
|
2005-05-06 02:38:42 +00:00
|
|
|
function LanguageLa() {
|
|
|
|
|
global $wgNamespaceNamesLa, $wgMetaNamespace;
|
|
|
|
|
LanguageUtf8::LanguageUtf8();
|
|
|
|
|
$wgNamespaceNamesLa[NS_PROJECT_TALK] = 'Disputatio_' .
|
|
|
|
|
$this->convertGrammar( $wgMetaNamespace, 'genitive' );
|
|
|
|
|
}
|
2004-02-28 07:23:04 +00:00
|
|
|
|
|
|
|
|
function getNamespaces() {
|
|
|
|
|
global $wgNamespaceNamesLa;
|
|
|
|
|
return $wgNamespaceNamesLa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getNsIndex( $text ) {
|
|
|
|
|
global $wgNamespaceNamesLa;
|
2005-05-06 02:38:42 +00:00
|
|
|
global $wgMetaNamespace;
|
2004-02-28 07:23:04 +00:00
|
|
|
|
|
|
|
|
foreach ( $wgNamespaceNamesLa as $i => $n ) {
|
|
|
|
|
if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
|
|
|
|
|
}
|
2005-05-06 02:38:42 +00:00
|
|
|
|
|
|
|
|
# Backwards compatibility hacks
|
|
|
|
|
if( $wgMetaNamespace == 'Vicipaedia' || $wgMetaNamespace == 'Victionarium' ) {
|
|
|
|
|
if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT;
|
|
|
|
|
if( 0 == strcasecmp( 'Disputatio_Wikipedia', $text ) ) return NS_PROJECT_TALK;
|
|
|
|
|
}
|
2004-02-28 07:23:04 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getQuickbarSettings() {
|
|
|
|
|
global $wgQuickbarSettingsLa;
|
|
|
|
|
return $wgQuickbarSettingsLa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSkinNames() {
|
|
|
|
|
global $wgSkinNamesLa;
|
|
|
|
|
return $wgSkinNamesLa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function date( $ts, $adj = false )
|
|
|
|
|
{
|
|
|
|
|
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
|
|
|
|
|
|
|
|
|
|
$d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
|
|
|
|
|
" " . (0 + substr( $ts, 6, 2 )) . ", " .
|
|
|
|
|
substr( $ts, 0, 4 );
|
|
|
|
|
return $d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function timeanddate( $ts, $adj = false )
|
|
|
|
|
{
|
|
|
|
|
return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getValidSpecialPages()
|
|
|
|
|
{
|
|
|
|
|
global $wgValidSpecialPagesLa;
|
|
|
|
|
return $wgValidSpecialPagesLa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSysopSpecialPages()
|
|
|
|
|
{
|
|
|
|
|
global $wgSysopSpecialPagesLa;
|
|
|
|
|
return $wgSysopSpecialPagesLa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getDeveloperSpecialPages()
|
|
|
|
|
{
|
|
|
|
|
global $wgDeveloperSpecialPagesLa;
|
|
|
|
|
return $wgDeveloperSpecialPagesLa;
|
|
|
|
|
}
|
|
|
|
|
|
2005-05-06 02:38:42 +00:00
|
|
|
function getMessage( $key ) {
|
|
|
|
|
global $wgAllMessagesLa;
|
|
|
|
|
if( isset( $wgAllMessagesLa[$key] ) ) {
|
|
|
|
|
return $wgAllMessagesLa[$key];
|
|
|
|
|
}
|
|
|
|
|
return parent::getMessage( $key );
|
|
|
|
|
}
|
2004-02-28 07:23:04 +00:00
|
|
|
|
2005-05-06 02:38:42 +00:00
|
|
|
/**
|
|
|
|
|
* Convert from the nominative form of a noun to some other case
|
|
|
|
|
*
|
|
|
|
|
* Just used in a couple places for sitenames; special-case as necessary.
|
|
|
|
|
* Rules are far from complete.
|
|
|
|
|
*/
|
|
|
|
|
function convertGrammar( $word, $case ) {
|
|
|
|
|
switch ( $case ) {
|
|
|
|
|
case 'genitive':
|
|
|
|
|
// 1st and 2nd declension singular only.
|
|
|
|
|
$in = array( '/a$/', '/u[ms]$/' );
|
|
|
|
|
$out = array( 'ae', 'i' );
|
|
|
|
|
return preg_replace( $in, $out, $word );
|
|
|
|
|
default:
|
|
|
|
|
return $word;
|
|
|
|
|
}
|
2004-02-28 07:23:04 +00:00
|
|
|
}
|
2003-12-18 02:41:39 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2004-02-28 07:23:04 +00:00
|
|
|
|
2004-03-20 15:03:26 +00:00
|
|
|
?>
|