* @package MediaWiki
* @subpackage Language
*/
-
-require_once( 'LanguageUtf8.php' );
-
-if (!$wgCachedMessageArrays) {
- require_once('MessagesSk.php');
-}
-
-class LanguageSk extends LanguageUtf8 {
-
- private $mQuickbarSettingsSk = array(
- 'Žiadne', 'Ukotvené vľavo', 'Ukotvené vpravo', 'Plávajúce vľavo'
- );
-
- private $mDateFormatsSk = array(
- 'Default',
- '15. január 2001 16:12',
- '15. jan. 2001 16:12',
- '16:12, 15. január 2001',
- '16:12, 15. jan. 2001',
- 'ISO 8601' => '2001-01-15 16:12:34'
- );
-
- private $mBookstoreListSk = array(
- 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1',
- 'BokBerit' => 'http://www.bokberit.no/annet_sted/bocker/$1.html',
- 'Bokkilden' => 'http://www.bokkilden.no/ProductDetails.aspx?ProductId=$1',
- 'Haugenbok' => 'http://www.haugenbok.no/searchresults.cfm?searchtype=simple&isbn=$1',
- 'Akademika' => 'http://www.akademika.no/sok.php?isbn=$1',
- 'Gnist' => 'http://www.gnist.no/sok.php?isbn=$1',
- 'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1',
- 'Amazon.de' => 'http://www.amazon.de/exec/obidos/ISBN=$1',
- 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
- );
-
- # Note to translators:
- # Please include the English words as synonyms. This allows people
- # from other wikis to contribute more easily.
- #
- private $mMagicWordsSk = array(
- # ID CASE SYNONYMS
- 'redirect' => array( 0, '#redirect', '#presmeruj' ),
- 'notoc' => array( 0, '__NOTOC__', '__BEZOBSAHU__' ),
- 'forcetoc' => array( 0, '__FORCETOC__', '__VYNÚŤOBSAH__' ),
- 'toc' => array( 0, '__TOC__', '__OBSAH__' ),
- 'noeditsection' => array( 0, '__NOEDITSECTION__', '__NEUPRAVUJSEKCIE__' ),
- 'start' => array( 0, '__START__', '__ŠTART__' ),
- 'currentmonth' => array( 1, 'CURRENTMONTH', 'MESIAC' ),
- 'currentmonthname' => array( 1, 'CURRENTMONTHNAME', 'MENOMESIACA' ),
- 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN', 'MENOAKTUÁLNEHOMESIACAGEN' ),
- 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV', 'MENOAKTUÁLNEHOMESIACASKRATKA' ),
- 'currentday' => array( 1, 'CURRENTDAY', 'AKTUÁLNYDEŇ' ),
- 'currentdayname' => array( 1, 'CURRENTDAYNAME', 'MENOAKTUÁLNEHODŇA' ),
- 'currentyear' => array( 1, 'CURRENTYEAR', 'AKTUÁLNYROK' ),
- 'currenttime' => array( 1, 'CURRENTTIME', 'AKTUÁLNYČAS' ),
- 'numberofarticles' => array( 1, 'NUMBEROFARTICLES', 'POČETČLÁNKOV' ),
- 'pagename' => array( 1, 'PAGENAME', 'MENOSTRÁNKY' ),
- 'pagenamee' => array( 1, 'PAGENAMEE' ),
- 'namespace' => array( 1, 'NAMESPACE', 'MENNÝPRIESTOR' ),
- 'msg' => array( 0, 'MSG:', 'SPRÁVA:' ),
- 'subst' => array( 0, 'SUBST:' ),
- 'msgnw' => array( 0, 'MSGNW:' ),
- 'end' => array( 0, '__END__', '__KONIEC__' ),
- 'img_thumbnail' => array( 1, 'thumbnail', 'thumb', 'náhľad', 'náhľadobrázka' ),
- 'img_right' => array( 1, 'right', 'vpravo' ),
- 'img_left' => array( 1, 'left', 'vľavo' ),
- 'img_none' => array( 1, 'none', 'žiadny' ),
- 'img_width' => array( 1, '$1px', '$1bod' ),
- 'img_center' => array( 1, 'center', 'centre', 'stred' ),
- 'img_framed' => array( 1, 'framed', 'enframed', 'frame', 'rám' ),
- 'int' => array( 0, 'INT:' ),
- 'sitename' => array( 1, 'SITENAME', 'MENOLOKALITY' ),
- 'ns' => array( 0, 'NS:', 'MP:' ),
- 'localurl' => array( 0, 'LOCALURL:' ),
- 'localurle' => array( 0, 'LOCALURLE:' ),
- 'server' => array( 0, 'SERVER' ),
- 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ),
- 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__' ),
- 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ),
- 'currentweek' => array( 1, 'CURRENTWEEK', 'AKTUÁLNYTÝŽDEŇ' ),
- 'currentdow' => array( 1, 'CURRENTDOW' ),
- 'revisionid' => array( 1, 'REVISIONID' ),
- );
-
- function __construct() {
- parent::__construct();
-
- global $wgAllMessagesSk;
- $this->mMessagesSk =& $wgAllMessagesSk;
-
- global $wgMetaNamespace;
- $this->mNamespaceNamesSk = array(
- NS_MEDIA => 'Médiá',
- NS_SPECIAL => 'Špeciálne',
- NS_MAIN => '',
- NS_TALK => 'Diskusia',
- NS_USER => 'Redaktor',
- NS_USER_TALK => 'Diskusia_s_redaktorom',
- NS_PROJECT => $wgMetaNamespace,
- NS_PROJECT_TALK => 'Diskusia_k_' . $this->convertGrammar( $wgMetaNamespace, 'datív' ),
- NS_IMAGE => 'Obrázok',
- NS_IMAGE_TALK => 'Diskusia_k_obrázku',
- NS_MEDIAWIKI => 'MediaWiki',
- NS_MEDIAWIKI_TALK => 'Diskusia_k_MediaWiki',
- NS_TEMPLATE => 'Šablóna',
- NS_TEMPLATE_TALK => 'Diskusia_k_šablóne',
- NS_HELP => 'Pomoc',
- NS_HELP_TALK => 'Diskusia_k_pomoci',
- NS_CATEGORY => 'Kategória',
- NS_CATEGORY_TALK => 'Diskusia_ku_kategórii'
- );
- }
-
- function getNamespaces() {
- return $this->mNamespaceNamesSk + parent::getNamespaces();
- }
-
- function getQuickbarSettings() {
- return $this->mQuickbarSettingsSk;
- }
-
- function getDateFormats() {
- return $this->mDateFormatsSk;
- }
-
- function getBookstoreList() {
- return $this->mBookstoreListSk;
- }
-
- function &getMagicWords() {
- $t = $this->mMagicWordsSk + parent::getMagicWords();
- return $t;
- }
-
- function getMessage( $key ) {
- if( isset( $this->mMessagesSk[$key] ) ) {
- return $this->mMessagesSk[$key];
- } else {
- return parent::getMessage( $key );
- }
- }
-
- function getAllMessages() {
- return $this->mMessagesSk;
- }
-
- function getNsIndex( $text ) {
-
- foreach ( $this->mNamespaceNamesSk as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- # Compatbility with old names:
- if( 0 == strcasecmp( "Komentár", $text ) ) { return NS_TALK; }
- if( 0 == strcasecmp( "Komentár_k_redaktorovi", $text ) ) { return NS_USER_TALK; }
- if( 0 == strcasecmp( "Komentár_k_Wikipédii", $text ) ) { return NS_PROJECT_TALK; }
- if( 0 == strcasecmp( "Komentár_k_obrázku", $text ) ) { return NS_IMAGE_TALK; }
- if( 0 == strcasecmp( "Komentár_k_MediaWiki", $text ) ) { return NS_MEDIAWIKI_TALK; }
- return false;
- }
-
- function separatorTransformTable() {
- return array(
- ',' => "\xc2\xa0",
- '.' => ','
- );
- }
-
- function linkTrail() {
- return '/^([a-záäčďéíľĺňóôŕšťúýž]+)(.*)$/sDu';
- }
-
+class LanguageSk extends Language {
# Convert from the nominative form of a noun to some other case
# Invoked with {{GRAMMAR:case|word}}
/**
}
break;
}
- return $word;
+ return $word;
}
function convertPlural( $count, $w1, $w2, $w3) {