| 1 |
hanska-guest |
610 |
<?php
|
| 2 |
|
|
require_once("inc/header.inc.php");
|
| 3 |
|
|
?>
|
| 4 |
|
|
<table class="columns">
|
| 5 |
|
|
<tr>
|
| 6 |
|
|
<td class="left">
|
| 7 |
|
|
<span class="section"><?=_("summary")?></span>
|
| 8 |
|
|
<div class="section">
|
| 9 |
|
|
<div class="sectionTop"></div>
|
| 10 |
|
|
<div class="row">
|
| 11 |
|
|
<?=_("Current locale")?>:
|
| 12 |
|
|
<strong><?=$locale?></strong>
|
| 13 |
|
|
</div>
|
| 14 |
|
|
<div class="row">
|
| 15 |
|
|
<?=_("Priority")?>:
|
| 16 |
|
|
<strong><?=$priority?></strong>
|
| 17 |
|
|
</div>
|
| 18 |
|
|
<?php
|
| 19 |
|
|
if ($show_locale_warning) {
|
| 20 |
|
|
?>
|
| 21 |
|
|
<div class="row warning">
|
| 22 |
|
|
<?=_("You're using a low priority locale.<br />Please ask the site administrators to add your locale, or provide one yourself :).<br />")?>
|
| 23 |
|
|
<?=_("More information on how to contribute to the Debian-Med project, can be found in the")?>
|
| 24 |
|
|
<a href="/contribute.php"><del><?=_("How to Contribute")?></del></a><?=_("page")?>.
|
| 25 |
|
|
</div>
|
| 26 |
|
|
<?php
|
| 27 |
|
|
}
|
| 28 |
|
|
?>
|
| 29 |
|
|
</div>
|
| 30 |
|
|
</td>
|
| 31 |
|
|
<td class="main">
|
| 32 |
|
|
<span class="section"><?=_("localization")?></span>
|
| 33 |
|
|
<div class="section">
|
| 34 |
|
|
<div class="sectiontop"></div>
|
| 35 |
|
|
<div class="row">
|
| 36 |
|
|
<h1><?=_("Currently installed locales")?></h1>
|
| 37 |
|
|
<table>
|
| 38 |
|
|
<tr>
|
| 39 |
|
|
<th><?=_("locale")?></th>
|
| 40 |
|
|
<th><?=_("translation status")?></th>
|
| 41 |
|
|
<th><?=_("author")?></th>
|
| 42 |
|
|
<th><?=_("team")?></th>
|
| 43 |
|
|
</tr>
|
| 44 |
|
|
<tr>
|
| 45 |
|
|
<td><strong>en_US</strong></td>
|
| 46 |
|
|
<td>100% (builtin)</td>
|
| 47 |
|
|
<td></td>
|
| 48 |
|
|
<td></td>
|
| 49 |
|
|
</tr>
|
| 50 |
|
|
<?php
|
| 51 |
|
|
require_once("inc/po-stats.inc.php");
|
| 52 |
|
|
|
| 53 |
|
|
$handle = opendir("locale/");
|
| 54 |
|
|
$avail_locales = array();
|
| 55 |
|
|
while ($file = readdir($handle)) {
|
| 56 |
|
|
if ($file != "." && $file != ".." && $file != ".svn") {
|
| 57 |
|
|
// we get this $locales_dir from locale.inc.php
|
| 58 |
|
|
//if (is_dir($locales_dir.$file)) {
|
| 59 |
|
|
if (is_dir("locale/$file")) {
|
| 60 |
|
|
$po = "locale/$file/LC_MESSAGES/messages.po";
|
| 61 |
|
|
$avail_locales[$file] = makePOStats($po);
|
| 62 |
|
|
}
|
| 63 |
|
|
}
|
| 64 |
|
|
}
|
| 65 |
|
|
|
| 66 |
|
|
foreach ($avail_locales as $lang) {
|
| 67 |
|
|
?>
|
| 68 |
|
|
<tr>
|
| 69 |
|
|
<td><strong><?=key($avail_locales)?><strong></td>
|
| 70 |
|
|
<td><?=$lang["complete"]?>%</td>
|
| 71 |
|
|
<td><?=htmlentities($lang["author"])?></td>
|
| 72 |
|
|
<td><?=htmlentities($lang["team"])?></td>
|
| 73 |
|
|
</tr>
|
| 74 |
|
|
<?php
|
| 75 |
|
|
}
|
| 76 |
|
|
?>
|
| 77 |
|
|
</table>
|
| 78 |
|
|
</div>
|
| 79 |
|
|
<div class="row">
|
| 80 |
|
|
<h1><?=_("Add new locale")?></h1>
|
| 81 |
|
|
</div>
|
| 82 |
|
|
</div>
|
| 83 |
|
|
</td>
|
| 84 |
|
|
</tr>
|
| 85 |
|
|
</table>
|
| 86 |
|
|
<?php
|
| 87 |
|
|
require_once("inc/footer.inc.php");
|
| 88 |
|
|
?>
|