Getting ready for 1.2.0 release.
[squirrelmail.git] / functions / i18n.php
CommitLineData
59177427 1<?php
1fd97780 2
35586184 3/**
4 * i18n.php
5 *
15e6162e 6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
35586184 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This file contains variuos functions that are needed to do
10 * internationalization of SquirrelMail.
11 *
12 * Internally the output character set is used. Other characters are
13 * encoded using Unicode entities according to HTML 4.0.
14 *
15 * $Id$
16 */
17
18/*****************************************************************/
19/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
20/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
21/*** + Base level indent should begin at left margin, as ***/
22/*** the global definition below. ***/
23/*** + All identation should consist of four space blocks ***/
24/*** + Tab characters are evil. ***/
25/*** + all comments should use "slash-star ... star-slash" ***/
26/*** style -- no pound characters, no slash-slash style ***/
27/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
28/*** ALWAYS USE { AND } CHARACTERS!!! ***/
29/*** + Please use ' instead of ", when possible. Note " ***/
30/*** should always be used in _( ) function calls. ***/
31/*** Thank you for your help making the SM code more readable. ***/
32/*****************************************************************/
33
34global $squirrelmail_language, $languages;
35if (! isset($squirrelmail_language)) { $squirrelmail_language = ''; }
1fd97780 36
d30d79f2 37 // This array specifies the available languages.
066c374f 38 $languages['ca']['NAME'] = 'Catalan';
39 $languages['ca']['CHARSET'] = 'iso-8859-1';
73d9de4e 40 $languages['ca_CA']['ALIAS'] = 'ca';
13e0c649 41
9fca0333 42 /* PLEASE DON'T TOUCH!!!
43 * Correct locale name, which should be set by setlocale and/or putenv('LC_ALL='...)
2d367c68 44 * is 'cs_CZ' and NOT 'cs', this applies to all locale names, look into docs, if you
45 * don't believe me. Ondrej Sury, czech and slovak translator.
46 */
9fca0333 47 $languages['cs_CZ']['NAME'] = 'Czech';
48 $languages['cs_CZ']['CHARSET'] = 'iso-8859-2';
0bc17f8c 49 $languages['cs']['ALIAS'] = 'cs_CZ';
6353ebc3 50 $languages['cz']['ALIAS'] = 'cs_CZ'; // set up by some ancient versions of IE
13e0c649 51
066c374f 52 $languages['da']['NAME'] = 'Danish';
53 $languages['da']['CHARSET'] = 'iso-8859-1';
73d9de4e 54 $languages['da_DA']['ALIAS'] = 'da';
13e0c649 55
066c374f 56 $languages['de']['NAME'] = 'Deutsch';
57 $languages['de']['CHARSET'] = 'iso-8859-1';
73d9de4e 58 $languages['de_DE']['ALIAS'] = 'de';
13e0c649 59
e2ea18ce 60 $languages['en']['NAME'] = 'English';
61 $languages['en']['CHARSET'] = 'iso-8859-1';
62 $languages['en_EN']['ALIAS'] = 'en';
13e0c649 63
e2ea18ce 64 $languages['es']['NAME'] = 'Spanish';
65 $languages['es']['CHARSET'] = 'iso-8859-1';
66 $languages['es_ES']['ALIAS'] = 'es';
67
5f2d92d0 68 $languages['et']['NAME'] = 'Estonian';
69 $languages['et']['CHARSET'] = 'iso-8859-15';
70 $languages['et_EE']['ALIAS'] = 'et';
71
e2ea18ce 72 $languages['fi']['NAME'] = 'Finnish';
73 $languages['fi']['CHARSET'] = 'iso-8859-1';
74 $languages['fi_FI']['ALIAS'] = 'fi';
75
066c374f 76 $languages['fr']['NAME'] = 'French';
77 $languages['fr']['CHARSET'] = 'iso-8859-1';
73d9de4e 78 $languages['fr_FR']['ALIAS'] = 'fr';
13e0c649 79
e2ea18ce 80 $languages['hr']['NAME'] = 'Croatian';
81 $languages['hr']['CHARSET'] = 'iso-8859-2';
82 $languages['hr_HR']['ALIAS'] = 'hr';
066c374f 83
d546b253 84 $languages['hu']['NAME'] = 'Hungarian';
cd2241f9 85 $languages['hu']['CHARSET'] = 'iso-8859-2';
73d9de4e 86 $languages['hu_HU']['ALIAS'] = 'hu';
d546b253 87
e2ea18ce 88 $languages['id']['NAME'] = 'Indonesian';
89 $languages['id']['CHARSET'] = 'iso-8859-1';
90 $languages['id_ID']['ALIAS'] = 'id';
91
8b7f3fe5 92 $languages['is']['NAME'] = 'Icelandic';
93 $languages['is']['CHARSET'] = 'iso-8859-1';
73d9de4e 94 $languages['is_IS']['ALIAS'] = 'is';
8b7f3fe5 95
066c374f 96 $languages['it']['NAME'] = 'Italian';
97 $languages['it']['CHARSET'] = 'iso-8859-1';
73d9de4e 98 $languages['it_IT']['ALIAS'] = 'it';
066c374f 99
100 $languages['ko']['NAME'] = 'Korean';
101 $languages['ko']['CHARSET'] = 'euc-KR';
48371af7 102 $languages['ko_KO']['ALIAS'] = 'ko';
13e0c649 103
e2ea18ce 104 $languages['nl']['NAME'] = 'Dutch';
105 $languages['nl']['CHARSET'] = 'iso-8859-1';
106 $languages['nl_NL']['ALIAS'] = 'nl';
107
066c374f 108 $languages['no']['NAME'] = 'Norwegian (Bokm&aring;l)';
109 $languages['no']['CHARSET'] = 'iso-8859-1';
73d9de4e 110 $languages['no_NO']['ALIAS'] = 'no';
066c374f 111 $languages['no_NO_ny']['NAME'] = 'Norwegian (Nynorsk)';
112 $languages['no_NO_ny']['CHARSET'] = 'iso-8859-1';
13e0c649 113
066c374f 114 $languages['pl']['NAME'] = 'Polish';
115 $languages['pl']['CHARSET'] = 'iso-8859-2';
48371af7 116 $languages['pl_PL']['ALIAS'] = 'pl';
73d9de4e 117
118