1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Compress each translation separately

This commit is contained in:
Jakub Vrana
2012-09-03 15:59:05 -07:00
parent ccd1246666
commit 0317638e80
2 changed files with 12 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ function get_lang() {
*/
function lang($idf, $number = null) {
global $LANG, $translations;
$translation = (isset($translations[$idf]) ? $translations[$idf] : $idf);
$translation = ($translations[$idf] ? $translations[$idf] : $idf);
if (is_array($translation)) {
$pos = ($number == 1 ? 0
: ($LANG == 'cs' || $LANG == 'sk' ? ($number && $number < 5 ? 1 : 2) // different forms for 1, 2-4, other
@@ -78,6 +78,7 @@ function switch_lang() {
echo "</div>\n</form>\n";
}
// used in compiled version
function lzw_decompress($binary) {
// convert binary string to codes
$dictionary_count = 256;