Tweak that nogomatch message in HEAD too
[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 /* private */ $wgNamespaceNamesAf = array(
11 NS_MEDIA => "Media",
12 NS_SPECIAL => "Spesiaal",
13 NS_MAIN => "",
14 NS_TALK => "Bespreking",
15 NS_USER => "Gebruiker",
16 NS_USER_TALK => "Gebruikerbespreking",
17 NS_PROJECT => $wgMetaNamespace,
18 NS_PROJECT_TALK => $wgMetaNamespace."bespreking",
19 NS_IMAGE => "Beeld",
20 NS_IMAGE_TALK => "Beeldbespreking",
21 NS_MEDIAWIKI => "MediaWiki",
22 NS_MEDIAWIKI_TALK => "MediaWikibespreking",
23 NS_TEMPLATE => 'Sjabloon',
24 NS_TEMPLATE_TALK => 'Sjabloonbespreking',
25 NS_HELP => 'Hulp',
26 NS_HELP_TALK => 'Hulpbespreking',
27 NS_CATEGORY => 'Kategorie',
28 NS_CATEGORY_TALK => 'Kategoriebespreking'
29 ) + $wgNamespaceNamesEn;
30
31 /* private */ $wgQuickbarSettingsAf = array(
32 "Geen.", "Links vas.", "Regs vas.", "Dryf links."
33 );
34
35 /* private */ $wgSkinNamesAf = array(
36 'standard' => "Standaard",
37 'nostalgia' => "Nostalgie",
38 'cologneblue' => "Keulen blou",
39 ) + $wgSkinNamesEn;
40
41 if (!$wgCachedMessageArrays) {
42 require_once('MessagesAf.php');
43 }
44
45
46 class LanguageAf extends LanguageUtf8 {
47
48 function getNamespaces() {
49 global $wgNamespaceNamesAf;
50 return $wgNamespaceNamesAf;
51 }
52
53 function getQuickbarSettings() {
54 global $wgQuickbarSettingsAf;
55 return $wgQuickbarSettingsAf;
56 }
57
58 function getSkinNames() {
59 global $wgSkinNamesAf;
60 return $wgSkinNamesAf;
61 }
62
63 function getMessage( $key ) {
64 global $wgAllMessagesAf;
65 if( isset( $wgAllMessagesAf[$key] ) ) {
66 return $wgAllMessagesAf[$key];
67 } else {
68 return parent::getMessage( $key );
69 }
70 }
71
72 function formatNum( $number, $year = false ) {
73 # South Africa uses space for thousands and comma for decimal
74 # Reference: AWS Reël 7.4 p. 52, 2002 edition
75 # glibc is wrong in this respect in some versions
76 if ( $year ) {
77 return $number;
78 } else {
79 return strtr($this->commafy($number), array(
80 '.' => ',',
81 ',' => "\xc2\xa0" // non-breaking space
82 ));
83 }
84 }
85
86 }
87
88 ?>