summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-05-16 10:41:32 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-05-16 10:41:32 +0200
commit524be65dda410b9a3ced3fa06e672b4fd2cda5e4 (patch)
tree928fe3dfe442a2847d5fefcb7d62bb09ac7b17af /lib
parent2b03e74de514af15d4004e7635625fa64816231a (diff)
downloadrpg-524be65dda410b9a3ced3fa06e672b4fd2cda5e4.tar.gz
rpg-524be65dda410b9a3ced3fa06e672b4fd2cda5e4.tar.bz2
gzip content-encoding option
- Enables gzip compression of output xhtml for browsers that support it. For example the wiki:syntax page takes up 46.80KB raw, but only 9.88KB gzip encoded. - Setting is configurable through the config plugin. darcs-hash:20060516084132-05dcb-d8d1c7911a951b00e166c5a94f46a2cf1cfa5846.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/config/lang/en/lang.php5
-rw-r--r--lib/plugins/config/settings/config.metadata.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/plugins/config/lang/en/lang.php b/lib/plugins/config/lang/en/lang.php
index b41402072..5e2599419 100644
--- a/lib/plugins/config/lang/en/lang.php
+++ b/lib/plugins/config/lang/en/lang.php
@@ -93,18 +93,19 @@ $lang['usedraft'] = 'Automatically save a draft while editing';
$lang['sepchar'] = 'Page name word separator';
$lang['canonical'] = 'Use fully canonical URLs';
$lang['autoplural'] = 'Check for plural forms in links';
-$lang['usegzip'] = 'Use gzip (for attic)';
+$lang['usegzip'] = 'Use gzip for attic files';
$lang['cachetime'] = 'Maximum age for cache (sec)';
$lang['purgeonadd'] = 'Purge cache when new pages are added';
$lang['locktime'] = 'Maximum age for lock files (sec)';
$lang['notify'] = 'Send change notifications to this email address';
$lang['mailfrom'] = 'Email address to use for automatic mails';
+$lang['gzip_output'] = 'Use gzip Content-Encoding for xhtml';
$lang['gdlib'] = 'GD Lib version';
$lang['im_convert'] = 'Path to ImageMagick\'s convert tool';
$lang['jpg_quality'] = 'JPG compression quality (0-100)';
$lang['spellchecker']= 'Enable spellchecker';
$lang['subscribers'] = 'Enable page subscription support';
-$lang['compress'] = 'Compress CSS and javascript files';
+$lang['compress'] = 'Compact CSS and javascript output';
$lang['hidepages'] = 'Hide matching pages (regular expressions)';
$lang['send404'] = 'Send "HTTP 404/Page Not Found" for non existing pages';
$lang['sitemap'] = 'Generate Google sitemap (days)';
diff --git a/lib/plugins/config/settings/config.metadata.php b/lib/plugins/config/settings/config.metadata.php
index d48d08d56..1514d731c 100644
--- a/lib/plugins/config/settings/config.metadata.php
+++ b/lib/plugins/config/settings/config.metadata.php
@@ -144,11 +144,12 @@ $meta['useslash'] = array('onoff');
$meta['sepchar'] = array('sepchar');
$meta['canonical'] = array('onoff');
$meta['autoplural'] = array('onoff');
-$meta['usegzip'] = array('onoff');
$meta['mailfrom'] = array('email');
$meta['compress'] = array('onoff');
+$meta['gzip_output'] = array('onoff');
$meta['hidepages'] = array('string');
$meta['send404'] = array('onoff');
+$meta['usegzip'] = array('onoff');
$meta['sitemap'] = array('numeric');
$meta['rss_type'] = array('multichoice','_choices' => array('rss','rss1','rss2','atom'));
$meta['rss_linkto'] = array('multichoice','_choices' => array('diff','page','rev','current'));