Autoptimize - Version 0.9

Version Description

  • Add workaround for networkedblogs.
  • Add workarounds for histats and statscounter
  • Add workaround for smowtion and infolinks.
  • Add workaround for Featured Content Gallery
  • Simplified Chinese translation
  • Update Spanish Translation
  • Modify the cache system so it uses wp-content/cache/
  • Add a clear cache button
Download this release

Release Info

Developer turl
Plugin Icon 128x128 Autoptimize
Version 0.9
Comparing to
See all releases

Code changes from version 0.8 to 0.9

autoptimize.php CHANGED
@@ -3,21 +3,20 @@
3
  Plugin Name: Autoptimize
4
  Plugin URI: http://www.turleando.com.ar/autoptimize/
5
  Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
6
- Version: 0.8
7
  Author: Emilio López
8
  Author URI: http://www.turleando.com.ar/
9
  Released under the GNU General Public License (GPL)
10
  http://www.gnu.org/licenses/gpl.txt
11
  */
12
 
13
- //Pre-2.6 compatibility
14
- if(!defined('WP_PLUGIN_URL'))
15
- define('WP_PLUGIN_URL',WP_CONTENT_URL.'/plugins');
16
- if(!defined('WP_PLUGIN_DIR'))
17
- define('WP_PLUGIN_DIR',WP_CONTENT_DIR.'/plugins');
18
 
19
- //Load config class
20
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeConfig.php');
 
21
 
22
  //Load translations
23
  $plugin_dir = basename(dirname(__FILE__));
@@ -29,20 +28,19 @@ function autoptimize_start_buffering()
29
  //Config element
30
  $conf = autoptimizeConfig::instance();
31
 
32
- //Load our always-on classes
33
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeBase.php');
34
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeCache.php');
35
 
36
  //Load extra classes and set some vars
37
  if($conf->get('autoptimize_html'))
38
  {
39
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeHTML.php');
40
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/minify-html.php');
41
  }
42
 
43
  if($conf->get('autoptimize_js'))
44
  {
45
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeScripts.php');
46
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/jsmin-1.1.1.php');
47
  define('CONCATENATE_SCRIPTS',false);
48
  define('COMPRESS_SCRIPTS',false);
@@ -50,7 +48,7 @@ function autoptimize_start_buffering()
50
 
51
  if($conf->get('autoptimize_css'))
52
  {
53
- @include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeStyles.php');
54
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/minify-css-compressor.php');
55
  define('COMPRESS_CSS',false);
56
  }
@@ -103,10 +101,12 @@ function autoptimize_end_buffering($content)
103
  return $content;
104
  }
105
 
106
-
107
- $conf = autoptimizeConfig::instance();
108
- if($conf->get('autoptimize_html') || $conf->get('autoptimize_js') || $conf->get('autoptimize_css'))
109
  {
110
- //Hook to wordpress
111
- add_action('template_redirect','autoptimize_start_buffering',2);
 
 
 
 
112
  }
3
  Plugin Name: Autoptimize
4
  Plugin URI: http://www.turleando.com.ar/autoptimize/
5
  Description: Optimizes your website, concatenating the CSS and JavaScript code, and compressing it.
6
+ Version: 0.9
7
  Author: Emilio López
8
  Author URI: http://www.turleando.com.ar/
9
  Released under the GNU General Public License (GPL)
10
  http://www.gnu.org/licenses/gpl.txt
11
  */
12
 
13
+ //Load config and cache class
14
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeConfig.php');
15
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeCache.php');
 
 
16
 
17
+ //Plugin constants
18
+ define('AUTOPTIMIZE_CACHE_DIR',WP_CONTENT_DIR.'/cache/autoptimize/');
19
+ define('AUTOPTIMIZE_CACHE_URL',WP_CONTENT_URL.'/cache/autoptimize/');
20
 
21
  //Load translations
22
  $plugin_dir = basename(dirname(__FILE__));
28
  //Config element
29
  $conf = autoptimizeConfig::instance();
30
 
31
+ //Load our base class
32
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeBase.php');
 
33
 
34
  //Load extra classes and set some vars
35
  if($conf->get('autoptimize_html'))
36
  {
37
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeHTML.php');
38
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/minify-html.php');
39
  }
40
 
41
  if($conf->get('autoptimize_js'))
