1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
#pike __REAL_VERSION__ 
 
//! Maaori (New Zealand) language locale by Jason Rumney 
 
inherit "abstract"; 
 
constant name = "maaori"; 
constant english_name = "maori"; 
constant iso_639_1 = "mi"; 
constant iso_639_2 = "mri"; 
constant iso_639_2B = "mao"; 
 
constant aliases = ({ "mi", "mri", "mao", "maori", "maaori" }); 
 
constant months = ({ 
  "Haanuere", "Pepuere", "Maehe", "Aaperira", "Mei", 
  "Hune", "Huurae", "Aakuhata", "Hepetema", "Oketopa", 
  "Nowema", "Tiihema" }); 
 
constant days = ({ 
  "Raatapu","Mane","Tuurei","Wenerei", 
  "Taaite","Paraire","Haatarei" }); 
 
string ordered(int i) 
     { 
        return "tua" + number(i) ; 
     } 
 
string date(int timestamp, string|void m) 
{ 
  mapping t1=localtime(timestamp) ; 
  mapping t2=localtime(time(0)); 
 
  if(m=="full") 
    return ctime(timestamp)[11..15]+", "+ 
      month(t1["mon"]+1) + " te " 
      + ordered(t1["mday"]) + ", " +(t1["year"]+1900); 
 
  if(m=="date") 
    return month(t1["mon"]+1) + " te "  + ordered(t1["mday"]) 
      + " o te tau " +(t1["year"]+1900); 
 
  if(m=="time") 
    return ctime(timestamp)[11..15]; 
 
  // !m 
 
  if(t1["year"] != t2["year"]) 
    return (month(t1["mon"]+1) + " " + (t1["year"]+1900)); 
  return (month(t1["mon"]+1) + " " + ordered(t1["mday"])); 
} 
 
 
string number(int num) 
{ 
  if(num<0) 
    return number(-num)+" tango"; 
  switch(num) 
  { 
   case 0:  return "kore"; 
   case 1:  return "tahi"; 
   case 2:  return "rua"; 
   case 3:  return "toru"; 
   case 4:  return "whaa"; 
   case 5:  return "rima"; 
   case 6:  return "ono"; 
   case 7:  return "whitu"; 
   case 8:  return "waru"; 
   case 9:  return "iwa"; 
   case 10: return "tekau"; 
   case 11..19: return "tekau ma "+number(num-10) ; 
   case 20..99: return number(num/10)+" "+number(10+num%10) ; 
   case 100: return "rau" ; 
   case 101..199: return "rau ma "+number(num-100); 
   case 200..999: return number(num/100)+" "+number(100+num%100) ; 
   case 1000: return "mano" ; 
   case 1001..1999: return "mano ma "+ number(num-1000); 
   case 2000..999999: return number(num/1000)+" "+number(1000+num%1000); 
   default: 
    return "tini ("+num+")"; 
  } 
}