blob: e758131fa871edb3c3b20c369e58fed38703ded1 [file] [log] [blame]
atoulme4c5e9162009-01-26 18:36:34 +00001<?php
2/*******************************************************************************
3 * Copyright (c) 2007-2008 Eclipse Foundation and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Paul Colton (Aptana)- initial API and implementation
11 * Eclipse Foundation
kitlof237f0e2009-03-14 02:12:56 +000012 * Kit Lo (IBM) - Beautify Babel Supported Languages table
atoulme4c5e9162009-01-26 18:36:34 +000013*******************************************************************************/
14require(dirname(__FILE__) . "/global.php");
15require_once(dirname(__FILE__) . "/../classes/system/language.class.php");
16InitPage("");
17
18$pageTitle = "Babel Project - Eclipse translation";
19$pageKeywords = "translation,language,nlpack,pack,eclipse,babel,english,french,german,chinese,japanese,spanish,arabic,hebrew,hungarian,polish,italian,russian,dutch,finnish,greek,norwegian,sweedish,turkish";
20
atoulmea4adf8e2009-01-27 19:01:35 +000021global $addon;
22$addon->callHook("head");
atoulme4c5e9162009-01-26 18:36:34 +000023
24?>
kitlof237f0e2009-03-14 02:12:56 +000025<style>
26 table {
27 margin-left: auto;
28 margin-right: auto;
29 }
atoulme4c5e9162009-01-26 18:36:34 +000030
kitlof237f0e2009-03-14 02:12:56 +000031 .head {
32 background-color: SteelBlue;
33 color: white;
34 margin: 0px;
35 font-size: 14px;
36 padding: 2px;
37 }
atoulme4c5e9162009-01-26 18:36:34 +000038
kitlof237f0e2009-03-14 02:12:56 +000039 .odd {
40 background-color: LightSteelBlue;
41 }
atoulme4c5e9162009-01-26 18:36:34 +000042
kitlof237f0e2009-03-14 02:12:56 +000043 .foot {
44 background-color: LightGray;
45 }
46</style>
atoulme4c5e9162009-01-26 18:36:34 +000047
kitlof237f0e2009-03-14 02:12:56 +000048<h1 id="page-message">Babel Supported Languages</h1></br>
49
50<table width=512>
51<tr class="head">
52 <td><b>Language</b></td><td><b>ISO</b></td>
atoulme4c5e9162009-01-26 18:36:34 +000053</tr>
54<?php
55$languages = Language::all();
56foreach ($languages as $lang) {
kitlof237f0e2009-03-14 02:12:56 +000057 $rowcount++;
58 $class="";
59 if($rowcount % 2) {
60 $class="class='odd'";
61 }
62 echo "<tr $class>";
63 if ($lang->iso == "en_AA") {
64 $rowcount--;
65 continue;
66 }
atoulme4c5e9162009-01-26 18:36:34 +000067$row = <<<ROW
kitlof237f0e2009-03-14 02:12:56 +000068 <td>$lang->name</td><td>$lang->iso</td>
atoulme4c5e9162009-01-26 18:36:34 +000069ROW;
kitlof237f0e2009-03-14 02:12:56 +000070 echo $row;
71 echo "</tr>";
atoulme4c5e9162009-01-26 18:36:34 +000072}
73?>
kitlof237f0e2009-03-14 02:12:56 +000074<tr class="foot">
75 <td colspan=2><?= $rowcount ?> <?= $rowcount > 1 ? "languages" : "language" ?> found</td>
76</tr>
77</table>
atoulme4c5e9162009-01-26 18:36:34 +000078
kitlof237f0e2009-03-14 02:12:56 +000079<p align=center>Please <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Babel&component=Server&bug_file_loc=<?= $_SERVER['SCRIPT_NAME']; ?>">
atoulme4c5e9162009-01-26 18:36:34 +000080contact us</a> if the language you need is missing.</p>
81
82<?php
atoulmea4adf8e2009-01-27 19:01:35 +000083 global $addon;
84 $addon->callHook("footer");
atoulme4c5e9162009-01-26 18:36:34 +000085?>