diff --git a/ChangeLog b/ChangeLog index 10b81f81b8..774339f58e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,8 +3,8 @@ phpMyAdmin - ChangeLog 4.1.4.0 (not yet released) - bug #3840 (additional fix) When exporting to gzip format, the data is compressed 2 times +- bug #4209 Missing compression in one case - bug #4208 Can't browse tables after sorting on columns with fieldnames that have a '-' - 4.1.3.0 (2013-12-31) - bug #3938 PDFDefaultPageSize doc and easy configurability - bug #4198 Hovering over pie chart gives fatal JS error diff --git a/export.php b/export.php index bd6f9d687f..18aae1c92f 100644 --- a/export.php +++ b/export.php @@ -300,9 +300,17 @@ function PMA_isGzHandlerEnabled() */ function PMA_gzencodeNeeded() { + /* + * We should gzencode only if the function exists + * but we don't want to compress twice, therefore + * gzencode only if transparent compression is not enabled + * and gz compression was not asked via $cfg['OBGzip'] + * but transparent compression does not apply when saving to server + */ if (@function_exists('gzencode') - && ! @ini_get('zlib.output_compression') - && ! PMA_isGzHandlerEnabled() + && ((! @ini_get('zlib.output_compression') + && ! PMA_isGzHandlerEnabled()) + || $GLOBALS['save_on_server']) ) { return true; } else { diff --git a/po/zh_CN.po b/po/zh_CN.po index 4bdd7b4b9c..1ff5f21246 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -4,16 +4,16 @@ msgstr "" "Project-Id-Version: phpMyAdmin 4.1.3-dev\n" "Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n" "POT-Creation-Date: 2013-12-27 10:57-0500\n" -"PO-Revision-Date: 2013-09-26 20:35+0200\n" -"Last-Translator: Hao Luo \n" -"Language-Team: Simplified Chinese \n" +"PO-Revision-Date: 2014-01-01 09:31+0200\n" +"Last-Translator: zz zz \n" +"Language-Team: Simplified Chinese " +"\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 1.7-dev\n" +"X-Generator: Weblate 1.9-dev\n" #: changelog.php:36 license.php:28 #, php-format @@ -411,7 +411,7 @@ msgstr "" #: error_report.php:37 error_report.php:54 error_report.php:65 #: error_report.php:81 msgid "You may want to refresh the page." -msgstr "" +msgstr "您需要刷新当前页面。" #: error_report.php:45 msgid ""