42
  {
43
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeScripts.php');
44
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/jsmin-1.1.1.php');
45
  define('CONCATENATE_SCRIPTS',false);
46
  define('COMPRESS_SCRIPTS',false);
48
 
49
  if($conf->get('autoptimize_css'))
50
  {
51
+ include(WP_PLUGIN_DIR.'/autoptimize/classes/autoptimizeStyles.php');
52
  @include(WP_PLUGIN_DIR.'/autoptimize/classes/minify-css-compressor.php');
53
  define('COMPRESS_CSS',false);
54
  }
101
  return $content;
102
  }
103
 
104
+ if(autoptimizeCache::cacheavail())
 
 
105
  {
106
+ $conf = autoptimizeConfig::instance();
107
+ if($conf->get('autoptimize_html') || $conf->get('autoptimize_js') || $conf->get('autoptimize_css'))
108
+ {
109
+ //Hook to wordpress
110
+ add_action('template_redirect','autoptimize_start_buffering',2);
111
+ }
112
  }
classes/autoptimizeCache.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
- class autopimizeCache
4
  {
5
  private $filename;
6
  private $mime;
7
  private $cachedir;
8
 
9
- public function __construct($cachedir,$md5)
10
  {
11
- $this->cachedir = $cachedir;
12
  $this->filename = 'autoptimize_'.$md5.'.php';
13
  }
14
 
@@ -37,4 +37,89 @@ class autopimizeCache
37
  {
38
  return $this->filename;
39
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
1
  <?php
2
 
3
+ class autoptimizeCache
4
  {
5
  private $filename;
6
  private $mime;
7
  private $cachedir;
8
 
9
+ public function __construct($md5)
10
  {
11
+ $this->cachedir = AUTOPTIMIZE_CACHE_DIR;
12
  $this->filename = 'autoptimize_'.$md5.'.php';
13
  }
14
 
37
  {
38
  return $this->filename;
39
  }
40
+
41
+ static function clearall()
42
+ {
43
+ //Cache not available :(
44
+ if(!autoptimizeCache::cacheavail())
45
+ return false;
46
+
47
+ //Clean the cachedir
48
+ $scan = scandir(AUTOPTIMIZE_CACHE_DIR);
49
+ foreach($scan as $file)
50
+ {
51
+ if(!in_array($file,array('.','..')) && strpos($file,'autoptimize') !== false && is_file(AUTOPTIMIZE_CACHE_DIR.$file))
52
+ {
53
+ @@unlink(AUTOPTIMIZE_CACHE_DIR.$file);
54
+ }
55
+ }
56
+
57
+ //Do we need to clean WP Super Cache's cache files?
58
+ if(function_exists('wp_cache_clean_cache') && file_exists(WP_CONTENT_DIR.'/wp-cache-config.php'))
59
+ {
60
+ $cacheconfig = file_get_contents(WP_CONTENT_DIR.'/wp-cache-config.php');
61
+ preg_match('#^\$file_prefix\s*=\s*(\'|")(.*)\\1;$#Um',$cacheconfig,$matches);
62
+ $prefix = $matches[2];
63
+ wp_cache_clean_cache($prefix);
64
+ unset($cacheconfig,$prefix);
65
+ echo 'WPSUPERCACHEEEE XD';
66
+ }
67
+
68
+ return true;
69
+ }
70
+
71
+ static function stats()
72
+ {
73
+ //Cache not available :(
74
+ if(!autoptimizeCache::cacheavail())
75
+ return 0;
76
+
77
+ //Count cached info
78
+ $count = 0;
79
+ $scan = scandir(AUTOPTIMIZE_CACHE_DIR);
80
+ foreach($scan as $file)
81
+ {
82
+ if(!in_array($file,array('.','..')) && strpos($file,'autoptimize') !== false)
83
+ {
84
+ if(is_file(AUTOPTIMIZE_CACHE_DIR.$file) && strpos($file,'none') !== false)
85
+ {
86
+ ++$count;
87
+ }/*else{
88
+ //Tricky one... it was a dir or a gzip/deflate file
89
+ }*/
90
+ }
91
+ }
92
+
93
+ //Tell the number of instances
94
+ return $count;
95
+ }
96
+
97
+ static function cacheavail()
98
+ {
99
+ if(!defined('AUTOPTIMIZE_CACHE_DIR'))
100
+ {
101
+ //We didn't set a cache
102
+ return false;
103
+ }
104
+
105
+ //Check for existence
106
+ if(!file_exists(AUTOPTIMIZE_CACHE_DIR))
107
+ {
108
+ @mkdir(AUTOPTIMIZE_CACHE_DIR,0775,true);
109
+ if(!file_exists(AUTOPTIMIZE_CACHE_DIR))
110
+ {
111
+ //Where should we cache?
112
+ return false;
113
+ }
114
+ }
115
+
116
+ if(!is_writable(AUTOPTIMIZE_CACHE_DIR))
117
+ {
118
+ //How are we supposed to write?
119
+ return false;
120
+ }
121
+
122
+ //All OK
123
+ return true;
124
+ }
125
  }
classes/autoptimizeConfig.php CHANGED
@@ -23,6 +23,12 @@ class autoptimizeConfig
23
  $plugin = plugin_basename(WP_PLUGIN_DIR.'/autoptimize/autoptimize.php');
24
  add_filter('plugin_action_links_'.$plugin,array($this,'setmeta'));
25
  }
 
 
 
 
 
 
26
  }
