profiling
[lhc/web/wiklou.git] / languages / LanguageEl.php
1 <?php
2 /** Greek (Ελληνικά)
3 *
4 * Translation by Pasok Internet Volunteers
5 * http://forum.pasok.gr
6 * version 1.0 (initial release)
7 *
8 *The project for the translation of MediaWiki into Greek
9 *was undertaken by a group of ICT volunteers working under
10 *the auspices of the Greek political party PASOK.
11 *
12 *The idea behind this effort was to provide an extensible,
13 *easy-to-use and non-intimidating tool for content development
14 *and project management, to be used throughout the administrative
15 *and political structure of PASOK by staff, volunteers, party members
16 *and elected officials (all of whom possess varying degrees of ICT skills).
17 *
18 *The PASOK ICT team and the volunteers who worked on this project are
19 *now returning the translated interface to the Open-Source Community
20 *with over 98% of the messages translated into user-friendly Greek.
21 *
22 *We hope that it will be used as a tool by other civil society organizations
23 *in Greece, and that it will enhance the collective creation and the dissemination
24 *of knowledge - an essential component of the democratic process.
25 *
26 * @package MediaWiki
27 * @subpackage Language
28 */
29
30 require_once( 'LanguageUtf8.php' );
31
32 if (!$wgCachedMessageArrays) {
33 require_once('MessagesEl.php');
34 }
35
36 class LanguageEl extends LanguageUtf8 {
37 private $mMessagesEl, $mNamespaceNamesEl = null;
38
39 function __construct() {
40 parent::__construct();
41
42 global $wgAllMessagesEl;
43 $this->mMessagesEl =& $wgAllMessagesEl;
44
45 global $wgMetaNamespace;
46 $this->mNamespaceNamesEl = array(
47 NS_MEDIA => 'Μέσον',
48 NS_SPECIAL => 'Ειδικό',
49 NS_MAIN => '',
50 NS_TALK => 'Συζήτηση',
51 NS_USER => 'Χρήστης',
52 NS_USER_TALK => 'Συζήτηση_χρήστη',
53 NS_PROJECT => $wgMetaNamespace,
54 NS_PROJECT_TALK => $wgMetaNamespace . '_συζήτηση',
55 NS_IMAGE => 'Εικόνα',
56 NS_IMAGE_TALK => 'Συζήτηση_εικόνας',
57 NS_MEDIAWIKI => 'MediaWiki',
58 NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
59 NS_TEMPLATE => 'Πρότυπο',
60 NS_TEMPLATE_TALK => 'Συζήτηση_προτύπου',
61 NS_HELP => 'Βοήθεια',
62 NS_HELP_TALK => 'Συζήτηση_βοήθειας',
63 NS_CATEGORY => 'Κατηγορία',
64 NS_CATEGORY_TALK => 'Συζήτηση_κατηγορίας',
65 );
66
67 }
68
69 function getNamespaces() {
70 return $this->mNamespaceNamesEl + parent::getNamespaces();
71 }
72
73 function getMessage( $key ) {
74 if( isset( $this->mMessagesEl[$key] ) ) {
75 return $this->mMessagesEl[$key];
76 } else {
77 return parent::getMessage( $key );
78 }
79 }
80
81 function getAllMessages() {
82 return $this->mMessagesEl;
83 }
84
85 function fallback8bitEncoding() {
86 return 'iso-8859-7';
87 }
88
89 function separatorTransformTable() {
90 return array(',' => '.', '.' => ',' );
91 }
92
93 }
94
95 ?>