fa5ef4342c9dce0e57e8f19bd8f1a71618ac973f
[lhc/web/wiklou.git] / languages / LanguageFur.php
1 <?php
2 /** Friulian (Furlan)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( 'LanguageUtf8.php' );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesFur.php');
12 }
13
14 class LanguageFur extends LanguageUtf8 {
15 private $mMessagesFur, $mNamespaceNamesFur = null;
16
17 private $mQuickbarSettingsFur = array(
18 'Nissune', 'Fis a Çampe', 'Fis a Drete', 'Flutuant a çampe'
19 );
20
21 private $mSkinNamesFur = array(
22 'nostalgia' => 'Nostalgie',
23 );
24
25 function __construct() {
26 parent::__construct();
27
28 global $wgAllMessagesFur;
29 $this->mMessagesFur =& $wgAllMessagesFur;
30
31 global $wgMetaNamespace;
32 $this->mNamespaceNamesFur = array(
33 NS_MEDIA => 'Media',
34 NS_SPECIAL => 'Speciâl',
35 NS_MAIN => '',
36 NS_TALK => 'Discussion',
37 NS_USER => 'Utent',
38 NS_USER_TALK => 'Discussion_utent',
39 NS_PROJECT => $wgMetaNamespace,
40 NS_PROJECT_TALK => 'Discussion_' . $wgMetaNamespace,
41 NS_IMAGE => 'Figure',
42 NS_IMAGE_TALK => 'Discussion_figure',
43 NS_MEDIAWIKI => 'MediaWiki',
44 NS_MEDIAWIKI_TALK => 'Discussion_MediaWiki',
45 NS_TEMPLATE => 'Model',
46 NS_TEMPLATE_TALK => 'Discussion_model',
47 NS_HELP => 'Jutori',
48 NS_HELP_TALK => 'Discussion_jutori',
49 NS_CATEGORY => 'Categorie',
50 NS_CATEGORY_TALK => 'Discussion_categorie'
51 );
52
53 }
54
55 function getNamespaces() {
56 return $this->mNamespaceNamesFur + parent::getNamespaces();
57 }
58
59 function getQuickbarSettings() {
60 return $this->mQuickbarSettingsFur;
61 }
62
63 function getSkinNames() {
64 return $this->mSkinNamesFur + parent::getSkinNames();
65 }
66
67 function getDateFormats() {
68 return false;
69 }
70
71 function getMessage( $key ) {
72 if( isset( $this->mMessagesFur[$key] ) ) {
73 return $this->mMessagesFur[$key];
74 } else {
75 return parent::getMessage( $key );
76 }
77 }
78
79 function getAllMessages() {
80 return $this->mMessagesFur;
81 }
82
83 function timeDateSeparator( $format ) {
84 return ' a lis ';
85 }
86
87 function timeBeforeDate() {
88 return false;
89 }
90
91 function formatMonth( $month, $format ) {
92 return $this->getMonthAbbreviation( $month );
93 }
94
95 function formatDay( $day, $format ) {
96 return $this->formatNum( 0 + $day, true ) . ' di ';
97 }
98
99 function separatorTransformTable() {
100 return array(',' => "\xc2\xa0", '.' => ',' );
101 }
102
103 }
104
105 ?>