27
  }
28
 
@@ -85,10 +91,27 @@ class autoptimizeConfig
85
  </tr>
86
  </table>
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  </table>
89
 
90
  <p class="submit">
91
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
 
92
  </p>
93
 
94
  </form>
@@ -109,6 +132,7 @@ class autoptimizeConfig
109
  register_setting('autoptimize','autoptimize_js_justhead');
110
  register_setting('autoptimize','autoptimize_css');
111
  register_setting('autoptimize','autoptimize_css_justhead');
 
112
  }
113
 
114
  public function setmeta($links,$file=null)
23
  $plugin = plugin_basename(WP_PLUGIN_DIR.'/autoptimize/autoptimize.php');
24
  add_filter('plugin_action_links_'.$plugin,array($this,'setmeta'));
25
  }
26
+ //Clean cache?
27
+ if(get_option('autoptimize_cache_clean'))
28
+ {
29
+ autoptimizeCache::clearall();
30
+ update_option('autoptimize_cache_clean',0);
31
+ }
32
  }
33
  }
34
 
91
  </tr>
92
  </table>
93
 
94
+ <h3><?php _e('Cache Info','autoptimize'); ?></h3>
95
+ <table class="form-table">
96
+ <tr valign="top">
97
+ <th scope="row"><?php _e('Cache folder','autoptimize'); ?></th>
98
+ <td><?php echo htmlentities(AUTOPTIMIZE_CACHE_DIR); ?></td>
99
+ </tr>
100
+ <tr valign="top">
101
+ <th scope="row"><?php _e('Can we write?','autoptimize'); ?></th>
102
+ <td><?php echo (autoptimizeCache::cacheavail() ? __('Yes','autoptimize') : __('No','autoptimize')); ?></td>
103
+ </tr>
104
+ <tr valign="top">
105
+ <th scope="row"><?php _e('Cached styles and scripts','autoptimize'); ?></th>
106
+ <td><?php echo autoptimizeCache::stats(); ?></td>
107
+ </tr>
108
+ </table>
109
+
110
  </table>
111
 
112
  <p class="submit">
113
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
114
+ <input type="submit" name="autoptimize_cache_clean" value="<?php _e('Save Changes and Empty Cache') ?>" />
115
  </p>
116
 
117
  </form>
132
  register_setting('autoptimize','autoptimize_js_justhead');
133
  register_setting('autoptimize','autoptimize_css');
134
  register_setting('autoptimize','autoptimize_css_justhead');
135
+ register_setting('autoptimize','autoptimize_cache_clean');
136
  }
137
 
138
  public function setmeta($links,$file=null)
classes/autoptimizeScripts.php CHANGED
@@ -3,9 +3,9 @@
3
  class autoptimizeScripts extends autoptimizeBase
