atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 1 | <?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 |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 12 | * Kit Lo (IBM) - Beautify Babel Supported Languages table |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 13 | *******************************************************************************/ |
| 14 | require(dirname(__FILE__) . "/global.php"); |
| 15 | require_once(dirname(__FILE__) . "/../classes/system/language.class.php"); |
| 16 | InitPage(""); |
| 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 | |
atoulme | a4adf8e | 2009-01-27 19:01:35 +0000 | [diff] [blame] | 21 | global $addon; |
| 22 | $addon->callHook("head"); |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 23 | |
| 24 | ?> |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 25 | <style> |
| 26 | table { |
| 27 | margin-left: auto; |
| 28 | margin-right: auto; |
| 29 | } |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 30 | |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 31 | .head { |
| 32 | background-color: SteelBlue; |
| 33 | color: white; |
| 34 | margin: 0px; |
| 35 | font-size: 14px; |
| 36 | padding: 2px; |
| 37 | } |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 38 | |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 39 | .odd { |
| 40 | background-color: LightSteelBlue; |
| 41 | } |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 42 | |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 43 | .foot { |
| 44 | background-color: LightGray; |
| 45 | } |
| 46 | </style> |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 47 | |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 48 | <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> |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 53 | </tr> |
| 54 | <?php |
| 55 | $languages = Language::all(); |
| 56 | foreach ($languages as $lang) { |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 57 | $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 | } |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 67 | $row = <<<ROW |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 68 | <td>$lang->name</td><td>$lang->iso</td> |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 69 | ROW; |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 70 | echo $row; |
| 71 | echo "</tr>"; |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 72 | } |
| 73 | ?> |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 74 | <tr class="foot"> |
| 75 | <td colspan=2><?= $rowcount ?> <?= $rowcount > 1 ? "languages" : "language" ?> found</td> |
| 76 | </tr> |
| 77 | </table> |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 78 | |
kitlo | f237f0e | 2009-03-14 02:12:56 +0000 | [diff] [blame] | 79 | <p align=center>Please <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Babel&component=Server&bug_file_loc=<?= $_SERVER['SCRIPT_NAME']; ?>"> |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 80 | contact us</a> if the language you need is missing.</p> |
| 81 | |
| 82 | <?php |
atoulme | a4adf8e | 2009-01-27 19:01:35 +0000 | [diff] [blame] | 83 | global $addon; |
| 84 | $addon->callHook("footer"); |
atoulme | 4c5e916 | 2009-01-26 18:36:34 +0000 | [diff] [blame] | 85 | ?> |