Корбар:Francis Tyers/LanguageTg.php
Зоҳир
<?php /** Tajik (Тоҷикӣ) * * @package MediaWiki * @subpackage Language */ require_once( 'LanguageUtf8.php' ); if (!$wgCachedMessageArrays) { require_once('MessagesTg.php'); } class LanguageTg extends LanguageUtf8 { private $mMessagesTg, $mNamespaceNamesTg = null; private $mQuickbarSettingsTg = array( 'نباشد', 'ثابت چپ', 'ثابت راست', 'شناور چپ' ); private $mSkinNamesTg = array( 'standard' => 'استاندارد', 'nostalgia' => 'نوستالژی', 'cologneblue' => 'آبی کلون', 'smarty' => 'پدینگتون', 'montparnasse' => 'مونپارناس', ); function __construct() { parent::__construct(); global $wgAllMessagesTg; $this->mMessagesTg =& $wgAllMessagesTg; global $wgMetaNamespace; $this->mNamespaceNamesTg = array( NS_MEDIA => 'Медиа', NS_SPECIAL => 'Вижа', # Special: NS_MAIN => '', NS_TALK => 'Баҳс', # Talk: NS_USER => 'Корбар', # User: NS_USER_TALK => 'Баҳси_корбар', # User_talk: NS_PROJECT => $wgMetaNamespace, # Wikipedia: NS_PROJECT_TALK => 'Баҳси_' . $wgMetaNamespace, # Wikipedia_talk: NS_IMAGE => 'Акс', # Image: NS_IMAGE_TALK => 'Баҳси_акс', # Image_talk: NS_MEDIAWIKI => 'Медиавики', # MediaWiki: NS_MEDIAWIKI_TALK => 'Баҳси_медиавики', # MediaWiki_talk: NS_TEMPLATE => 'Шаблон', # Template: NS_TEMPLATE_TALK => 'Баҳси_шаблон', # Template_talk: NS_HELP => "Роҳнамо", # Help: NS_HELP_TALK => "Баҳси_роҳнамо", # Help_talk: NS_CATEGORY => 'Гурӯҳ', # Category: NS_CATEGORY_TALK => 'Баҳси_гурӯҳ' # Category_talk: ); } function getNamespaces() { return $this->mNamespaceNamesTg + parent::getNamespaces(); } function getQuickbarSettings() { return $this->mQuickbarSettingsTg; } function getSkinNames() { return $this->mSkinNamesTg + parent::getSkinNames(); } function getMessage( $key ) { if( isset( $this->mMessagesTg[$key] ) ) { return $this->mMessagesTg[$key]; } else { return parent::getMessage( $key ); } } function getAllMessages() { return $this->mMessagesTg; } function getDefaultUserOptions() { $opt = Language::getDefaultUserOptions(); $opt['quickbar'] = 2; $opt['underline'] = 0; return $opt; } # Note to translators: # Please include the English words as synonyms. This allows people # from other wikis to contribute more easily. # /* private */ $wgMagicWordsTg = array( # ID CASE SYNONYMS 'redirect' => array( 0, '#REDIRECT', '#ПЕРЕНАПРАВЛЕНИЕ', '#ПЕРЕНАПР'), 'notoc' => array( 0, '__NOTOC__', '__БЕЗСОДЕРЖАНИЯ__'), 'forcetoc' => array( 0, '__FORCETOC__'), 'toc' => array( 0, '__TOC__', '__МУНДАРИҶА__'), #trans. 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕТАҲРИРИҚИСМ__'), #trans. 'start' => array( 0, '__START__', '__ОҒОЗ__'), 'currentmonth' => array( 1, 'CURRENTMONTH', 'МОҲИКУНУНӢ'), #trans. 'currentmonthname' => array( 1, 'CURRENTMONTHNAME','НОМИМОҲИКУНУНӢ'), #trans. 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN',''), 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ШАКЛИМУХТАСАРИМОҲИКУНУНӢ'), #trans. 'currentday' => array( 1, 'CURRENTDAY','РЎЗИКУНУНӢ'), #trans. 'currentday2' => array( 1, 'CURRENTDAY2','РЎЗИКУНУНӢ2'), #trans. 'currentdayname' => array( 1, 'CURRENTDAYNAME','НОМИРЎЗИКУНУНӢ'), #trans. 'currentyear' => array( 1, 'CURRENTYEAR','СОЛИҶОРӢ'), #trans. 'currenttime' => array( 1, 'CURRENTTIME','ВАҚТИ КУНУНӢ'), #trans. 'numberofarticles' => array( 1, 'NUMBEROFARTICLES','МИҚДОРИМАҚОЛАҲО'), #trans, 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'МИҚДОРИФАЙЛҲО'), #trans. 'pagename' => array( 1, 'PAGENAME','НОМИСАҲИФАҲО'), #trans. 'pagenamee' => array( 1, 'PAGENAMEE','НОМИСАҲИФАҲО2'), #trans. 'namespace' => array( 1, 'NAMESPACE','ПРОСТРАНСТВОИМЁН'), 'msg' => array( 0, 'MSG:'), 'subst' => array( 0, 'SUBST:','ПОДСТ:'), 'msgnw' => array( 0, 'MSGNW:'), 'end' => array( 0, '__END__','__АНҶОМ__'), #trans. 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'мини'), 'img_manualthumb' => array( 1, 'thumbnail=$1', 'thumb=$1', 'мини=$1'), 'img_right' => array( 1, 'right','азчап'), 'img_left' => array( 1, 'left','азчап'), 'img_none' => array( 1, 'none'), 'img_width' => array( 1, '$1px','$1пкс'), 'img_center' => array( 1, 'center', 'centre','марказ'), 'img_framed' => array( 1, 'framed', 'enframed', 'frame','обрамить'), 'int' => array( 0, 'INT:'), 'sitename' => array( 1, 'SITENAME','НАЗВАНИЕСАЙТА'), 'ns' => array( 0, 'NS:','ПИ:'), 'localurl' => array( 0, 'LOCALURL:'), 'localurle' => array( 0, 'LOCALURLE:'), 'server' => array( 0, 'SERVER','СЕРВЕР'), 'servername' => array( 0, 'SERVERNAME', 'НОМИСЕРВЕР'), 'scriptpath' => array( 0, 'SCRIPTPATH', 'ПУТЬКСКРИПТУ'), 'grammar' => array( 0, 'GRAMMAR:'), 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕТАҒЙИРИСАРЛАВҲА__'), #trans 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕТАҒЙИРИМАТН__'), #trans 'currentweek' => array( 1, 'CURRENTWEEK','ҲАФТАИКУНУНӢ'), #trans 'currentdow' => array( 1, 'CURRENTDOW','РЎЗИҲАФТАИКУНУНӢ'), #trans 'revisionid' => array( 1, 'REVISIONID', 'ИДВЕРСИИ'), ); # For right-to-left language support function isRTL() { return false; } } ?>