4
  {
5
  private $scripts = array();
6
- private $dontmove = array('document.write','show_ads.js','google_ad','blogcatalog.com/w','tweetmeme.com/i','mybloglog.com/','swfobject.embedSWF(');
7
- private $domove = array('gaJsHost','load_cmc');
8
- private $domovelast = array('addthis.com','/afsonline/show_afs_search.js','disqus.js');
9
  private $trycatch = false;
10
  private $jscode = '';
11
  private $url = '';
@@ -135,13 +135,13 @@ class autoptimizeScripts extends autoptimizeBase
135
  public function cache()
136
  {
137
  $md5 = md5($this->jscode);
138
- $cache = new autopimizeCache(WP_PLUGIN_DIR.'/autoptimize/cache/',$md5);
139
  if(!$cache->check())
140
  {
141
  //Cache our code
142
  $cache->cache($this->jscode,'text/javascript');
143
  }
144
- $this->url = WP_PLUGIN_URL.'/autoptimize/cache/'.$cache->getname();
145
  }
146
 
147
  //Returns the content
3
  class autoptimizeScripts extends autoptimizeBase
4
  {
5
  private $scripts = array();
6
+ private $dontmove = array('document.write','show_ads.js','google_ad','blogcatalog.com/w','tweetmeme.com/i','mybloglog.com/','swfobject.embedSWF(','var s_sid = ','histats.com/js','smowtion_size','ads.smowtion.com/ad.js','sc_project','statcounter.com/counter/counter.js');
7
+ private $domove = array('gaJsHost','load_cmc','jd.gallery.transitions.js');
8
+ private $domovelast = array('addthis.com','/afsonline/show_afs_search.js','disqus.js','networkedblogs.com/getnetworkwidget','infolinks.com/js/','jd.gallery.js.php','jd.gallery.transitions.js');
9
  private $trycatch = false;
10
  private $jscode = '';
11
  private $url = '';
135
  public function cache()
136
  {
137
  $md5 = md5($this->jscode);
138
+ $cache = new autoptimizeCache($md5);
139
  if(!$cache->check())
140
  {
141
  //Cache our code
142
  $cache->cache($this->jscode,'text/javascript');
143
  }
144
+ $this->url = AUTOPTIMIZE_CACHE_URL.$cache->getname();
145
  }
146
 
147
  //Returns the content
classes/autoptimizeStyles.php CHANGED
@@ -190,13 +190,13 @@ class autoptimizeStyles extends autoptimizeBase
190
  foreach($this->csscode as $media => $code)
191
  {
192
  $md5 = md5($code);
193
- $cache = new autopimizeCache(WP_PLUGIN_DIR.'/autoptimize/cache/',$md5);
194
  if(!$cache->check())
195
  {
196
  //Cache our code
197
  $cache->cache($code,'text/css');
198
  }
199
- $this->url[$media] = WP_PLUGIN_URL.'/autoptimize/cache/'.$cache->getname();
200
  }
201
  }
202
 
190
  foreach($this->csscode as $media => $code)
191
  {
192
  $md5 = md5($code);
193
+ $cache = new autoptimizeCache($md5);
194
  if(!$cache->check())
195
  {
196
  //Cache our code
197
  $cache->cache($code,'text/css');
198
  }
199
+ $this->url[$media] = AUTOPTIMIZE_CACHE_URL.$cache->getname();
200
  }
201
  }
202
 
localization/autoptimize-es_ES.mo CHANGED
Binary file
localization/autoptimize-es_ES.po CHANGED
@@ -7,91 +7,107 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: autoptimize\n"
9
  "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10
- "POT-Creation-Date: 2009-07-21 03:53+0000\n"
11
- "PO-Revision-Date: 2009-07-21 18:55+0000\n"
12
- "Last-Translator: Emilio <Unknown>\n"
13
  "Language-Team: Spanish <es@li.org>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
- "X-Launchpad-Export-Date: 2009-07-21 19:00+0000\n"
18
  "X-Generator: Launchpad (build Unknown)\n"
19
 
20
- #: classes/autoptimizeConfig.php:44
21
  msgid "Autoptimize Settings"
22
  msgstr "Configuración de Autoptimize"
23
 
24
- #: classes/autoptimizeConfig.php:49
25
  msgid "HTML Options"
26
  msgstr "Opciones de HTML"
27
 
28
- #: classes/autoptimizeConfig.php:52
29
  msgid "Optimize HTML Code?"
30
  msgstr "¿Optimizar el código HTML?"
31
 
32
- #: classes/autoptimizeConfig.php:57
33
  msgid "JavaScript Options"
34
  msgstr "Opciones de JavaScript"
35
 
36
- #: classes/autoptimizeConfig.php:60
37
  msgid "Optimize JavaScript Code?"
38
  msgstr "¿Optimizar el código JavaScript?"
39
 
40
- #: classes/autoptimizeConfig.php:64
41
  msgid "Look for scripts only in &lt;head&gt;?"
42
  msgstr "¿Buscar scripts solo en &lt;head&gt;?"
43
 
44
- #: classes/autoptimizeConfig.php:66 classes/autoptimizeConfig.php:84
45
- msgid ""
46
- "Disabled by default. If the cache gets big, you might want to enable this."
47
- msgstr ""
48
- "Deshabilitado por defecto. Si el cache se hace grande, tal vez quiera "
49
- "habilitar esto."
50
 
51
- #: classes/autoptimizeConfig.php:69
52
  msgid "Add try-catch wrapping?"
53
  msgstr "¿Añadir envolturas try-catch?"
54
 
