Introduce optional (off by default) language selector bar for user login and registra...
[lhc/web/wiklou.git] / languages / LanguageAf.php
1 <?php
2 /** Afrikaans (Afrikaans)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( 'LanguageUtf8.php' );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesAf.php');
12 }
13
14 class LanguageAf extends LanguageUtf8 {
15 private $mMessagesAf, $mNamespaceNamesAf = null;
16
17 private $mQuickbarSettingsAf = array(
18 "Geen.", "Links vas.", "Regs vas.", "Dryf links."
19 );
20
21 private $mSkinNamesAf = array(
22 'standard' => "Standaard",
23 'nostalgia' => "Nostalgie",
24 'cologneblue' => "Keulen blou",
25 );
26
27 function LanguageAf() {
28 LanguageUtf8::LanguageUtf8();
29
30 global $wgAllMessagesAf;
31 $this->mMessagesAf =& $wgAllMessagesAf;
32
33 global $wgMetaNamespace;
34 $this->mNamespaceNamesAf = array(
35 NS_MEDIA => "Media",
36 NS_SPECIAL => "Spesiaal",
37 NS_MAIN => "",
38 NS_TALK => "Bespreking",
39 NS_USER => "Gebruiker",
40 NS_USER_TALK => "Gebruikerbespreking",
41 NS_PROJECT => $wgMetaNamespace,
42 NS_PROJECT_TALK => $wgMetaNamespace."bespreking",
43 NS_IMAGE => "Beeld",
44 NS_IMAGE_TALK => "Beeldbespreking",
45 NS_MEDIAWIKI => "MediaWiki",
46 NS_MEDIAWIKI_TALK => "MediaWikibespreking",
47 NS_TEMPLATE => 'Sjabloon',
48 NS_TEMPLATE_TALK => 'Sjabloonbespreking',
49 NS_HELP => 'Hulp',
50 NS_HELP_TALK => 'Hulpbespreking',
51 NS_CATEGORY => 'Kategorie',
52 NS_CATEGORY_TALK => 'Kategoriebespreking'
53 );
54
55 }
56
57 function getNamespaces() {
58 return $this->mNamespaceNamesAf + parent::getNamespaces();
59 }
60
61 function getQuickbarSettings() {
62 return $this->mQuickbarSettingsAf;
63 }
64
65 function getSkinNames() {
66 return $this->mSkinNamesAf + parent::getSkinNames();
67 }
68
69 function getMessage( $key ) {
70 if( isset( $this->mMessagesAf[$key] ) ) {
71 return $this->mMessagesAf[$key];
72 } else {
73 return parent::getMessage( $key );
74 }
75 }
76
77 function getAllMessages() {
78 return $this->mMessagesAf;
79 }
80
81 # South Africa uses space for thousands and comma for decimal
82 # Reference: AWS Reël 7.4 p. 52, 2002 edition
83 # glibc is wrong in this respect in some versions
84 function separatorTransformTable() {
85 return array(',' => "\xc2\xa0", '.' => ',' );
86 }
87
88 }
89
90 ?>