diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2006-07-26 07:15:39 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2006-07-26 07:15:39 +0000 |
commit | 43b2fb56b6cd2684c743ce9bf4e8d2a27e8469ae (patch) | |
tree | 2d5063c6daba2c4e5ca39e39720ee60a0ea73ac5 /languages/LanguageBg.php | |
parent | 489a4a55cfc98960e01a9bb7a5b6fafe056f7f14 (diff) | |
download | mediawikicore-43b2fb56b6cd2684c743ce9bf4e8d2a27e8469ae.tar.gz mediawikicore-43b2fb56b6cd2684c743ce9bf4e8d2a27e8469ae.zip |
Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules.
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches.
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php.
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory().
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/15823
Diffstat (limited to 'languages/LanguageBg.php')
-rw-r--r-- | languages/LanguageBg.php | 170 |
1 files changed, 1 insertions, 169 deletions
diff --git a/languages/LanguageBg.php b/languages/LanguageBg.php index ff027ea840bc..4884c2a8d833 100644 --- a/languages/LanguageBg.php +++ b/languages/LanguageBg.php @@ -5,178 +5,11 @@ * @subpackage Language */ -/* private */ $wgNamespaceNamesBg = array( - NS_MEDIA => 'Медия', - NS_SPECIAL => 'Специални', - NS_MAIN => '', - NS_TALK => 'Беседа', - NS_USER => 'Потребител', - NS_USER_TALK => 'Потребител_беседа', - NS_PROJECT => $wgMetaNamespace, - NS_PROJECT_TALK => $wgMetaNamespace . '_беседа', - NS_IMAGE => 'Картинка', - NS_IMAGE_TALK => 'Картинка_беседа', - NS_MEDIAWIKI => 'МедияУики', - NS_MEDIAWIKI_TALK => 'МедияУики_беседа', - NS_TEMPLATE => 'Шаблон', - NS_TEMPLATE_TALK => 'Шаблон_беседа', - NS_HELP => 'Помощ', - NS_HELP_TALK => 'Помощ_беседа', - NS_CATEGORY => 'Категория', - NS_CATEGORY_TALK => 'Категория_беседа' -) + $wgNamespaceNamesEn; - -/* private */ $wgQuickbarSettingsBg = array( - 'Без меню', 'Неподвижно вляво', 'Неподвижно вдясно', 'Плаващо вляво', 'Плаващо вдясно' -); - -/* private */ $wgSkinNamesBg = array( - 'standard' => 'Класика', - 'nostalgia' => 'Носталгия', - 'cologneblue' => 'Кьолнско синьо', - 'smarty' => 'Падингтън', - 'montparnasse' => 'Монпарнас', - 'davinci' => 'ДаВинчи', - 'mono' => 'Моно', - 'monobook' => 'Монобук', - 'myskin' => 'Мой облик', -); - -/* private */ $wgDateFormatsBg = array(); - -/* private */ $wgBookstoreListBg = array( - 'books.bg' => 'http://www.books.bg/ISBN/$1', -); - -/* private */ $wgMagicWordsBg = array( -# ID CASE SYNONYMS - 'redirect' => array( 0, '#redirect', '#пренасочване', '#виж' ), - 'notoc' => array( 0, '__NOTOC__', '__БЕЗСЪДЪРЖАНИЕ__' ), - 'forcetoc' => array( 0, '__FORCETOC__', '__СЪССЪДЪРЖАНИЕ__' ), - 'toc' => array( 0, '__TOC__', '__СЪДЪРЖАНИЕ__' ), - 'noeditsection' => array( 0, '__NOEDITSECTION__', '__БЕЗ_РЕДАКТИРАНЕ_НА_РАЗДЕЛИ__' ), - 'start' => array( 0, '__START__', '__НАЧАЛО__' ), - 'currentmonth' => array( 1, 'CURRENTMONTH', 'ТЕКУЩМЕСЕЦ' ), - 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'ТЕКУЩМЕСЕЦИМЕ' ), - 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'ТЕКУЩМЕСЕЦИМЕРОД' ), - 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'ТЕКУЩМЕСЕЦСЪКР' ), - 'currentday' => array( 1, 'CURRENTDAY', 'ТЕКУЩДЕН' ), - 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'ТЕКУЩДЕНИМЕ' ), - 'currentyear' => array( 1, 'CURRENTYEAR', 'ТЕКУЩАГОДИНА' ), - 'currenttime' => array( 1, 'CURRENTTIME', 'ТЕКУЩОВРЕМЕ' ), - 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'БРОЙСТАТИИ' ), - 'numberoffiles' => array( 1, 'NUMBEROFFILES', 'БРОЙФАЙЛОВЕ' ), - 'pagename' => array( 1, 'PAGENAME', 'СТРАНИЦА' ), - 'pagenamee' => array( 1, 'PAGENAMEE', 'СТРАНИЦАИ' ), - 'namespace' => array( 1, 'NAMESPACE', 'ИМЕННОПРОСТРАНСТВО' ), - 'subst' => array( 0, 'SUBST:', 'ЗАМЕСТ:' ), - 'msgnw' => array( 0, 'MSGNW:', 'СЪОБЩNW:' ), - 'end' => array( 0, '__END__', '__КРАЙ__' ), - '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пкс' , '$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__'), - 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'), - 'currentweek' => array( 1, 'CURRENTWEEK', 'ТЕКУЩАСЕДМИЦА'), - 'currentdow' => array( 1, 'CURRENTDOW' ), - 'revisionid' => array( 1, 'REVISIONID' ), -); - -if (!$wgCachedMessageArrays) { - require_once('MessagesBg.php'); -} - -/** This is an UTF-8 language */ -require_once( 'LanguageUtf8.php' ); - /** * @package MediaWiki * @subpackage Language */ -class LanguageBg extends LanguageUtf8 { - - /** - * Exports $wgBookstoreListBg - * @return array - */ - function getBookstoreList () { - global $wgBookstoreListBg; - return $wgBookstoreListBg; - } - - /** - * Exports $wgNamespaceNamesBg - * @return array - */ - function getNamespaces() { - global $wgNamespaceNamesBg; - return $wgNamespaceNamesBg; - } - - /** - * Exports $wgQuickbarSettingsBg - * @return array - */ - function getQuickbarSettings() { - global $wgQuickbarSettingsBg; - return $wgQuickbarSettingsBg; - } - - /** - * Exports $wgSkinNamesBg - * @return array - */ - function getSkinNames() { - global $wgSkinNamesBg; - return $wgSkinNamesBg; - } - - /** - * Exports $wgDateFormatsBg - * @return array - */ - function getDateFormats() { - global $wgDateFormatsBg; - return $wgDateFormatsBg; - } - - function getMessage( $key ) { - global $wgAllMessagesBg; - if ( isset( $wgAllMessagesBg[$key] ) ) { - return $wgAllMessagesBg[$key]; - } else { - return parent::getMessage( $key ); - } - } - - /** - * Exports $wgMagicWordsBg - * @return array - */ - function &getMagicWords() { - global $wgMagicWordsBg; - return $wgMagicWordsBg; - } - - - function separatorTransformTable() { - return array(',' => "\xc2\xa0", '.' => ',' ); - } - +class LanguageBg extends Language { /** * ISO number formatting: 123 456 789,99. * Avoid tripple grouping by numbers with whole part up to 4 digits. @@ -188,6 +21,5 @@ class LanguageBg extends LanguageUtf8 { return $_; } } - } ?> |