55
- #: classes/autoptimizeConfig.php:71
56
- msgid ""
57
- "Disabled by default. If your scripts break because of an script error, you "
58
- "might want to try this."
59
- msgstr ""
60
- "Deshabilitado por defecto. Si sus scripts dejan de funcionar por un error de "
61
- "scripting, tal vez quiera probar esto."
62
 
63
- #: classes/autoptimizeConfig.php:75
64
  msgid "CSS Options"
65
  msgstr "Opciones de CSS"
66
 
67
- #: classes/autoptimizeConfig.php:78
68
  msgid "Optimize CSS Code?"
69
  msgstr "¿Optimizar el código CSS?"
70
 
71
- #: classes/autoptimizeConfig.php:82
72
  msgid "Look for styles on just &lt;head&gt;?"
73
  msgstr "¿Buscar estilos solo en &lt;head&gt;?"
74
 
75
- #: classes/autoptimizeConfig.php:91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  msgid "Save Changes"
77
  msgstr "Guardar Cambios"
78
 
79
- #: classes/autoptimizeConfig.php:101
 
 
 
 
80
  msgid "Autoptimize Options"
81
  msgstr "Configuración de Autoptimize"
82
 
83
- #: classes/autoptimizeConfig.php:126 classes/autoptimizeConfig.php:133
 
84
  msgid "Settings"
85
  msgstr "Configuración"
86
 
87
- #. Plugin Name of an extension
88
- msgid "Autoptimize"
89
- msgstr "Autoptimize"
90
-
91
  #. Description of an extension
92
- msgid ""
93
- "Optimizes your website, concatenating the CSS and JavaScript code, and "
94
- "compressing it."
95
- msgstr ""
96
- "Optimiza tu sitio web, concatenando el código CSS y Javascript, y "
97
- "comprimiéndolo."
7
  msgstr ""
8
  "Project-Id-Version: autoptimize\n"
9
  "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10
+ "POT-Creation-Date: 2009-07-24 22:40+0000\n"
11
+ "PO-Revision-Date: 2009-07-24 20:10-0300\n"
12
+ "Last-Translator: Emilio López <turl@tuxfamily.org>\n"
13
  "Language-Team: Spanish <es@li.org>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Launchpad-Export-Date: 2009-07-24 23:04+0000\n"
18
  "X-Generator: Launchpad (build Unknown)\n"
19
 
20
+ #: classes/autoptimizeConfig.php:50
21
  msgid "Autoptimize Settings"
22
  msgstr "Configuración de Autoptimize"
23
 
24
+ #: classes/autoptimizeConfig.php:55
25
  msgid "HTML Options"
26
  msgstr "Opciones de HTML"
27
 
28
+ #: classes/autoptimizeConfig.php:58
29
  msgid "Optimize HTML Code?"
30
  msgstr "¿Optimizar el código HTML?"
31
 
32
+ #: classes/autoptimizeConfig.php:63
33
  msgid "JavaScript Options"
34
  msgstr "Opciones de JavaScript"
35
 
36
+ #: classes/autoptimizeConfig.php:66
37
  msgid "Optimize JavaScript Code?"
38
  msgstr "¿Optimizar el código JavaScript?"
39
 
40
+ #: classes/autoptimizeConfig.php:70
41
  msgid "Look for scripts only in &lt;head&gt;?"
42
  msgstr "¿Buscar scripts solo en &lt;head&gt;?"
43
 
44
+ #: classes/autoptimizeConfig.php:72
45
+ #: classes/autoptimizeConfig.php:90
46
+ msgid "Disabled by default. If the cache gets big, you might want to enable this."
47
+ msgstr "Deshabilitado por defecto. Si el cache se hace grande, tal vez quiera habilitar esto."
 
 
48
 
49
+ #: classes/autoptimizeConfig.php:75
50
  msgid "Add try-catch wrapping?"
51
  msgstr "¿Añadir envolturas try-catch?"
52
 
53
+ #: classes/autoptimizeConfig.php:77
54
+ msgid "Disabled by default. If your scripts break because of an script error, you might want to try this."
55
+ msgstr "Deshabilitado por defecto. Si sus scripts dejan de funcionar por un error de scripting, tal vez quiera probar esto."
 
 
 
 
56
 
57
+ #: classes/autoptimizeConfig.php:81
58
  msgid "CSS Options"
59
  msgstr "Opciones de CSS"
60
 
61
+ #: classes/autoptimizeConfig.php:84
62
  msgid "Optimize CSS Code?"
63
  msgstr "¿Optimizar el código CSS?"
64
 
65
+ #: classes/autoptimizeConfig.php:88
66
  msgid "Look for styles on just &lt;head&gt;?"
