diff options
Diffstat (limited to 'languages/LanguageLt.php')
-rw-r--r-- | languages/LanguageLt.php | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/languages/LanguageLt.php b/languages/LanguageLt.php deleted file mode 100644 index 688dfa0f..00000000 --- a/languages/LanguageLt.php +++ /dev/null @@ -1,108 +0,0 @@ -<?php -/** Lithuanian (Lietuvių) - * - * @package MediaWiki - * @subpackage Language - * - */ - -require_once( 'LanguageUtf8.php' ); - -if (!$wgCachedMessageArrays) { - require_once('MessagesLt.php'); -} - -class LanguageLt extends LanguageUtf8 { - private $mMessagesLt, $mNamespaceNamesLt = null; - - function __construct() { - parent::__construct(); - - global $wgAllMessagesLt; - $this->mMessagesLt =& $wgAllMessagesLt; - - global $wgMetaNamespace; - $this->mNamespaceNamesLt = array( - NS_MEDIA => 'Medija', - NS_SPECIAL => 'Specialus', - NS_MAIN => '', - NS_TALK => 'Aptarimas', - NS_USER => 'Naudotojas', - NS_USER_TALK => 'Naudotojo_aptarimas', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_aptarimas', - NS_IMAGE => 'Vaizdas', - NS_IMAGE_TALK => 'Vaizdo_aptarimas', - NS_MEDIAWIKI => 'MediaWiki', - NS_MEDIAWIKI_TALK => 'MediaWiki_aptarimas', - NS_TEMPLATE => 'Šablonas', - NS_TEMPLATE_TALK => 'Šablono_aptarimas', - NS_HELP => 'Pagalba', - NS_HELP_TALK => 'Pagalbos_aptarimas', - NS_CATEGORY => 'Kategorija', - NS_CATEGORY_TALK => 'Kategorijos_aptarimas', - ); - - } - - private $mQuickbarSettingsLt = array( - 'Nerodyti', 'Fiksuoti kairėje', 'Fiksuoti dešinėje', 'Plaukiojantis kairėje' - ); - - private $mSkinNamesLt = array( - 'standard' => 'Standartinė', - 'nostalgia' => 'Nostalgija', - 'cologneblue' => 'Kiolno Mėlyna', - 'davinci' => 'Da Vinči', - 'mono' => 'Mono', - 'monobook' => 'MonoBook', - 'myskin' => 'MySkin', - 'chick' => 'Chick' - ); - - function getNamespaces() { - return $this->mNamespaceNamesLt + parent::getNamespaces(); - } - - function getQuickbarSettings() { - return $this->mQuickbarSettingsLt; - } - - function getSkinNames() { - return $this->mSkinNamesLt + parent::getSkinNames(); - } - - function getMessage( $key ) { - if( isset( $this->mMessagesLt[$key] ) ) { - return $this->mMessagesLt[$key]; - } else { - return parent::getMessage( $key ); - } - } - - function getAllMessages() { - return $this->mMessagesLt; - } - - function fallback8bitEncoding() { - return 'windows-1257'; - } - - - function separatorTransformTable() { - return array(',' => ' ', '.' => ',' ); - } - - /* Word forms (with examples): - 1 - vienas (1) lapas - 2 - trys (3) lapai - 3 - penkiolika (15) lapų - */ - function convertPlural( $count, $wordform1, $wordform2, $wordform3) { - $count = str_replace (' ', '', $count); - if ($count%10==1 && $count%100!=11) return $wordform1; - if ($count%10>=2 && ($count%100<10 || $count%100>=20)) return $wordform2; - return $wordform3; - } -} -?> |