Small tweaks to string_translator
This commit is contained in:
parent
70cf5ae3c7
commit
5cfefba5c8
|
@ -4,6 +4,7 @@
|
||||||
<style>
|
<style>
|
||||||
textarea { width: 100% }
|
textarea { width: 100% }
|
||||||
.no { background: #ffdddd; }
|
.no { background: #ffdddd; }
|
||||||
|
label { border-bottom: 1px solid #888; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -78,14 +79,13 @@ function strhex($string) {
|
||||||
|
|
||||||
|
|
||||||
echo "<h1>Translator</h1>";
|
echo "<h1>Translator</h1>";
|
||||||
echo "<p>Utility to translate <code>string.php</code> file.";
|
echo "<small>Utility to translate <code>string.php</code> file.";
|
||||||
echo " Need write permission to language file you want to modify</p>";
|
echo " Need write permission to language file you want to modify</small>";
|
||||||
echo "<p>Installed languages:";
|
echo "<p>Installed languages:";
|
||||||
echo "<ul>";
|
|
||||||
foreach($LANGS as $l){
|
foreach($LANGS as $l){
|
||||||
echo "<li><a href='?lang=$l'>$l</a></li>";
|
echo "<a href='?lang=$l'>$l</a>, ";
|
||||||
}
|
}
|
||||||
echo "</ul></p>";
|
echo "</p>";
|
||||||
|
|
||||||
|
|
||||||
$strings['en'] = loadstrings();
|
$strings['en'] = loadstrings();
|
||||||
|
@ -156,7 +156,7 @@ if (isset($_GET['lang'])){
|
||||||
|
|
||||||
$istranslate = $translation != '' ? 'yes':'no';
|
$istranslate = $translation != '' ? 'yes':'no';
|
||||||
echo "<dl class='$istranslate'>";
|
echo "<dl class='$istranslate'>";
|
||||||
echo "<dt><label for='$id'>".htmlspecialchars($v)."</label></dt>";
|
echo "<dt><pre><label for='$id'>".htmlspecialchars($v)."</label></pre></dt>";
|
||||||
echo "<dd><textarea id='$id' name='$id'>$translation</textarea></dd>";
|
echo "<dd><textarea id='$id' name='$id'>$translation</textarea></dd>";
|
||||||
echo "</dl>";
|
echo "</dl>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue