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