Index: trunk/phase3/languages/LanguageEl.php |
— | — | @@ -2,10 +2,45 @@ |
3 | 3 | |
4 | 4 | require_once( "LanguageUtf8.php" ); |
5 | 5 | |
| 6 | +/* private */ $wgWeekdayNamesEl = array( |
| 7 | + "Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", |
| 8 | + "Παρασκευή", "Σαββάτο" |
| 9 | +); |
| 10 | + |
| 11 | +/* private */ $wgMonthNamesEl = array( |
| 12 | + "Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάϊος", "Ιούνιος", |
| 13 | + "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", |
| 14 | + "Δεκέμβριος" |
| 15 | +); |
| 16 | + |
| 17 | +/* private */ $wgMonthAbbreviationsEl = array( |
| 18 | + "Ιαν". "Φεβρ", "Μάρτ", "Απρ", "Μάïος", "Ιούν", "Ιούν", |
| 19 | + "Ιούλ", "Αύγ", "Σεπτ", "Οκτώβ", "Νοέμβ", "Δεκέμ" |
| 20 | +); |
| 21 | + |
6 | 22 | class LanguageEl extends LanguageUtf8 { |
7 | 23 | function fallback8bitEncoding() { |
8 | 24 | return "windows-1253"; |
9 | 25 | } |
| 26 | + |
| 27 | + function getMonthName( $key ) |
| 28 | + { |
| 29 | + global $wgMonthNamesEl; |
| 30 | + return $wgMonthNamesEl[$key-1]; |
| 31 | + } |
| 32 | + |
| 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 | + |
10 | 45 | } |
11 | 46 | |
12 | 47 | ?> |