67
  msgstr "¿Buscar estilos solo en &lt;head&gt;?"
68
 
69
+ #: classes/autoptimizeConfig.php:94
70
+ msgid "Cache Info"
71
+ msgstr "Información sobre el Caché"
72
+
73
+ #: classes/autoptimizeConfig.php:97
74
+ msgid "Cache folder"
75
+ msgstr "Carpeta de Caché"
76
+
77
+ #: classes/autoptimizeConfig.php:101
78
+ msgid "Can we write?"
79
+ msgstr "¿Se puede escribir?"
80
+
81
+ #: classes/autoptimizeConfig.php:102
82
+ msgid "Yes"
83
+ msgstr "Si"
84
+
85
+ #: classes/autoptimizeConfig.php:102
86
+ msgid "No"
87
+ msgstr "No"
88
+
89
+ #: classes/autoptimizeConfig.php:105
90
+ msgid "Cached styles and scripts"
91
+ msgstr "Estilos y scripts cacheados"
92
+
93
+ #: classes/autoptimizeConfig.php:113
94
  msgid "Save Changes"
95
  msgstr "Guardar Cambios"
96
 
97
+ #: classes/autoptimizeConfig.php:114
98
+ msgid "Save Changes and Empty Cache"
99
+ msgstr "Guardar Cambios y Vaciar el Caché"
100
+
101
+ #: classes/autoptimizeConfig.php:124
102
  msgid "Autoptimize Options"
103
  msgstr "Configuración de Autoptimize"
104
 
105
+ #: classes/autoptimizeConfig.php:150
106
+ #: classes/autoptimizeConfig.php:157
107
  msgid "Settings"
108
  msgstr "Configuración"
109
 
 
 
 
 
110
  #. Description of an extension
111
+ msgid "Optimizes your website, concatenating the CSS and JavaScript code, and compressing it."
112
+ msgstr "Optimiza tu sitio web, concatenando el código CSS y Javascript, y comprimiéndolo."
113
+
 
 
 
localization/autoptimize-zh_CN.mo ADDED
Binary file
localization/autoptimize-zh_CN.po ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Autoptimize\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/autoptimize\n"
5
+ "POT-Creation-Date: 2009-07-21 03:53+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Donald <donaldz@live.com>\n"
8
+ "Language-Team: Donald <donaldz@live.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Chinese\n"
13
+
14
+ #: classes/autoptimizeConfig.php:44
15
+ msgid "Autoptimize Settings"
16
+ msgstr "Autoptimize 设置"
17
+
18
+ #: classes/autoptimizeConfig.php:49
19
+ msgid "HTML Options"
20
+ msgstr "HTML 选项"
21
+
22
+ #: classes/autoptimizeConfig.php:52
23
+ msgid "Optimize HTML Code?"
24
+ msgstr "优化 HTML 代码?"
25
+
26
+ #: classes/autoptimizeConfig.php:57
27
+ msgid "JavaScript Options"
28
+ msgstr "JavaScript 选项"
29
+
30
+ #: classes/autoptimizeConfig.php:60
31
+ msgid "Optimize JavaScript Code?"
32
+ msgstr "优化 JavaScript 代码?"
33
+
34
+ #: classes/autoptimizeConfig.php:64
35
+ msgid "Look for scripts only in &lt;head&gt;?"
36
+ msgstr "只在 &lt;head&gt; 中寻找脚本?"
37
+
38
+ #: classes/autoptimizeConfig.php:66
39
+ #: classes/autoptimizeConfig.php:84
40
+ msgid "Disabled by default. If the cache gets big, you might want to enable this."
41
+ msgstr "默认禁用此功能。 如果缓存文件夹变的非常大,你可能需要启用它。"
42
+
43
+ #: classes/autoptimizeConfig.php:69
44
+ msgid "Add try-catch wrapping?"
45
+ msgstr "添加异常处理环绕(try-catch wrapping)?"
46
+
47
+ #: classes/autoptimizeConfig.php:71
48
+ msgid "Disabled by default. If your scripts break because of an script error, you might want to try this."
49
+ msgstr "默认禁用此功能。 如果某个脚本错误导致你的脚本们无法正常运作,你可能需要启用它。"
50
+
51
+ #: classes/autoptimizeConfig.php:75
52
+ msgid "CSS Options"
53
+ msgstr "CSS 选项"
54
+
55
+ #: classes/autoptimizeConfig.php:78
56
+ msgid "Optimize CSS Code?"
57
+ msgstr "优化 CSS 代码?"
58
+
59
+ #: classes/autoptimizeConfig.php:82
60
+ msgid "Look for styles on just &lt;head&gt;?"
61
+ msgstr "只在 &lt;head&gt; 里寻找样式表"
62
+
63
+ #: classes/autoptimizeConfig.php:91
64
+ msgid "Save Changes"
65
+ msgstr "保存更改"
66
+
67
+ #: classes/autoptimizeConfig.php:101
68
+ msgid "Autoptimize Options"
69
+ msgstr "Autoptimize 选项"
70
+
71
+ #: classes/autoptimizeConfig.php:126
72
+ #: classes/autoptimizeConfig.php:133
73
+ msgid "Settings"
74
+ msgstr "设置"
75
+
76
+ #. Plugin Name of an extension
77
+ msgid "Autoptimize"
78
+ msgstr "Autoptimize"
79
+
80
+ #. Description of an extension
81
+ msgid "Optimizes your website, concatenating the CSS and JavaScript code, and compressing it."
82
+ msgstr "优化你的网站, 整合CSS和JavaScript代码并压缩。"
83
+
localization/autoptimize.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/autoptimize\n"
11
- "POT-Creation-Date: 2009-07-21 03:53+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,71 +16,95 @@ msgstr ""
16
  "Content-Type: text/plain; charset=CHARSET\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: classes/autoptimizeConfig.php:44
