diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageSc.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageSc.php')
-rw-r--r-- | languages/LanguageSc.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/languages/LanguageSc.php b/languages/LanguageSc.php new file mode 100644 index 00000000..8a7c9c01 --- /dev/null +++ b/languages/LanguageSc.php @@ -0,0 +1,55 @@ +<?php +/** + * @package MediaWiki + * @subpackage Language + */ + +require_once( "LanguageUtf8.php" ); + +/* private */ $wgNamespaceNamesSc = array( + NS_SPECIAL => 'Speciale', + NS_MAIN => '', + NS_TALK => 'Contièndha', + NS_USER => 'Utente', + NS_USER_TALK => 'Utente_discussioni', + NS_PROJECT => $wgMetaNamespace, + NS_PROJECT_TALK => $wgMetaNamespace . '_discussioni', + NS_IMAGE => 'Immàgini', + NS_IMAGE_TALK => 'Immàgini_contièndha' +) + $wgNamespaceNamesEn; + +/* private */ $wgQuickbarSettingsSc = array( + "Nessuno", "Fisso a sinistra", "Fisso a destra", "Fluttuante a sinistra" +); + +if (!$wgCachedMessageArrays) { + require_once('MessagesSc.php'); +} + +class LanguageSc extends LanguageUtf8 { + + function getNamespaces() { + global $wgNamespaceNamesSc; + return $wgNamespaceNamesSc; + } + + function getQuickbarSettings() { + global $wgQuickbarSettingsSc; + return $wgQuickbarSettingsSc; + } + + function formatMonth( $month, $format ) { + return $this->getMonthAbbreviation( $month ); + } + + function getMessage( $key ) { + global $wgAllMessagesSc; + if(array_key_exists($key, $wgAllMessagesSc)) + return $wgAllMessagesSc[$key]; + else + return parent::getMessage($key); + } + +} + +?> |