Live hack: Skip some work on empty category/link sets
[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 /** */
31 require_once( 'LanguageUtf8.php' );
32
33 $wgNamespaceNamesEl = array(
34 NS_MEDIA => 'Μέσον',
35 NS_SPECIAL => 'Ειδικό',
36 NS_MAIN => '',
37 NS_TALK => 'Συζήτηση',
38 NS_USER => 'Χρήστης',
39 NS_USER_TALK => 'Συζήτηση_χρήστη',
40 NS_PROJECT => $wgMetaNamespace,
41 NS_PROJECT_TALK => $wgMetaNamespace . '_συζήτηση',
42 NS_IMAGE => 'Εικόνα',
43 NS_IMAGE_TALK => 'Συζήτηση_εικόνας',
44 NS_MEDIAWIKI => 'MediaWiki',
45 NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
46 NS_TEMPLATE => 'Πρότυπο',
47 NS_TEMPLATE_TALK => 'Συζήτηση_προτύπου',
48 NS_HELP => 'Βοήθεια',
49 NS_HELP_TALK => 'Συζήτηση_βοήθειας',
50 NS_CATEGORY => 'Κατηγορία',
51 NS_CATEGORY_TALK => 'Συζήτηση_κατηγορίας',
52 ) + $wgNamespaceNamesEn;
53
54 if (!$wgCachedMessageArrays) {
55 require_once('MessagesEl.php');
56 }
57
58 /** @package MediaWiki */
59 class LanguageEl extends LanguageUtf8 {
60
61 function getNamespaces() {
62 global $wgNamespaceNamesEl;
63 return $wgNamespaceNamesEl;
64 }
65
66 function getMessage( $key ) {
67 global $wgAllMessagesEl;
68
69 return isset( $wgAllMessagesEl[$key] ) ? $wgAllMessagesEl[$key] : parent::getMessage( $key );
70 }
71
72 function fallback8bitEncoding() {
73 return 'iso-8859-7';
74 }
75
76 function formatNum( $number, $year = false ) {
77 return $year ? $number : strtr($this->commafy( $number ), '.,', ',.' );
78 }
79 }
80
81 ?>