20
  msgid "Autoptimize Settings"
21
  msgstr ""
22
 
23
- #: classes/autoptimizeConfig.php:49
24
  msgid "HTML Options"
25
  msgstr ""
26
 
27
- #: classes/autoptimizeConfig.php:52
28
  msgid "Optimize HTML Code?"
29
  msgstr ""
30
 
31
- #: classes/autoptimizeConfig.php:57
32
  msgid "JavaScript Options"
33
  msgstr ""
34
 
35
- #: classes/autoptimizeConfig.php:60
36
  msgid "Optimize JavaScript Code?"
37
  msgstr ""
38
 
39
- #: classes/autoptimizeConfig.php:64
40
  msgid "Look for scripts only in &lt;head&gt;?"
41
  msgstr ""
42
 
43
- #: classes/autoptimizeConfig.php:66 classes/autoptimizeConfig.php:84
44
  msgid ""
45
  "Disabled by default. If the cache gets big, you might want to enable this."
46
  msgstr ""
47
 
48
- #: classes/autoptimizeConfig.php:69
49
  msgid "Add try-catch wrapping?"
50
  msgstr ""
51
 
52
- #: classes/autoptimizeConfig.php:71
53
  msgid ""
54
  "Disabled by default. If your scripts break because of an script error, you "
55
  "might want to try this."
56
  msgstr ""
57
 
58
- #: classes/autoptimizeConfig.php:75
59
  msgid "CSS Options"
60
  msgstr ""
61
 
62
- #: classes/autoptimizeConfig.php:78
63
  msgid "Optimize CSS Code?"
64
  msgstr ""
65
 
66
- #: classes/autoptimizeConfig.php:82
67
  msgid "Look for styles on just &lt;head&gt;?"
68
  msgstr ""
69
 
70
- #: classes/autoptimizeConfig.php:91
71
- msgid "Save Changes"
 
 
 
 
72
  msgstr ""
73
 
74
  #: classes/autoptimizeConfig.php:101
75
- msgid "Autoptimize Options"
76
  msgstr ""
77
 
78
- #: classes/autoptimizeConfig.php:126 classes/autoptimizeConfig.php:133
79
- msgid "Settings"
 
 
 
 
80
  msgstr ""
81
 
82
- #. Plugin Name of an extension
83
- msgid "Autoptimize"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  msgstr ""
85
 
86
  #. Description of an extension
@@ -88,3 +112,4 @@ msgid ""
88
  "Optimizes your website, concatenating the CSS and JavaScript code, and "
89
  "compressing it."
90
  msgstr ""
 
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/autoptimize\n"
11
+ "POT-Creation-Date: 2009-07-24 22:40+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
  "Content-Type: text/plain; charset=CHARSET\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: classes/autoptimizeConfig.php:50
20
  msgid "Autoptimize Settings"
21
  msgstr ""
22
 
23
+ #: classes/autoptimizeConfig.php:55
24
  msgid "HTML Options"
25
  msgstr ""
26
 
27
+ #: classes/autoptimizeConfig.php:58
28
  msgid "Optimize HTML Code?"
29
  msgstr ""
30
 
31
+ #: classes/autoptimizeConfig.php:63
32
  msgid "JavaScript Options"
