Index: trunk/phase3/languages/LanguageEl.php |
— | — | @@ -2,45 +2,59 @@ |
3 | 3 | |
4 | 4 | require_once( "LanguageUtf8.php" ); |
5 | 5 | |
6 | | -/* private */ $wgWeekdayNamesEl = array( |
7 | | - "Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", |
8 | | - "Παρασκευή", "Σαββάτο" |
9 | | -); |
| 6 | +/* private */ $wgAllMessagesEl = array( |
10 | 7 | |
11 | | -/* private */ $wgMonthNamesEl = array( |
12 | | - "Ιανουαρίου", "Φεβρουαρίου", "Μαρτίου", "Απριλίου", "Μαΐου", "Ιουνίου", |
13 | | - "Ιουλίου", "Αυγούστου", "Σεπτεμβρίου", "Οκτωβρίου", "Νοεμβρίου", |
14 | | - "Δεκεμβρίου" |
15 | | -); |
| 8 | +'sunday' => "Κυριακή", |
| 9 | +'monday' => "Δευτέρα", |
| 10 | +'tuesday' => "Τρίτη", |
| 11 | +'wednesday' => "Τετάρτη", |
| 12 | +'thursday' => "Πέμπτη", |
| 13 | +'friday' => "Παρασκευή", |
| 14 | +'saturday' => "Σαββάτο", |
16 | 15 | |
17 | | -/* private */ $wgMonthAbbreviationsEl = array( |
18 | | - "Ιαν". "Φεβρ", "Μαρτ", "Απρ", "Μαΐου", "Ιουν", "Ιουλ", |
19 | | - "Αυγ", "Σεπτ", "Οκτ", "Νοεμβ", "Δεκ" |
| 16 | +'january' => "Ιανουαρίου", |
| 17 | +'february' => "Φεβρουαρίου", |
| 18 | +'march' => "Μαρτίου", |
| 19 | +'april' => "Απριλίου", |
| 20 | +'may_long' => "Μαΐου", |
| 21 | +'june' => "Ιουνίου", |
| 22 | +'july' => "Ιουλίου", |
| 23 | +'august' => "Αυγούστου", |
| 24 | +'september' => "Σεπτεμβρίου", |
| 25 | +'october' => "Οκτωβρίου", |
| 26 | +'november' => "Νοεμβρίου", |
| 27 | +'december' => "Δεκεμβρίου", |
| 28 | + |
| 29 | +'jan' => "Ιαν", |
| 30 | +'feb' => "Φεβρ", |
| 31 | +'mar' => "Μαρτ", |
| 32 | +'apr' => "Απρ", |
| 33 | +'may' => "Μαΐου", |
| 34 | +'jun' => "Ιουν", |
| 35 | +'jul' => "Ιουλ", |
| 36 | +'aug' => "Αυγ", |
| 37 | +'sep' => "Σεπτ", |
| 38 | +'oct' => "Οκτ", |
| 39 | +'nov' => "Νοεμβ", |
| 40 | +'dec' => "Δεκ", |
20 | 41 | ); |
21 | 42 | |
| 43 | + |
22 | 44 | class LanguageEl extends LanguageUtf8 { |
23 | 45 | function fallback8bitEncoding() { |
24 | 46 | return "windows-1253"; |
25 | 47 | } |
26 | 48 | |
27 | | - function getMonthName( $key ) |
28 | | - { |
29 | | - global $wgMonthNamesEl; |
30 | | - return $wgMonthNamesEl[$key-1]; |
31 | | - } |
| 49 | + function getMessage( $key ) |
| 50 | + { |
| 51 | + global $wgAllMessagesDe; |
| 52 | + if( isset( $wgAllMessagesDe[$key] ) ) { |
| 53 | + return $wgAllMessagesDe[$key]; |
| 54 | + } else { |
| 55 | + return ""; |
| 56 | + } |
| 57 | + } |
32 | 58 | |
33 | | - function getMonthAbbreviation( $key ) |
34 | | - { |
35 | | - global $wgMonthAbbreviationsEl; |
36 | | - return $wgMonthAbbreviationsEl[$key-1]; |
37 | | - } |
38 | | - |
39 | | - function getWeekdayName( $key ) |
40 | | - { |
41 | | - global $wgWeekdayNamesEl; |
42 | | - return $wgWeekdayNamesEl[$key-1]; |
43 | | - } |
44 | | - |
45 | 59 | } |
46 | 60 | |
47 | 61 | ?> |