33
  msgstr ""
34
 
35
+ #: classes/autoptimizeConfig.php:66
36
  msgid "Optimize JavaScript Code?"
37
  msgstr ""
38
 
39
+ #: classes/autoptimizeConfig.php:70
40
  msgid "Look for scripts only in &lt;head&gt;?"
41
  msgstr ""
42
 
43
+ #: classes/autoptimizeConfig.php:72 classes/autoptimizeConfig.php:90
44
  msgid ""
45
  "Disabled by default. If the cache gets big, you might want to enable this."
46
  msgstr ""
47
 
48
+ #: classes/autoptimizeConfig.php:75
49
  msgid "Add try-catch wrapping?"
50
  msgstr ""
51
 
52
+ #: classes/autoptimizeConfig.php:77
53
  msgid ""
54
  "Disabled by default. If your scripts break because of an script error, you "
55
  "might want to try this."
56
  msgstr ""
57
 
58
+ #: classes/autoptimizeConfig.php:81
59
  msgid "CSS Options"
60
  msgstr ""
61
 
62
+ #: classes/autoptimizeConfig.php:84
63
  msgid "Optimize CSS Code?"
64
  msgstr ""
65
 
66
+ #: classes/autoptimizeConfig.php:88
67
  msgid "Look for styles on just &lt;head&gt;?"
68
  msgstr ""
69
 
70
+ #: classes/autoptimizeConfig.php:94
71
+ msgid "Cache Info"
72
+ msgstr ""
73
+
74
+ #: classes/autoptimizeConfig.php:97
75
+ msgid "Cache folder"
76
  msgstr ""
77
 
78
  #: classes/autoptimizeConfig.php:101
79
+ msgid "Can we write?"
80
  msgstr ""
81
 
82
+ #: classes/autoptimizeConfig.php:102
83
+ msgid "Yes"
84
+ msgstr ""
85
+
86
+ #: classes/autoptimizeConfig.php:102
87
+ msgid "No"
88
  msgstr ""
89
 
90
+ #: classes/autoptimizeConfig.php:105
91
+ msgid "Cached styles and scripts"
92
+ msgstr ""
93
+
94
+ #: classes/autoptimizeConfig.php:113
95
+ msgid "Save Changes"
96
+ msgstr ""
97
+
98
+ #: classes/autoptimizeConfig.php:114
99
+ msgid "Save Changes and Empty Cache"
100
+ msgstr ""
101
+
102
+ #: classes/autoptimizeConfig.php:124
103
+ msgid "Autoptimize Options"
104
+ msgstr ""
105
+
106
+ #: classes/autoptimizeConfig.php:150 classes/autoptimizeConfig.php:157
107
+ msgid "Settings"
108
  msgstr ""
109
 
110
  #. Description of an extension
112
  "Optimizes your website, concatenating the CSS and JavaScript code, and "
113
  "compressing it."
114
  msgstr ""
115
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: turl
3
  Donate link: http://www.turleando.com.ar/autoptimize/
4
  Tags: css, html, javascript, js, optimize, speed, cache
5
  Requires at least: 2.7
6
- Tested up to: 2.8.1
7
- Stable tag: 0.8
8
 
9
  Autoptimize is a Wordpress plugin that speeds up your website, and helps you save bandwidth.
10
 
@@ -38,6 +38,16 @@ Sure, you can help with translations in the [Launchpad translation page](https:/
38
 
39
  == Changelog ==
40
 
 
 
 
 
 
 
 
 
 
 
41
  = 0.8 =
42
  * Add workaround for Vipers Video Quicktags
43
  * Support <link> tags without media.
3
  Donate link: http://www.turleando.com.ar/autoptimize/
4
  Tags: css, html, javascript, js, optimize, speed, cache
5
  Requires at least: 2.7
6
+ Tested up to: 2.8.2
7
+ Stable tag: 0.9
8
 
9
  Autoptimize is a Wordpress plugin that speeds up your website, and helps you save bandwidth.
10
 
38
 
39
  == Changelog ==
40
 
41
+ = 0.9 =
42
+ * Add workaround for networkedblogs.
43
+ * Add workarounds for histats and statscounter
44
+ * Add workaround for smowtion and infolinks.
45
+ * Add workaround for Featured Content Gallery
46
+ * Simplified Chinese translation
47
+ * Update Spanish Translation
48
+ * Modify the cache system so it uses wp-content/cache/
49
+ * Add a clear cache button
50
+
51
  = 0.8 =
52
  * Add workaround for Vipers Video Quicktags
53
  * Support <link> tags without media.