Head Cleaner - Version 1.2.0

Version Description

Download this release

Release Info

Developer wokamoto
Plugin Icon wp plugin Head Cleaner
Version 1.2.0
Comparing to
See all releases

Code changes from version 1.1.6 to 1.2.0

head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.1.6
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -107,37 +107,41 @@ if (!class_exists('wokController') || !class_exists('wokScriptManager'))
107
  //**************************************************************************************
108
  class HeadCleanerController extends wokController {
109
  public $plugin_name = 'head-cleaner';
110
- public $plugin_ver = '1.1.6';
111
 
112
  // Deafault Options
113
  private $options_default = array(
114
- 'foot_js' => false
115
- , 'dynamic' => false
116
- , 'js_move_foot' => false
117
- , 'cache_enabled' => true
118
- , 'combined_css' => true
119
- , 'combined_js' => true
120
- , 'js_minify' => false
121
- , 'css_optimise' => false
122
- , 'csstidy_option' => array(
123
- 'optimise_shorthands' => 1
124
- , 'compress_colors' => true
125
- , 'compress_font_weight' => true
126
- , 'remove_bslash' => true
127
- , 'template' => 1
128
- )
129
- , 'default_media' => 'screen'
130
- , 'debug_mode' => false
131
- , 'filters' => array('wp_head' => array(), 'wp_footer' => array())
132
- , 'priority' => array('wp_head' => array(), 'wp_footer' => array())
133
- , 'head_js' => array()
134
- , 'analyze_expired'=> 0
 
 
 
 
135
  );
136
  private $csstidy_template = array(
137
- 'low_compression'
138
- , 'default'
139
- , 'high_compression'
140
- , 'highest_compression'
141
  );
142
 
143
  private $wp_url = '';
@@ -153,10 +157,19 @@ class HeadCleanerController extends wokController {
153
  private $filters;
154
  private $head_js;
155
  private $no_conflict = array(
156
- 'comment_quicktags' // Comment Quicktags
157
- , 'stats_footer' // WordPress.com Stats
158
- , 'uga_wp_footer_track' // Ultimate Google Analytics
159
- , 'tam_google_analytics::insert_tracking_code' // TaM Google Analytics
 
 
 
 
 
 
 
 
 
160
  );
161
 
162
  /**********************************************************
@@ -268,8 +281,8 @@ class HeadCleanerController extends wokController {
268
  //**************************************************************************************
269
  public function activation(){
270
  $cache_dir = $this->_create_cache_dir();
271
- $this->_create_htaccess($cache_dir);
272
- // $this->_create_htaccess(dirname(__FILE__) . '/includes/js');
273
  }
274
 
275
  //**************************************************************************************
@@ -347,43 +360,51 @@ class HeadCleanerController extends wokController {
347
  $css_tag = ''; $inline_css = '';
348
  $script_tag = ''; $inline_js = '';
349
 
350
- $ua = trim(strtolower($_SERVER['HTTP_USER_AGENT']));
351
- $ie = (strpos($ua, 'msie') !== false)
352
- && (! preg_match('/(gecko|applewebkit|opera|sleipnir|chrome)/i', $ua));
353
- $ie_ver = ($ie ? preg_replace('/^.*msie +([\d\.]+);.*$/i', '$1', $ua) : false);
354
- $ie6 = ($ie ? version_compare($ie_ver, '7.0', '<') : false);
355
- if ($ie) {
356
- // for IE conditional tag
357
- $replace_pattern = '/<\!-+[ \t]*\[if[ \t]+%sIE%s[ \t]*?\][ \t]*>(.*?)<\![ \t]*\[endif\][ \t]*-+>/ism';
358
- $head_txt = preg_replace(sprintf($replace_pattern, '', ''), '$1', $head_txt);
359
-
360
- $replace_patterns = array();
361
- if (version_compare($ie_ver, '5.5', '<')) { // IE 5
362
- $replace_patterns[] = sprintf($replace_pattern, '([lg]te[ \t]*|[ \t]*)', ' 5\.?0?'); // >= 5, <= 5, = 5
363
- $replace_patterns[] = sprintf($replace_pattern, '(lte?[ \t]*)', ' 5\.5'); // < 5.5, <= 5.5
364
- $replace_patterns[] = sprintf($replace_pattern, '(lte?[ \t]*)', ' [678]\.?0?'); // < 6 - 8, <= 6 - 8
365
- } elseif (version_compare($ie_ver, '6.0', '<')) { // IE 5.5
366
- $replace_patterns[] = sprintf($replace_pattern, '([lg]te[ \t]*|[ \t]*)', ' 5\.5'); // >= 5.5, <= 5.5, = 5.5
367
- $replace_patterns[] = sprintf($replace_pattern, '(lte?[ \t]*)', ' [678]\.?0?'); // < 6 - 8, <= 6 - 8
368
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' 5\.?0?'); // > 5, >= 5
369
- } elseif (version_compare($ie_ver, '7.0', '<')) { // IE 6
370
- $replace_patterns[] = sprintf($replace_pattern, '([lg]te[ \t]*|[ \t]*)', ' 6\.?0?'); // >= 6, <= 6, = 6
371
- $replace_patterns[] = sprintf($replace_pattern, '(lte?[ \t]*)', ' [78]\.?0?'); // < 7 - 8, <= 7 - 8
372
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' 5\.?0?'); // > 5, >= 5
373
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
374
- } elseif (version_compare($ie_ver, '8.0', '<')) { // IE 7
375
- $replace_patterns[] = sprintf($replace_pattern, '([lg]te[ \t]*|[ \t]*)', ' 7\.?0?'); // >= 7, <= 7, = 7
376
- $replace_patterns[] = sprintf($replace_pattern, '(lte?[ \t]*)', ' 8\.?0?'); // < 8, <= 8
377
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' [56]\.?0?'); // > 5 - 6, >= 5 - 6
378
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
379
- } elseif (version_compare($ie_ver, '9.0', '<')) { // IE 8
380
- $replace_patterns[] = sprintf($replace_pattern, '([lg]te[ \t]*|[ \t]*)', ' 8\.?0?'); // >= 8, <= 8, = 8
381
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' [567]\.?0?'); // > 5 - 7, >= 5 - 7
382
- $replace_patterns[] = sprintf($replace_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
383
- }
 
 
384
 
385
- if (count($replace_patterns) > 0)
386
- $head_txt = preg_replace($replace_patterns, '$2', $head_txt);
 
 
 
 
 
 
387
  }
388
 
389
  if (preg_match('/^(.*)(<html[^>]*>[^<]*)(<head[^>]*>[^<]*)(.*)$/ism', $head_txt, $matches)) {
@@ -422,7 +443,7 @@ class HeadCleanerController extends wokController {
422
  $title_tag = $this->_dom_to_html($dom->find("title"), 1);
423
  $base_tag = $this->_dom_to_html($dom->find("base"), 1);
424
  $link_tag = $this->_dom_to_html($dom->find("link[rel!='stylesheet']"));
425
- if (count($dom->find("link[rel='canonical']")) <= 0)
426
  $link_tag .= '<link rel="canonical" href="' . htmlspecialchars($url, ENT_QUOTES) . '" />'."\n";
427
 
428
  $css_tag = ''; $inner_css = ''; $css_src = array();
@@ -577,6 +598,26 @@ class HeadCleanerController extends wokController {
577
 
578
  $dom->clear(); unset($dom);
579
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
580
  $ret_val .=
581
  $html_tag
582
  . $head_tag
@@ -590,7 +631,8 @@ class HeadCleanerController extends wokController {
590
  . (!$this->options['js_move_foot'] ? $inline_js : '')
591
  . $object_tag
592
  ;
593
- $ret_val = str_replace('\'', '"', $ret_val);
 
594
 
595
  if ($this->options['js_move_foot'] || !empty($foot_js))
596
  $this->foot_js_src = trim(
@@ -603,7 +645,7 @@ class HeadCleanerController extends wokController {
603
  add_action('wp_footer', array(&$this, 'footer'), 9);
604
  }
605
 
606
- $ret_val = ($ie6
607
  ? preg_replace('/^<\?xml[^>]*>/i', '', $ret_val)
608
  : (strpos($ret_val, '<?xml') === false ? $xml_head : '') . $ret_val
609
  );
@@ -1402,11 +1444,14 @@ class HeadCleanerController extends wokController {
1402
  //**************************************************************************************
1403
  private function _create_htaccess($dir) {
1404
  if (!file_exists($dir))
1405
- return false;
 
 
1406
 
1407
  $text = '# BEGIN Head Cleaner' . "\n"
1408
  . '<IfModule mod_rewrite.c>' . "\n"
1409
  . 'RewriteEngine On' . "\n"
 
1410
  . 'RewriteCond %{HTTP:Accept-Encoding} gzip' . "\n"
1411
  . 'RewriteCond %{REQUEST_FILENAME} "\.(css|js)$"' . "\n"
1412
  . 'RewriteCond %{REQUEST_FILENAME} !"\.gz$"' . "\n"
@@ -1416,19 +1461,38 @@ class HeadCleanerController extends wokController {
1416
  . '# END Head Cleaner' . "\n";
1417
  $filename = trailingslashit($dir) . '.htaccess';
1418
 
1419
- if (!file_exists($filename)) {
1420
- return $this->_file_write($filename, $text, false);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1421
  } else {
1422
- $content = $this->_file_read($filename);
1423
- if ($content !== FALSE) {
1424
- if (strpos($content, '# BEGIN Head Cleaner') === FALSE && strpos($content, 'RewriteRule .+ %{REQUEST_URI}.gz') === FALSE) {
1425
- $text = $content . "\n" . $text;
1426
- return $this->_file_write($filename, $text, false);
 
 
 
 
 
1427
  } else {
1428
- return TRUE;
1429
  }
1430
  } else {
1431
- return FALSE;
1432
  }
1433
  }
1434
  }
@@ -1475,6 +1539,9 @@ class HeadCleanerController extends wokController {
1475
  $_POST = $this->stripArray($_POST);
1476
 
1477
  // get options
 
 
 
1478
  $this->options['foot_js'] = (isset($_POST['foot_js']) && $_POST['foot_js'] == 'on' ? true : false);
1479
  $this->options['dynamic'] = (isset($_POST['dynamic']) && $_POST['dynamic'] == 'on' ? true : false);
1480
  $this->options['js_move_foot'] = (isset($_POST['js_move_foot']) && $_POST['js_move_foot'] == 'on' ? true : false);
@@ -1484,6 +1551,7 @@ class HeadCleanerController extends wokController {
1484
  $this->options['js_minify'] = (isset($_POST['js_minify']) && $_POST['js_minify'] == 'on' ? true : false);
1485
  $this->options['css_optimise'] = (isset($_POST['css_optimise']) && $_POST['css_optimise'] == 'on' ? true : false);
1486
  $this->options['default_media'] = trim($_POST['default_media']);
 
1487
  $this->options['debug_mode'] = (isset($_POST['debug_mode']) && $_POST['debug_mode'] == 'on' ? true : false);
1488
  $this->options['csstidy_option']['template'] = (int) $_POST['template'];
1489
  $this->options['csstidy_option']['optimise_shorthands'] = (int) $_POST['optimise_shorthands'];
@@ -1532,6 +1600,11 @@ class HeadCleanerController extends wokController {
1532
  // options update
1533
  $this->updateOptions();
1534
 
 
 
 
 
 
1535
  // Done!
1536
  $this->note .= "<strong>".__('Done!', $this->textdomain_name)."</strong>";
1537
 
@@ -1617,6 +1690,32 @@ class HeadCleanerController extends wokController {
1617
  $out .= "</td>";
1618
  $out .= "</tr>\n";
1619
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1620
 
1621
  $out .= "<tr>";
1622
  $out .= "<td>";
@@ -1705,7 +1804,7 @@ class HeadCleanerController extends wokController {
1705
  $i = 0;
1706
  foreach ($head_filters as $priority => $filters) {
1707
  foreach ($filters as $function_name){
1708
- if ( ! preg_match('/^(HeadCleanerController::.*|noindex|lambda_[\d]+|rsd_link|wlwmanifest_link|wp_generator)$/', $function_name)) {
1709
  $out .= "<tr>";
1710
  $out .= "<th><input type=\"checkbox\" name=\"head_filters[$i]\" value=\"$function_name\"".($priority > HC_PRIORITY ? " checked=\"true\"" : "")." /></th>";
1711
  $out .= "<th><input type=\"checkbox\" name=\"head_remove[$i]\" value=\"$function_name\"".($priority <= 0 ? " checked=\"true\"" : "")." /></th>";
@@ -1742,7 +1841,7 @@ class HeadCleanerController extends wokController {
1742
  $i = 0;
1743
  foreach ($footer_filters as $priority => $filters) {
1744
  foreach ($filters as $function_name){
1745
- if ( ! preg_match('/^(HeadCleanerController|noindex|lambda_[\d]+|rsd_link|wlwmanifest_link|wp_generator)/', $function_name)) {
1746
  $out .= "<tr>";
1747
  $out .= "<th><input type=\"checkbox\" name=\"foot_filters[$i]\" value=\"$function_name\"".($priority > HC_PRIORITY ? " checked=\"true\"" : "")." /></th>";
1748
  $out .= "<th><input type=\"checkbox\" name=\"foot_remove[$i]\" value=\"$function_name\"".($priority <= 0 ? " checked=\"true\"" : "")." /></th>";
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.2.0
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
107
  //**************************************************************************************
108
  class HeadCleanerController extends wokController {
109
  public $plugin_name = 'head-cleaner';
110
+ public $plugin_ver = '1.2.0';
111
 
112
  // Deafault Options
113
  private $options_default = array(
114
+ 'foot_js' => false ,
115
+ 'dynamic' => false ,
116
+ 'js_move_foot' => false ,
117
+ 'cache_enabled' => true ,
118
+ 'combined_css' => true ,
119
+ 'combined_js' => true ,
120
+ 'js_minify' => false ,
121
+ 'css_optimise' => false ,
122
+ 'csstidy_option' => array(
123
+ 'optimise_shorthands' => 1 ,
124
+ 'compress_colors' => true ,
125
+ 'compress_font_weight' => true ,
126
+ 'remove_bslash' => true ,
127
+ 'template' => 1 ,
128
+ ) ,
129
+ 'default_media' => 'screen' ,
130
+ 'debug_mode' => false ,
131
+ 'filters' => array('wp_head' => array(), 'wp_footer' => array()) ,
132
+ 'priority' => array('wp_head' => array(), 'wp_footer' => array()) ,
133
+ 'head_js' => array() ,
134
+ 'analyze_expired'=> 0 ,
135
+ 'xml_declaration'=> false,
136
+ 'ie_conditional' => false,
137
+ 'canonical_tag' => true,
138
+ 'gzip_on' => false,
139
  );
140
  private $csstidy_template = array(
141
+ 'low_compression' ,
142
+ 'default' ,
143
+ 'high_compression' ,
144
+ 'highest_compression' ,
145
  );
146
 
147
  private $wp_url = '';
157
  private $filters;
158
  private $head_js;
159
  private $no_conflict = array(
160
+ 'comment_quicktags' , // Comment Quicktags
161
+ 'stats_footer' , // WordPress.com Stats
162
+ 'uga_wp_footer_track' , // Ultimate Google Analytics
163
+ 'tam_google_analytics::insert_tracking_code' , // TaM Google Analytics
164
+ );
165
+
166
+ private $default_head_filters = array(
167
+ 'HeadCleanerController::.*' ,
168
+ 'noindex' ,
169
+ 'lambda_[\d]+' ,
170
+ 'rsd_link' ,
171
+ 'wlwmanifest_link' ,
172
+ 'wp_generator' ,
173
  );
174
 
175
  /**********************************************************
281
  //**************************************************************************************
282
  public function activation(){
283
  $cache_dir = $this->_create_cache_dir();
284
+ if ( $cache_dir !== FALSE )
285
+ $this->_create_htaccess($cache_dir);
286
  }
287
 
288
  //**************************************************************************************
360
  $css_tag = ''; $inline_css = '';
361
  $script_tag = ''; $inline_js = '';
362
 
363
+ // for IE conditional tag
364
+ $IE_conditional_tag_pattern = '/<\!-+[ \t]*\[if[ \t]+%sIE%s[ \t]*?\][ \t]*>(.*?)<\![ \t]*\[endif\][ \t]*-+>/ism';
365
+ $IE_conditional_tags = array();
366
+ if ($this->options['ie_conditional']) {
367
+ $ua = trim(strtolower($_SERVER['HTTP_USER_AGENT']));
368
+ $ie = (strpos($ua, 'msie') !== false)
369
+ && (! preg_match('/(gecko|applewebkit|opera|sleipnir|chrome)/i', $ua));
370
+ $ie_ver = ($ie ? preg_replace('/^.*msie +([\d\.]+);.*$/i', '$1', $ua) : false);
371
+ $ie6 = ($ie ? version_compare($ie_ver, '7.0', '<') : false);
372
+ if ($ie) {
373
+ $head_txt = preg_replace(sprintf($IE_conditional_tag_pattern, '', ''), '$1', $head_txt);
374
+
375
+ $replace_patterns = array();
376
+ if (version_compare($ie_ver, '5.5', '<')) { // IE 5
377
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*|[ \t]*)', ' 5\.?0?'); // >= 5, <= 5, = 5
378
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(lte?[ \t]*)', ' 5\.5'); // < 5.5, <= 5.5
379
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(lte?[ \t]*)', ' [678]\.?0?'); // < 6 - 8, <= 6 - 8
380
+ } elseif (version_compare($ie_ver, '6.0', '<')) { // IE 5.5
381
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*|[ \t]*)', ' 5\.5'); // >= 5.5, <= 5.5, = 5.5
382
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(lte?[ \t]*)', ' [678]\.?0?'); // < 6 - 8, <= 6 - 8
383
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' 5\.?0?'); // > 5, >= 5
384
+ } elseif (version_compare($ie_ver, '7.0', '<')) { // IE 6
385
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*|[ \t]*)', ' 6\.?0?'); // >= 6, <= 6, = 6
386
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(lte?[ \t]*)', ' [78]\.?0?'); // < 7 - 8, <= 7 - 8
387
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' 5\.?0?'); // > 5, >= 5
388
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
389
+ } elseif (version_compare($ie_ver, '8.0', '<')) { // IE 7
390
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*|[ \t]*)', ' 7\.?0?'); // >= 7, <= 7, = 7
391
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(lte?[ \t]*)', ' 8\.?0?'); // < 8, <= 8
392
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' [56]\.?0?'); // > 5 - 6, >= 5 - 6
393
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
394
+ } elseif (version_compare($ie_ver, '9.0', '<')) { // IE 8
395
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*|[ \t]*)', ' 8\.?0?'); // >= 8, <= 8, = 8
396
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' [567]\.?0?'); // > 5 - 7, >= 5 - 7
397
+ $replace_patterns[] = sprintf($IE_conditional_tag_pattern, '(gte?[ \t]*)', ' 5\.5'); // > 5.5, >= 5.5
398
+ }
399
 
400
+ if (count($replace_patterns) > 0)
401
+ $head_txt = preg_replace($replace_patterns, '$2', $head_txt);
402
+ unset($replace_patterns);
403
+ }
404
+ } else {
405
+ $search_pattern = sprintf($IE_conditional_tag_pattern, '([lg]te[ \t]*)?', '([ \t]+[05678\.]*)?');
406
+ preg_match_all($search_pattern, $head_txt, $IE_conditional_tags, PREG_PATTERN_ORDER);
407
+ $head_txt = preg_replace($search_pattern, '', $head_txt);
408
  }
409
 
410
  if (preg_match('/^(.*)(<html[^>]*>[^<]*)(<head[^>]*>[^<]*)(.*)$/ism', $head_txt, $matches)) {
443
  $title_tag = $this->_dom_to_html($dom->find("title"), 1);
444
  $base_tag = $this->_dom_to_html($dom->find("base"), 1);
445
  $link_tag = $this->_dom_to_html($dom->find("link[rel!='stylesheet']"));
446
+ if (count($dom->find("link[rel='canonical']")) <= 0 && $this->options['canonical_tag'])
447
  $link_tag .= '<link rel="canonical" href="' . htmlspecialchars($url, ENT_QUOTES) . '" />'."\n";
448
 
449
  $css_tag = ''; $inner_css = ''; $css_src = array();
598
 
599
  $dom->clear(); unset($dom);
600
 
601
+ // for IE conditional tag
602
+ if (!$this->options['ie_conditional'] && count($IE_conditional_tags) > 0) {
603
+ $IE_conditional_tag_pattern = '/(<\!-+[ \t]*\[if[ \t]+.*IE.*[ \t]*?\][ \t]*>)[ \t\r\n]*(.*?)[ \t\r\n]*(<\![ \t]*\[endif\][ \t]*-+>)/ism';
604
+ foreach ((array) $IE_conditional_tags as $IE_conditional_tag) {
605
+ if (preg_match($IE_conditional_tag_pattern, $IE_conditional_tag[0])) {
606
+ $IE_tag = preg_replace($IE_conditional_tag_pattern, "$1\n$2\n$3", $IE_conditional_tag[0]);
607
+ if ( strpos(strtolower($IE_tag), '<link') !== false )
608
+ $css_tag .= $IE_tag . "\n";
609
+ elseif ( strpos(strtolower($IE_tag), '<style') !== false )
610
+ $inline_css .= $IE_tag . "\n";
611
+ elseif ( strpos(strtolower($IE_tag), '<script') !== false )
612
+ $inline_js .= $IE_tag . "\n";
613
+ else
614
+ $object_tag .= $IE_tag . "\n";
615
+ }
616
+ }
617
+ }
618
+ unset($IE_conditional_tag);
619
+
620
+
621
  $ret_val .=
622
  $html_tag
623
  . $head_tag
631
  . (!$this->options['js_move_foot'] ? $inline_js : '')
632
  . $object_tag
633
  ;
634
+ //$ret_val = str_replace('\'', '"', $ret_val);
635
+ $ret_val = preg_replace("/[\s]+([^\=]+)\='([^']*)'/i", ' $1="$2"', $ret_val);
636
 
637
  if ($this->options['js_move_foot'] || !empty($foot_js))
638
  $this->foot_js_src = trim(
645
  add_action('wp_footer', array(&$this, 'footer'), 9);
646
  }
647
 
648
+ $ret_val = ($ie6 || !$this->options['xml_declaration']
649
  ? preg_replace('/^<\?xml[^>]*>/i', '', $ret_val)
650
  : (strpos($ret_val, '<?xml') === false ? $xml_head : '') . $ret_val
651
  );
1444
  //**************************************************************************************
1445
  private function _create_htaccess($dir) {
1446
  if (!file_exists($dir))
1447
+ return FALSE;
1448
+
1449
+ $rewrite_base = trailingslashit(str_replace(ABS_PATH, '/', $dir));
1450
 
1451
  $text = '# BEGIN Head Cleaner' . "\n"
1452
  . '<IfModule mod_rewrite.c>' . "\n"
1453
  . 'RewriteEngine On' . "\n"
1454
+ . 'RewriteBase ' . $rewrite_base . "\n"
1455
  . 'RewriteCond %{HTTP:Accept-Encoding} gzip' . "\n"
1456
  . 'RewriteCond %{REQUEST_FILENAME} "\.(css|js)$"' . "\n"
1457
  . 'RewriteCond %{REQUEST_FILENAME} !"\.gz$"' . "\n"
1461
  . '# END Head Cleaner' . "\n";
1462
  $filename = trailingslashit($dir) . '.htaccess';
1463
 
1464
+ if ( $this->options['gzip_on'] ) {
1465
+ if (!file_exists($filename)) {
1466
+ return $this->_file_write($filename, $text, false);
1467
+ } else {
1468
+ $content = $this->_file_read($filename);
1469
+ if ($content !== FALSE) {
1470
+ if (strpos($content, '# BEGIN Head Cleaner') === FALSE && strpos($content, 'RewriteRule .+ %{REQUEST_URI}.gz') === FALSE) {
1471
+ $text = $content . "\n" . $text;
1472
+ return $this->_file_write($filename, $text, false);
1473
+ } else {
1474
+ return TRUE;
1475
+ }
1476
+ } else {
1477
+ return FALSE;
1478
+ }
1479
+ }
1480
  } else {
1481
+ if ( file_exists($filename) ) {
1482
+ $content = trim($this->_file_read($filename));
1483
+ if ($content !== FALSE) {
1484
+ $content = trim(preg_replace('/# BEGIN Head Cleaner.*# END Head Cleaner/ism', '', $content));
1485
+ if ( $text === $content || $content === '') {
1486
+ @unlink($filename);
1487
+ return TRUE;
1488
+ } else {
1489
+ return $this->_file_write($filename, $content . "\n", false);
1490
+ }
1491
  } else {
1492
+ return FALSE;
1493
  }
1494
  } else {
1495
+ return TRUE;
1496
  }
1497
  }
1498
  }
1539
  $_POST = $this->stripArray($_POST);
1540
 
1541
  // get options
1542
+ $this->options['xml_declaration'] = (isset($_POST['xml_declaration']) && $_POST['xml_declaration'] == 'on' ? true : false);
1543
+ $this->options['ie_conditional']= (isset($_POST['ie_conditional']) && $_POST['ie_conditional'] == 'on' ? true : false);
1544
+ $this->options['canonical_tag'] = (isset($_POST['canonical_tag']) && $_POST['canonical_tag'] == 'on' ? true : false);
1545
  $this->options['foot_js'] = (isset($_POST['foot_js']) && $_POST['foot_js'] == 'on' ? true : false);
1546
  $this->options['dynamic'] = (isset($_POST['dynamic']) && $_POST['dynamic'] == 'on' ? true : false);
1547
  $this->options['js_move_foot'] = (isset($_POST['js_move_foot']) && $_POST['js_move_foot'] == 'on' ? true : false);
1551
  $this->options['js_minify'] = (isset($_POST['js_minify']) && $_POST['js_minify'] == 'on' ? true : false);
1552
  $this->options['css_optimise'] = (isset($_POST['css_optimise']) && $_POST['css_optimise'] == 'on' ? true : false);
1553
  $this->options['default_media'] = trim($_POST['default_media']);
1554
+ $this->options['gzip_on'] = (isset($_POST['gzip_on']) && $_POST['gzip_on'] == 'on' ? true : false);
1555
  $this->options['debug_mode'] = (isset($_POST['debug_mode']) && $_POST['debug_mode'] == 'on' ? true : false);
1556
  $this->options['csstidy_option']['template'] = (int) $_POST['template'];
1557
  $this->options['csstidy_option']['optimise_shorthands'] = (int) $_POST['optimise_shorthands'];
1600
  // options update
1601
  $this->updateOptions();
1602
 
1603
+ // create .htaccess file
1604
+ $cache_dir = $this->_create_cache_dir();
1605
+ if ( $cache_dir !== FALSE )
1606
+ $this->_create_htaccess($cache_dir);
1607
+
1608
  // Done!
1609
  $this->note .= "<strong>".__('Done!', $this->textdomain_name)."</strong>";
1610
 
1690
  $out .= "</td>";
1691
  $out .= "</tr>\n";
1692
  }
1693
+ $out .= "<tr>";
1694
+ $out .= "<td>";
1695
+ $out .= "<input type=\"checkbox\" name=\"gzip_on\" id=\"gzip_on\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['gzip_on'] === true ? " checked=\"true\"" : "")." />";
1696
+ $out .= __('gzip compress to CSS and JS.', $this->textdomain_name);
1697
+ $out .= "</td>";
1698
+ $out .= "<td>";
1699
+ $out .= "</td>";
1700
+ $out .= "<td>";
1701
+ $out .= "</td>";
1702
+ $out .= "</tr>\n";
1703
+
1704
+
1705
+ $out .= "<tr>";
1706
+ $out .= "<td>";
1707
+ $out .= "<input type=\"checkbox\" name=\"xml_declaration\" id=\"xml_declaration\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['xml_declaration'] === true ? " checked=\"true\"" : "")." />";
1708
+ $out .= __('Add XML Declaration.', $this->textdomain_name);
1709
+ $out .= "</td>";
1710
+ $out .= "<td>";
1711
+ $out .= "<input type=\"checkbox\" name=\"canonical_tag\" id=\"canonical_tag\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['canonical_tag'] === true ? " checked=\"true\"" : "")." />";
1712
+ $out .= __('Add canonical tag.', $this->textdomain_name);
1713
+ $out .= "</td>";
1714
+ $out .= "<td>";
1715
+ $out .= "<input type=\"checkbox\" name=\"ie_conditional\" id=\"ie_conditional\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['ie_conditional'] === true ? " checked=\"true\"" : "")." />";
1716
+ $out .= __('Remove IE Conditional Tag.', $this->textdomain_name);
1717
+ $out .= "</td>";
1718
+ $out .= "</tr>\n";
1719
 
1720
  $out .= "<tr>";
1721
  $out .= "<td>";
1804
  $i = 0;
1805
  foreach ($head_filters as $priority => $filters) {
1806
  foreach ($filters as $function_name){
1807
+ if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
1808
  $out .= "<tr>";
1809
  $out .= "<th><input type=\"checkbox\" name=\"head_filters[$i]\" value=\"$function_name\"".($priority > HC_PRIORITY ? " checked=\"true\"" : "")." /></th>";
1810
  $out .= "<th><input type=\"checkbox\" name=\"head_remove[$i]\" value=\"$function_name\"".($priority <= 0 ? " checked=\"true\"" : "")." /></th>";
1841
  $i = 0;
1842
  foreach ($footer_filters as $priority => $filters) {
1843
  foreach ($filters as $function_name){
1844
+ if ( ! preg_match('/^(' . implode('|', $this->default_head_filters) . ')$/i', $function_name)) {
1845
  $out .= "<tr>";
1846
  $out .= "<th><input type=\"checkbox\" name=\"foot_filters[$i]\" value=\"$function_name\"".($priority > HC_PRIORITY ? " checked=\"true\"" : "")." /></th>";
1847
  $out .= "<th><input type=\"checkbox\" name=\"foot_remove[$i]\" value=\"$function_name\"".($priority <= 0 ? " checked=\"true\"" : "")." /></th>";
includes/common-controller.php CHANGED
@@ -19,7 +19,7 @@ class wokController {
19
  var $admin_option, $admin_action, $admin_hook;
20
  var $note, $error;
21
  var $charset;
22
- var $wp25, $wp26, $wp27;
23
 
24
  var $jquery_js = 'includes/js/jquery-1.2.6.min.js';
25
  var $jquery_ver = '1.2.6';
@@ -37,6 +37,7 @@ class wokController {
37
  $this->wp25 = version_compare($wp_version, "2.5", ">=");
38
  $this->wp26 = version_compare($wp_version, "2.6", ">=");
39
  $this->wp27 = version_compare($wp_version, "2.7", ">=");
 
40
 
41
  $this->setPluginDir($file);
42
  $this->loadTextdomain();
19
  var $admin_option, $admin_action, $admin_hook;
20
  var $note, $error;
21
  var $charset;
22
+ var $wp25, $wp26, $wp27, $wp28;
23
 
24
  var $jquery_js = 'includes/js/jquery-1.2.6.min.js';
25
  var $jquery_ver = '1.2.6';
37
  $this->wp25 = version_compare($wp_version, "2.5", ">=");
38
  $this->wp26 = version_compare($wp_version, "2.6", ">=");
39
  $this->wp27 = version_compare($wp_version, "2.7", ">=");
40
+ $this->wp28 = version_compare($wp_version, "2.8", ">=");
41
 
42
  $this->setPluginDir($file);
43
  $this->loadTextdomain();
languages/head-cleaner-by.mo CHANGED
Binary file
languages/head-cleaner-by.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Head Cleaner\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-03-09 17:56+0900\n"
6
- "PO-Revision-Date: 2009-04-13 09:42+0900\n"
7
  "Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
8
  "Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
9
  "MIME-Version: 1.0\n"
@@ -16,193 +16,213 @@ msgstr ""
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../head-cleaner.php:1405
20
  msgid "Head Cleaner"
21
  msgstr "Чыстка загалоўка"
22
 
23
- #: ../head-cleaner.php:1414
24
- #: ../includes/common-controller.php:166
25
  msgid "Settings"
26
  msgstr "Налады"
27
 
28
- #: ../head-cleaner.php:1501
29
- #: ../head-cleaner.php:1511
30
- #: ../head-cleaner.php:1521
31
  msgid "Done!"
32
  msgstr "Гатова!"
33
 
34
- #: ../head-cleaner.php:1533
35
  msgid "Head Cleaner Options"
36
  msgstr "Налады чысткі загалоўка"
37
 
38
- #: ../head-cleaner.php:1541
39
  msgid "CSS and JavaScript are cached on the server."
40
  msgstr "CSS і JavaScript кэшуюцца на гэтым серверы"
41
 
42
- #: ../head-cleaner.php:1545
43
  msgid "Put JavaScripts at the Bottom."
44
  msgstr "Уставіць JavaScripts у бакавічцы."
45
 
46
- #: ../head-cleaner.php:1549
47
  msgid "CSS and JS are dynamically generated."
48
  msgstr "CSS і JS дынамічна ствараюцца. "
49
 
50
- #: ../head-cleaner.php:1557
51
  msgid "Two or more CSS is combined."
52
  msgstr "Два ці больш CSS камбінуюцца"
53
 
54
- #: ../head-cleaner.php:1561
55
  msgid "CSS is optimized."
56
  msgstr "CSS аптымізаваны"
57
 
58
- #: ../head-cleaner.php:1564
59
  msgid "Default media attribute applied to CSS."
60
  msgstr "Звычайны media атрыбут прымацаваны да CSS"
61
 
62
- #: ../head-cleaner.php:1573
63
  msgid "Two or more JavaScript is combined."
64
  msgstr "Два ці больш JavaScript камбінуюцца"
65
 
66
- #: ../head-cleaner.php:1577
67
  msgid "JavaScript is minified."
68
  msgstr "JavaScript мінімізаваны. "
69
 
70
- #: ../head-cleaner.php:1581
71
  msgid "Bottom JavaScript is combined, too."
72
  msgstr "Бакавы JavaScript таксам камбінуецца."
73
 
74
- #: ../head-cleaner.php:1589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  msgid "Remove generator tag."
76
  msgstr "Выдаліць генератар тэгаў"
77
 
78
- #: ../head-cleaner.php:1593
79
  msgid "Remove RSD link tag."
80
  msgstr "Выдаліць тэг RSD лінка"
81
 
82
- #: ../head-cleaner.php:1597
83
  msgid "Remove wlwmanifest link tag."
84
  msgstr "Выдаліць тэг wlwmanifest."
85
 
86
- #: ../head-cleaner.php:1604
87
  msgid "Debug mode"
88
  msgstr "Рэжым наладкі"
89
 
90
- #: ../head-cleaner.php:1617
91
  msgid "The CSS optimization settings"
92
  msgstr "Наладкі аптымізацыі CSS"
93
 
94
- #: ../head-cleaner.php:1619
95
  msgid "Compression (code layout):"
96
  msgstr "Кампрэсія (код):"
97
 
98
- #: ../head-cleaner.php:1621
99
  msgid "Highest (no readability, smallest size)"
100
  msgstr "Вышэйшы (не чытабельна, меншыя памеры)"
101
 
102
- #: ../head-cleaner.php:1622
103
  msgid "High (moderate readability, smaller size)"
104
  msgstr "Высокі (умерана чытабельна, малыя памеры)"
105
 
106
- #: ../head-cleaner.php:1623
107
  msgid "Standard (balance between readability and size)"
108
  msgstr "Стандартны (баланс паміж чытабельнасцю і памерамі)"
109
 
110
- #: ../head-cleaner.php:1624
111
  msgid "Low (higher readability)"
112
  msgstr "Нізкая (вышэйшая чытабельнасць)"
113
 
114
- #: ../head-cleaner.php:1627
115
  msgid "Optimise shorthands"
116
  msgstr "Аптымізаваць скарочанні"
117
 
118
- #: ../head-cleaner.php:1629
119
  msgid "All optimisations"
120
  msgstr "Усе віды аптымізацыі"
121
 
122
- #: ../head-cleaner.php:1630
123
  msgid "Safe optimisations"
124
  msgstr "Беражлівая аптымізацыя"
125
 
126
- #: ../head-cleaner.php:1631
127
  msgid "Don't optimise"
128
  msgstr "Не аптымізаваць"
129
 
130
- #: ../head-cleaner.php:1636
131
  msgid "Compress colors"
132
  msgstr "Сціснуць колеры"
133
 
134
- #: ../head-cleaner.php:1639
135
  msgid "Compress font-weight"
136
  msgstr "Сціснуць жырнасць шрыфтоў"
137
 
138
- #: ../head-cleaner.php:1642
139
  msgid "Remove unnecessary backslashes"
140
  msgstr "Выдаліць неіснуючыя дужкі"
141
 
142
- #: ../head-cleaner.php:1650
143
- msgid "Active JavaScripts"
144
- msgstr "Актываваць avaScripts"
145
-
146
- #: ../head-cleaner.php:1653
147
- msgid "Move to footer"
148
- msgstr "Перамясціць у падвал"
149
-
150
- #: ../head-cleaner.php:1654
151
- msgid "JavaScripts"
152
- msgstr "JavaScript"
153
-
154
- #: ../head-cleaner.php:1666
155
  msgid "Active Filters"
156
  msgstr "Актыўныя фільтры"
157
 
158
- #: ../head-cleaner.php:1669
159
- #: ../head-cleaner.php:1706
160
  msgid "Off the subject"
161
  msgstr "Выключыць тэму"
162
 
163
- #: ../head-cleaner.php:1670
164
- #: ../head-cleaner.php:1707
165
  msgid "Remove"
166
  msgstr "Выдаліць"
167
 
168
- #: ../head-cleaner.php:1671
169
  msgid "Head filters"
170
  msgstr "Галоўныя фільтры"
171
 
172
- #: ../head-cleaner.php:1673
173
- #: ../head-cleaner.php:1710
174
  msgid "Priority"
175
  msgstr "Прыярытэт"
176
 
177
- #: ../head-cleaner.php:1708
178
  msgid "Bottom filters"
179
  msgstr "Бакавыя фільтры"
180
 
181
- #: ../head-cleaner.php:1744
 
 
 
 
 
 
 
 
 
 
 
 
182
  msgid "Update Options"
183
  msgstr "Абнавіць налады"
184
 
185
- #: ../head-cleaner.php:1749
186
  msgid "Remove all cache files"
187
  msgstr "Выдаліць усе кэшаваныя файлы"
188
 
189
- #: ../head-cleaner.php:1752
190
  msgid "All cache files are removed."
191
  msgstr "Усе кэшаваныя файлы выдалены"
192
 
193
- #: ../head-cleaner.php:1753
194
  msgid "Remove All Cache Files"
195
  msgstr "Выдаліць усе кэшаваныя файлы"
196
 
197
- #: ../head-cleaner.php:1758
198
  msgid "Uninstall"
199
  msgstr "Дэінстэляваць"
200
 
201
- #: ../head-cleaner.php:1761
202
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
203
  msgstr "Усе налады &quot;Head Cleaner&quot; выдалены"
204
 
205
- #: ../head-cleaner.php:1762
206
  msgid "Delete Options"
207
  msgstr "Выдаліць налады"
208
 
2
  msgstr ""
3
  "Project-Id-Version: Head Cleaner\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-07-14 14:48+0900\n"
6
+ "PO-Revision-Date: 2009-07-14 14:48+0900\n"
7
  "Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
8
  "Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../head-cleaner.php:1504
20
  msgid "Head Cleaner"
21
  msgstr "Чыстка загалоўка"
22
 
23
+ #: ../head-cleaner.php:1513
24
+ #: ../includes/common-controller.php:175
25
  msgid "Settings"
26
  msgstr "Налады"
27
 
28
+ #: ../head-cleaner.php:1609
29
+ #: ../head-cleaner.php:1619
30
+ #: ../head-cleaner.php:1629
31
  msgid "Done!"
32
  msgstr "Гатова!"
33
 
34
+ #: ../head-cleaner.php:1641
35
  msgid "Head Cleaner Options"
36
  msgstr "Налады чысткі загалоўка"
37
 
38
+ #: ../head-cleaner.php:1649
39
  msgid "CSS and JavaScript are cached on the server."
40
  msgstr "CSS і JavaScript кэшуюцца на гэтым серверы"
41
 
42
+ #: ../head-cleaner.php:1653
43
  msgid "Put JavaScripts at the Bottom."
44
  msgstr "Уставіць JavaScripts у бакавічцы."
45
 
46
+ #: ../head-cleaner.php:1657
47
  msgid "CSS and JS are dynamically generated."
48
  msgstr "CSS і JS дынамічна ствараюцца. "
49
 
50
+ #: ../head-cleaner.php:1665
51
  msgid "Two or more CSS is combined."
52
  msgstr "Два ці больш CSS камбінуюцца"
53
 
54
+ #: ../head-cleaner.php:1669
55
  msgid "CSS is optimized."
56
  msgstr "CSS аптымізаваны"
57
 
58
+ #: ../head-cleaner.php:1672
59
  msgid "Default media attribute applied to CSS."
60
  msgstr "Звычайны media атрыбут прымацаваны да CSS"
61
 
62
+ #: ../head-cleaner.php:1681
63
  msgid "Two or more JavaScript is combined."
64
  msgstr "Два ці больш JavaScript камбінуюцца"
65
 
66
+ #: ../head-cleaner.php:1685
67
  msgid "JavaScript is minified."
68
  msgstr "JavaScript мінімізаваны. "
69
 
70
+ #: ../head-cleaner.php:1689
71
  msgid "Bottom JavaScript is combined, too."
72
  msgstr "Бакавы JavaScript таксам камбінуецца."
73
 
74
+ #: ../head-cleaner.php:1696
75
+ #, fuzzy
76
+ msgid "gzip compress to CSS and JS."
77
+ msgstr ""
78
+
79
+ #: ../head-cleaner.php:1708
80
+ #, fuzzy
81
+ msgid "Add XML Declaration."
82
+ msgstr ""
83
+
84
+ #: ../head-cleaner.php:1712
85
+ #, fuzzy
86
+ msgid "Add canonical tag."
87
+ msgstr ""
88
+
89
+ #: ../head-cleaner.php:1716
90
+ #, fuzzy
91
+ msgid "Remove IE Conditional Tag."
92
+ msgstr ""
93
+
94
+ #: ../head-cleaner.php:1723
95
  msgid "Remove generator tag."
96
  msgstr "Выдаліць генератар тэгаў"
97
 
98
+ #: ../head-cleaner.php:1727
99
  msgid "Remove RSD link tag."
100
  msgstr "Выдаліць тэг RSD лінка"
101
 
102
+ #: ../head-cleaner.php:1731
103
  msgid "Remove wlwmanifest link tag."
104
  msgstr "Выдаліць тэг wlwmanifest."
105
 
106
+ #: ../head-cleaner.php:1738
107
  msgid "Debug mode"
108
  msgstr "Рэжым наладкі"
109
 
110
+ #: ../head-cleaner.php:1751
111
  msgid "The CSS optimization settings"
112
  msgstr "Наладкі аптымізацыі CSS"
113
 
114
+ #: ../head-cleaner.php:1753
115
  msgid "Compression (code layout):"
116
  msgstr "Кампрэсія (код):"
117
 
118
+ #: ../head-cleaner.php:1755
119
  msgid "Highest (no readability, smallest size)"
120
  msgstr "Вышэйшы (не чытабельна, меншыя памеры)"
121
 
122
+ #: ../head-cleaner.php:1756
123
  msgid "High (moderate readability, smaller size)"
124
  msgstr "Высокі (умерана чытабельна, малыя памеры)"
125
 
126
+ #: ../head-cleaner.php:1757
127
  msgid "Standard (balance between readability and size)"
128
  msgstr "Стандартны (баланс паміж чытабельнасцю і памерамі)"
129
 
130
+ #: ../head-cleaner.php:1758
131
  msgid "Low (higher readability)"
132
  msgstr "Нізкая (вышэйшая чытабельнасць)"
133
 
134
+ #: ../head-cleaner.php:1761
135
  msgid "Optimise shorthands"
136
  msgstr "Аптымізаваць скарочанні"
137
 
138
+ #: ../head-cleaner.php:1763
139
  msgid "All optimisations"
140
  msgstr "Усе віды аптымізацыі"
141
 
142
+ #: ../head-cleaner.php:1764
143
  msgid "Safe optimisations"
144
  msgstr "Беражлівая аптымізацыя"
145
 
146
+ #: ../head-cleaner.php:1765
147
  msgid "Don't optimise"
148
  msgstr "Не аптымізаваць"
149
 
150
+ #: ../head-cleaner.php:1770
151
  msgid "Compress colors"
152
  msgstr "Сціснуць колеры"
153
 
154
+ #: ../head-cleaner.php:1773
155
  msgid "Compress font-weight"
156
  msgstr "Сціснуць жырнасць шрыфтоў"
157
 
158
+ #: ../head-cleaner.php:1776
159
  msgid "Remove unnecessary backslashes"
160
  msgstr "Выдаліць неіснуючыя дужкі"
161
 
162
+ #: ../head-cleaner.php:1784
 
 
 
 
 
 
 
 
 
 
 
 
163
  msgid "Active Filters"
164
  msgstr "Актыўныя фільтры"
165
 
166
+ #: ../head-cleaner.php:1787
167
+ #: ../head-cleaner.php:1824
168
  msgid "Off the subject"
169
  msgstr "Выключыць тэму"
170
 
171
+ #: ../head-cleaner.php:1788
172
+ #: ../head-cleaner.php:1825
173
  msgid "Remove"
174
  msgstr "Выдаліць"
175
 
176
+ #: ../head-cleaner.php:1789
177
  msgid "Head filters"
178
  msgstr "Галоўныя фільтры"
179
 
180
+ #: ../head-cleaner.php:1791
181
+ #: ../head-cleaner.php:1828
182
  msgid "Priority"
183
  msgstr "Прыярытэт"
184
 
185
+ #: ../head-cleaner.php:1826
186
  msgid "Bottom filters"
187
  msgstr "Бакавыя фільтры"
188
 
189
+ #: ../head-cleaner.php:1863
190
+ msgid "Active JavaScripts"
191
+ msgstr "Актываваць avaScripts"
192
+
193
+ #: ../head-cleaner.php:1866
194
+ msgid "Move to footer"
195
+ msgstr "Перамясціць у падвал"
196
+
197
+ #: ../head-cleaner.php:1867
198
+ msgid "JavaScripts"
199
+ msgstr "JavaScript"
200
+
201
+ #: ../head-cleaner.php:1878
202
  msgid "Update Options"
203
  msgstr "Абнавіць налады"
204
 
205
+ #: ../head-cleaner.php:1883
206
  msgid "Remove all cache files"
207
  msgstr "Выдаліць усе кэшаваныя файлы"
208
 
209
+ #: ../head-cleaner.php:1886
210
  msgid "All cache files are removed."
211
  msgstr "Усе кэшаваныя файлы выдалены"
212
 
213
+ #: ../head-cleaner.php:1887
214
  msgid "Remove All Cache Files"
215
  msgstr "Выдаліць усе кэшаваныя файлы"
216
 
217
+ #: ../head-cleaner.php:1892
218
  msgid "Uninstall"
219
  msgstr "Дэінстэляваць"
220
 
221
+ #: ../head-cleaner.php:1895
222
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
223
  msgstr "Усе налады &quot;Head Cleaner&quot; выдалены"
224
 
225
+ #: ../head-cleaner.php:1896
226
  msgid "Delete Options"
227
  msgstr "Выдаліць налады"
228
 
languages/head-cleaner-es.mo ADDED
Binary file
languages/head-cleaner-es.po ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Head Cleaner\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-03-09 17:56+0900\n"
6
+ "PO-Revision-Date: 2009-07-27 11:18+0100\n"
7
+ "Last-Translator: tolingo <franz.hartmann@tolingo.com>\n"
8
+ "Language-Team: tolingo <support@tolingo.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: Spanish\n"
13
+ "X-Poedit-Country: JAPAN\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ #: ../head-cleaner.php:1405
20
+ msgid "Head Cleaner"
21
+ msgstr "Head Cleaner"
22
+
23
+ #: ../head-cleaner.php:1414
24
+ #: ../includes/common-controller.php:166
25
+ msgid "Settings"
26
+ msgstr "Ajustes"
27
+
28
+ #: ../head-cleaner.php:1501
29
+ #: ../head-cleaner.php:1511
30
+ #: ../head-cleaner.php:1521
31
+ msgid "Done!"
32
+ msgstr "¡Listo!"
33
+
34
+ #: ../head-cleaner.php:1533
35
+ msgid "Head Cleaner Options"
36
+ msgstr "Opciones de Head Cleaner"
37
+
38
+ #: ../head-cleaner.php:1541
39
+ msgid "CSS and JavaScript are cached on the server."
40
+ msgstr "CSS y Javascript están almacenados en la memoria caché del servidor."
41
+
42
+ #: ../head-cleaner.php:1545
43
+ msgid "Put JavaScripts at the Bottom."
44
+ msgstr "Coloque los JavaScripts al final."
45
+
46
+ #: ../head-cleaner.php:1549
47
+ msgid "CSS and JS are dynamically generated."
48
+ msgstr "CSS y JS se generan dinámicamente."
49
+
50
+ #: ../head-cleaner.php:1557
51
+ msgid "Two or more CSS is combined."
52
+ msgstr "Se combinan dos o más CSS."
53
+
54
+ #: ../head-cleaner.php:1561
55
+ msgid "CSS is optimized."
56
+ msgstr "El CSS está optimizado."
57
+
58
+ #: ../head-cleaner.php:1564
59
+ msgid "Default media attribute applied to CSS."
60
+ msgstr "Atributos de medios por defecto aplicados al CSS."
61
+
62
+ #: ../head-cleaner.php:1573
63
+ msgid "Two or more JavaScript is combined."
64
+ msgstr "Se combinan dos o más JavaScripts."
65
+
66
+ #: ../head-cleaner.php:1577
67
+ msgid "JavaScript is minified."
68
+ msgstr "JavaScript está minimizado."
69
+
70
+ #: ../head-cleaner.php:1581
71
+ msgid "Bottom JavaScript is combined, too."
72
+ msgstr "El final de JavaScript también está combinado."
73
+
74
+ #: ../head-cleaner.php:1589
75
+ msgid "Remove generator tag."
76
+ msgstr "Eliminar el generador de etiquetas."
77
+
78
+ #: ../head-cleaner.php:1593
79
+ msgid "Remove RSD link tag."
80
+ msgstr "Eliminar la etiqueta del vínculo RSD."
81
+
82
+ #: ../head-cleaner.php:1597
83
+ msgid "Remove wlwmanifest link tag."
84
+ msgstr "Eliminar la etiqueta del vínculo wlwmanifest."
85
+
86
+ #: ../head-cleaner.php:1604
87
+ msgid "Debug mode"
88
+ msgstr "Modo de depuración"
89
+
90
+ #: ../head-cleaner.php:1617
91
+ msgid "The CSS optimization settings"
92
+ msgstr "Ajustes de optimización del CSS"
93
+
94
+ #: ../head-cleaner.php:1619
95
+ msgid "Compression (code layout):"
96
+ msgstr "Compresión (configuración del código):"
97
+
98
+ #: ../head-cleaner.php:1621
99
+ msgid "Highest (no readability, smallest size)"
100
+ msgstr "Máximo (ilegible, tamaño más pequeño)"
101
+
102
+ #: ../head-cleaner.php:1622
103
+ msgid "High (moderate readability, smaller size)"
104
+ msgstr "Elevado (legibilidad moderada, tamaño menor)"
105
+
106
+ #: ../head-cleaner.php:1623
107
+ msgid "Standard (balance between readability and size)"
108
+ msgstr "Estándar (balance entre legibilidad y tamaño)"
109
+
110
+ #: ../head-cleaner.php:1624
111
+ msgid "Low (higher readability)"
112
+ msgstr "Bajo (legibilidad más alta)"
113
+
114
+ #: ../head-cleaner.php:1627
115
+ msgid "Optimise shorthands"
116
+ msgstr "Optimizar abreviaturas"
117
+
118
+ #: ../head-cleaner.php:1629
119
+ msgid "All optimisations"
120
+ msgstr "Todas las optimizaciones"
121
+
122
+ #: ../head-cleaner.php:1630
123
+ msgid "Safe optimisations"
124
+ msgstr "Guardar optimizaciones"
125
+
126
+ #: ../head-cleaner.php:1631
127
+ msgid "Don't optimise"
128
+ msgstr "No optimizar"
129
+
130
+ #: ../head-cleaner.php:1636
131
+ msgid "Compress colors"
132
+ msgstr "Comprimir colores"
133
+
134
+ #: ../head-cleaner.php:1639
135
+ msgid "Compress font-weight"
136
+ msgstr "Comprimir el peso de la fuente"
137
+
138
+ #: ../head-cleaner.php:1642
139
+ msgid "Remove unnecessary backslashes"
140
+ msgstr "Eliminar barras invertidas innecesarias"
141
+
142
+ #: ../head-cleaner.php:1650
143
+ msgid "Active JavaScripts"
144
+ msgstr "Activar Java Scripts"
145
+
146
+ #: ../head-cleaner.php:1653
147
+ msgid "Move to footer"
148
+ msgstr "Mover hacia el pie de página"
149
+
150
+ #: ../head-cleaner.php:1654
151
+ msgid "JavaScripts"
152
+ msgstr "JavaScripts"
153
+
154
+ #: ../head-cleaner.php:1666
155
+ msgid "Active Filters"
156
+ msgstr "Activar filtros"
157
+
158
+ #: ../head-cleaner.php:1669
159
+ #: ../head-cleaner.php:1706
160
+ msgid "Off the subject"
161
+ msgstr "Abandonar al sujeto"
162
+
163
+ #: ../head-cleaner.php:1670
164
+ #: ../head-cleaner.php:1707
165
+ msgid "Remove"
166
+ msgstr "Eliminar"
167
+
168
+ #: ../head-cleaner.php:1671
169
+ msgid "Head filters"
170
+ msgstr "Filtros de encabezado"
171
+
172
+ #: ../head-cleaner.php:1673
173
+ #: ../head-cleaner.php:1710
174
+ msgid "Priority"
175
+ msgstr "Prioridad"
176
+
177
+ #: ../head-cleaner.php:1708
178
+ msgid "Bottom filters"
179
+ msgstr "Filtros al final"
180
+
181
+ #: ../head-cleaner.php:1744
182
+ msgid "Update Options"
183
+ msgstr "Actualizar opciones"
184
+
185
+ #: ../head-cleaner.php:1749
186
+ msgid "Remove all cache files"
187
+ msgstr "Eliminar todos los ficheros de la memoria caché"
188
+
189
+ #: ../head-cleaner.php:1752
190
+ msgid "All cache files are removed."
191
+ msgstr "Todos los ficheros se han eliminado."
192
+
193
+ #: ../head-cleaner.php:1753
194
+ msgid "Remove All Cache Files"
195
+ msgstr "Eliminar todos los ficheros de la memoria caché"
196
+
197
+ #: ../head-cleaner.php:1758
198
+ msgid "Uninstall"
199
+ msgstr "Desinstalar"
200
+
201
+ #: ../head-cleaner.php:1761
202
+ msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
203
+ msgstr "Todos los ajustes de \"Head cleaner\" han sido borrados."
204
+
205
+ #: ../head-cleaner.php:1762
206
+ msgid "Delete Options"
207
+ msgstr "Borrar opciones"
208
+
languages/head-cleaner-ja.mo CHANGED
Binary file
languages/head-cleaner-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Head Cleaner\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-03-09 17:56+0900\n"
6
- "PO-Revision-Date: 2009-03-09 17:58+0900\n"
7
  "Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
8
  "Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
9
  "MIME-Version: 1.0\n"
@@ -16,193 +16,209 @@ msgstr ""
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../head-cleaner.php:1405
20
  msgid "Head Cleaner"
21
  msgstr "Head Cleaner"
22
 
23
- #: ../head-cleaner.php:1414
24
- #: ../includes/common-controller.php:166
25
  msgid "Settings"
26
  msgstr "設定"
27
 
28
- #: ../head-cleaner.php:1501
29
- #: ../head-cleaner.php:1511
30
- #: ../head-cleaner.php:1521
31
  msgid "Done!"
32
  msgstr "完了!"
33
 
34
- #: ../head-cleaner.php:1533
35
  msgid "Head Cleaner Options"
36
  msgstr "Head Cleaner 設定"
37
 
38
- #: ../head-cleaner.php:1541
39
  msgid "CSS and JavaScript are cached on the server."
40
  msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
41
 
42
- #: ../head-cleaner.php:1545
43
  msgid "Put JavaScripts at the Bottom."
44
  msgstr "&lt;head&gt; 内の JavaScript を、フッタ領域に移動"
45
 
46
- #: ../head-cleaner.php:1549
47
  msgid "CSS and JS are dynamically generated."
48
  msgstr "CSS, JS を動的生成する。"
49
 
50
- #: ../head-cleaner.php:1557
51
  msgid "Two or more CSS is combined."
52
  msgstr "複数の CSS を結合する"
53
 
54
- #: ../head-cleaner.php:1561
55
  msgid "CSS is optimized."
56
  msgstr "CSS を最適化する"
57
 
58
- #: ../head-cleaner.php:1564
59
  msgid "Default media attribute applied to CSS."
60
  msgstr "CSS に適用するデフォルト media 属性"
61
 
62
- #: ../head-cleaner.php:1573
63
  msgid "Two or more JavaScript is combined."
64
  msgstr "複数の JavaScript を結合する"
65
 
66
- #: ../head-cleaner.php:1577
67
  msgid "JavaScript is minified."
68
  msgstr "JavaScript を小さくする"
69
 
70
- #: ../head-cleaner.php:1581
71
  msgid "Bottom JavaScript is combined, too."
72
  msgstr "フッタ領域の JavaScript も対象にする"
73
 
74
- #: ../head-cleaner.php:1589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  msgid "Remove generator tag."
76
  msgstr "メタタグ &quot;generator&quot; を削除"
77
 
78
- #: ../head-cleaner.php:1593
79
  msgid "Remove RSD link tag."
80
  msgstr "リンクタグ &quot;RSD&quot; を削除"
81
 
82
- #: ../head-cleaner.php:1597
83
  msgid "Remove wlwmanifest link tag."
84
  msgstr "リンクタグ &quot;wlwmanifest&quot; を削除."
85
 
86
- #: ../head-cleaner.php:1604
87
  msgid "Debug mode"
88
  msgstr "デバッグモード"
89
 
90
- #: ../head-cleaner.php:1617
91
  msgid "The CSS optimization settings"
92
  msgstr "CSS最適化 オプション"
93
 
94
- #: ../head-cleaner.php:1619
95
  msgid "Compression (code layout):"
96
  msgstr "圧縮率(コードレイアウト):"
97
 
98
- #: ../head-cleaner.php:1621
99
  msgid "Highest (no readability, smallest size)"
100
  msgstr "最高 (改行なし)"
101
 
102
- #: ../head-cleaner.php:1622
103
  msgid "High (moderate readability, smaller size)"
104
  msgstr "高 (セレクタ1行表記)"
105
 
106
- #: ../head-cleaner.php:1623
107
  msgid "Standard (balance between readability and size)"
108
  msgstr "標準 (プロパティごと改行)"
109
 
110
- #: ../head-cleaner.php:1624
111
  msgid "Low (higher readability)"
112
  msgstr "低 (プロパティをインデント)"
113
 
114
- #: ../head-cleaner.php:1627
115
  msgid "Optimise shorthands"
116
  msgstr "ショートハンドCSSの最適化"
117
 
118
- #: ../head-cleaner.php:1629
119
  msgid "All optimisations"
120
  msgstr "margin,padding,border,backgroundを最適化"
121
 
122
- #: ../head-cleaner.php:1630
123
  msgid "Safe optimisations"
124
  msgstr "margin,padding,borderのみ"
125
 
126
- #: ../head-cleaner.php:1631
127
  msgid "Don't optimise"
128
  msgstr "最適化しない"
129
 
130
- #: ../head-cleaner.php:1636
131
  msgid "Compress colors"
132
  msgstr "colorの値を簡略化する"
133
 
134
- #: ../head-cleaner.php:1639
135
  msgid "Compress font-weight"
136
  msgstr "font-weightを数値にする"
137
 
138
- #: ../head-cleaner.php:1642
139
  msgid "Remove unnecessary backslashes"
140
  msgstr "不要なバックスラッシュを削除"
141
 
142
- #: ../head-cleaner.php:1650
143
- msgid "Active JavaScripts"
144
- msgstr "&lt;head&gt; 部で有効な JavaScript"
145
-
146
- #: ../head-cleaner.php:1653
147
- msgid "Move to footer"
148
- msgstr "フッタに移動"
149
-
150
- #: ../head-cleaner.php:1654
151
- msgid "JavaScripts"
152
- msgstr "JavaScript"
153
-
154
- #: ../head-cleaner.php:1666
155
  msgid "Active Filters"
156
  msgstr "有効なフィルタ"
157
 
158
- #: ../head-cleaner.php:1669
159
- #: ../head-cleaner.php:1706
160
  msgid "Off the subject"
161
  msgstr "対象外"
162
 
163
- #: ../head-cleaner.php:1670
164
- #: ../head-cleaner.php:1707
165
  msgid "Remove"
166
  msgstr "削除"
167
 
168
- #: ../head-cleaner.php:1671
169
  msgid "Head filters"
170
  msgstr "&lt;head&gt; 内の有効なフィルタ"
171
 
172
- #: ../head-cleaner.php:1673
173
- #: ../head-cleaner.php:1710
174
  msgid "Priority"
175
  msgstr "フィルタの優先順位"
176
 
177
- #: ../head-cleaner.php:1708
178
  msgid "Bottom filters"
179
  msgstr "フッタ領域の有効なフィルタ"
180
 
181
- #: ../head-cleaner.php:1744
 
 
 
 
 
 
 
 
 
 
 
 
182
  msgid "Update Options"
183
  msgstr "更新"
184
 
185
- #: ../head-cleaner.php:1749
186
  msgid "Remove all cache files"
187
  msgstr "キャッシュファイル削除"
188
 
189
- #: ../head-cleaner.php:1752
190
  msgid "All cache files are removed."
191
  msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
192
 
193
- #: ../head-cleaner.php:1753
194
  msgid "Remove All Cache Files"
195
  msgstr "削除"
196
 
197
- #: ../head-cleaner.php:1758
198
  msgid "Uninstall"
199
  msgstr "アンインストール"
200
 
201
- #: ../head-cleaner.php:1761
202
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
203
  msgstr "&quot;Head Cleaner&quot; の設定をすべて消去する。"
204
 
205
- #: ../head-cleaner.php:1762
206
  msgid "Delete Options"
207
  msgstr "削除"
208
 
2
  msgstr ""
3
  "Project-Id-Version: Head Cleaner\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-07-14 14:45+0900\n"
6
+ "PO-Revision-Date: 2009-07-14 14:46+0900\n"
7
  "Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
8
  "Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../head-cleaner.php:1504
20
  msgid "Head Cleaner"
21
  msgstr "Head Cleaner"
22
 
23
+ #: ../head-cleaner.php:1513
24
+ #: ../includes/common-controller.php:175
25
  msgid "Settings"
26
  msgstr "設定"
27
 
28
+ #: ../head-cleaner.php:1609
29
+ #: ../head-cleaner.php:1619
30
+ #: ../head-cleaner.php:1629
31
  msgid "Done!"
32
  msgstr "完了!"
33
 
34
+ #: ../head-cleaner.php:1641
35
  msgid "Head Cleaner Options"
36
  msgstr "Head Cleaner 設定"
37
 
38
+ #: ../head-cleaner.php:1649
39
  msgid "CSS and JavaScript are cached on the server."
40
  msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
41
 
42
+ #: ../head-cleaner.php:1653
43
  msgid "Put JavaScripts at the Bottom."
44
  msgstr "&lt;head&gt; 内の JavaScript を、フッタ領域に移動"
45
 
46
+ #: ../head-cleaner.php:1657
47
  msgid "CSS and JS are dynamically generated."
48
  msgstr "CSS, JS を動的生成する。"
49
 
50
+ #: ../head-cleaner.php:1665
51
  msgid "Two or more CSS is combined."
52
  msgstr "複数の CSS を結合する"
53
 
54
+ #: ../head-cleaner.php:1669
55
  msgid "CSS is optimized."
56
  msgstr "CSS を最適化する"
57
 
58
+ #: ../head-cleaner.php:1672
59
  msgid "Default media attribute applied to CSS."
60
  msgstr "CSS に適用するデフォルト media 属性"
61
 
62
+ #: ../head-cleaner.php:1681
63
  msgid "Two or more JavaScript is combined."
64
  msgstr "複数の JavaScript を結合する"
65
 
66
+ #: ../head-cleaner.php:1685
67
  msgid "JavaScript is minified."
68
  msgstr "JavaScript を小さくする"
69
 
70
+ #: ../head-cleaner.php:1689
71
  msgid "Bottom JavaScript is combined, too."
72
  msgstr "フッタ領域の JavaScript も対象にする"
73
 
74
+ #: ../head-cleaner.php:1696
75
+ msgid "gzip compress to CSS and JS."
76
+ msgstr "CSS と JS を gzip 圧縮転送"
77
+
78
+ #: ../head-cleaner.php:1708
79
+ msgid "Add XML Declaration."
80
+ msgstr "XML宣言を付与"
81
+
82
+ #: ../head-cleaner.php:1712
83
+ msgid "Add canonical tag."
84
+ msgstr "メタタグ &quot;canonical&quot; を追加"
85
+
86
+ #: ../head-cleaner.php:1716
87
+ msgid "Remove IE Conditional Tag."
88
+ msgstr "IEコンディショナルタグを削除"
89
+
90
+ #: ../head-cleaner.php:1723
91
  msgid "Remove generator tag."
92
  msgstr "メタタグ &quot;generator&quot; を削除"
93
 
94
+ #: ../head-cleaner.php:1727
95
  msgid "Remove RSD link tag."
96
  msgstr "リンクタグ &quot;RSD&quot; を削除"
97
 
98
+ #: ../head-cleaner.php:1731
99
  msgid "Remove wlwmanifest link tag."
100
  msgstr "リンクタグ &quot;wlwmanifest&quot; を削除."
101
 
102
+ #: ../head-cleaner.php:1738
103
  msgid "Debug mode"
104
  msgstr "デバッグモード"
105
 
106
+ #: ../head-cleaner.php:1751
107
  msgid "The CSS optimization settings"
108
  msgstr "CSS最適化 オプション"
109
 
110
+ #: ../head-cleaner.php:1753
111
  msgid "Compression (code layout):"
112
  msgstr "圧縮率(コードレイアウト):"
113
 
114
+ #: ../head-cleaner.php:1755
115
  msgid "Highest (no readability, smallest size)"
116
  msgstr "最高 (改行なし)"
117
 
118
+ #: ../head-cleaner.php:1756
119
  msgid "High (moderate readability, smaller size)"
120
  msgstr "高 (セレクタ1行表記)"
121
 
122
+ #: ../head-cleaner.php:1757
123
  msgid "Standard (balance between readability and size)"
124
  msgstr "標準 (プロパティごと改行)"
125
 
126
+ #: ../head-cleaner.php:1758
127
  msgid "Low (higher readability)"
128
  msgstr "低 (プロパティをインデント)"
129
 
130
+ #: ../head-cleaner.php:1761
131
  msgid "Optimise shorthands"
132
  msgstr "ショートハンドCSSの最適化"
133
 
134
+ #: ../head-cleaner.php:1763
135
  msgid "All optimisations"
136
  msgstr "margin,padding,border,backgroundを最適化"
137
 
138
+ #: ../head-cleaner.php:1764
139
  msgid "Safe optimisations"
140
  msgstr "margin,padding,borderのみ"
141
 
142
+ #: ../head-cleaner.php:1765
143
  msgid "Don't optimise"
144
  msgstr "最適化しない"
145
 
146
+ #: ../head-cleaner.php:1770
147
  msgid "Compress colors"
148
  msgstr "colorの値を簡略化する"
149
 
150
+ #: ../head-cleaner.php:1773
151
  msgid "Compress font-weight"
152
  msgstr "font-weightを数値にする"
153
 
154
+ #: ../head-cleaner.php:1776
155
  msgid "Remove unnecessary backslashes"
156
  msgstr "不要なバックスラッシュを削除"
157
 
158
+ #: ../head-cleaner.php:1784
 
 
 
 
 
 
 
 
 
 
 
 
159
  msgid "Active Filters"
160
  msgstr "有効なフィルタ"
161
 
162
+ #: ../head-cleaner.php:1787
163
+ #: ../head-cleaner.php:1824
164
  msgid "Off the subject"
165
  msgstr "対象外"
166
 
167
+ #: ../head-cleaner.php:1788
168
+ #: ../head-cleaner.php:1825
169
  msgid "Remove"
170
  msgstr "削除"
171
 
172
+ #: ../head-cleaner.php:1789
173
  msgid "Head filters"
174
  msgstr "&lt;head&gt; 内の有効なフィルタ"
175
 
176
+ #: ../head-cleaner.php:1791
177
+ #: ../head-cleaner.php:1828
178
  msgid "Priority"
179
  msgstr "フィルタの優先順位"
180
 
181
+ #: ../head-cleaner.php:1826
182
  msgid "Bottom filters"
183
  msgstr "フッタ領域の有効なフィルタ"
184
 
185
+ #: ../head-cleaner.php:1863
186
+ msgid "Active JavaScripts"
187
+ msgstr "&lt;head&gt; 部で有効な JavaScript"
188
+
189
+ #: ../head-cleaner.php:1866
190
+ msgid "Move to footer"
191
+ msgstr "フッタに移動"
192
+
193
+ #: ../head-cleaner.php:1867
194
+ msgid "JavaScripts"
195
+ msgstr "JavaScript"
196
+
197
+ #: ../head-cleaner.php:1878
198
  msgid "Update Options"
199
  msgstr "更新"
200
 
201
+ #: ../head-cleaner.php:1883
202
  msgid "Remove all cache files"
203
  msgstr "キャッシュファイル削除"
204
 
205
+ #: ../head-cleaner.php:1886
206
  msgid "All cache files are removed."
207
  msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
208
 
209
+ #: ../head-cleaner.php:1887
210
  msgid "Remove All Cache Files"
211
  msgstr "削除"
212
 
213
+ #: ../head-cleaner.php:1892
214
  msgid "Uninstall"
215
  msgstr "アンインストール"
216
 
217
+ #: ../head-cleaner.php:1895
218
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
219
  msgstr "&quot;Head Cleaner&quot; の設定をすべて消去する。"
220
 
221
+ #: ../head-cleaner.php:1896
222
  msgid "Delete Options"
223
  msgstr "削除"
224
 
languages/head-cleaner.pot CHANGED
@@ -10,193 +10,209 @@ msgstr ""
10
  "Content-Type: text/plain; charset=iso-8859-1\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
 
13
- #: ../head-cleaner.php:1405
14
  msgid "Head Cleaner"
15
  msgstr ""
16
 
17
- #: ../head-cleaner.php:1414
18
- #: ../includes/common-controller.php:166
19
  msgid "Settings"
20
  msgstr ""
21
 
22
- #: ../head-cleaner.php:1501
23
- #: ../head-cleaner.php:1511
24
- #: ../head-cleaner.php:1521
25
  msgid "Done!"
26
  msgstr ""
27
 
28
- #: ../head-cleaner.php:1533
29
  msgid "Head Cleaner Options"
30
  msgstr ""
31
 
32
- #: ../head-cleaner.php:1541
33
  msgid "CSS and JavaScript are cached on the server."
34
  msgstr ""
35
 
36
- #: ../head-cleaner.php:1545
37
  msgid "Put JavaScripts at the Bottom."
38
  msgstr ""
39
 
40
- #: ../head-cleaner.php:1549
41
  msgid "CSS and JS are dynamically generated."
42
  msgstr ""
43
 
44
- #: ../head-cleaner.php:1557
45
  msgid "Two or more CSS is combined."
46
  msgstr ""
47
 
48
- #: ../head-cleaner.php:1561
49
  msgid "CSS is optimized."
50
  msgstr ""
51
 
52
- #: ../head-cleaner.php:1564
53
  msgid "Default media attribute applied to CSS."
54
  msgstr ""
55
 
56
- #: ../head-cleaner.php:1573
57
  msgid "Two or more JavaScript is combined."
58
  msgstr ""
59
 
60
- #: ../head-cleaner.php:1577
61
  msgid "JavaScript is minified."
62
  msgstr ""
63
 
64
- #: ../head-cleaner.php:1581
65
  msgid "Bottom JavaScript is combined, too."
66
  msgstr ""
67
 
68
- #: ../head-cleaner.php:1589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  msgid "Remove generator tag."
70
  msgstr ""
71
 
72
- #: ../head-cleaner.php:1593
73
  msgid "Remove RSD link tag."
74
  msgstr ""
75
 
76
- #: ../head-cleaner.php:1597
77
  msgid "Remove wlwmanifest link tag."
78
  msgstr ""
79
 
80
- #: ../head-cleaner.php:1604
81
  msgid "Debug mode"
82
  msgstr ""
83
 
84
- #: ../head-cleaner.php:1617
85
  msgid "The CSS optimization settings"
86
  msgstr ""
87
 
88
- #: ../head-cleaner.php:1619
89
  msgid "Compression (code layout):"
90
  msgstr ""
91
 
92
- #: ../head-cleaner.php:1621
93
  msgid "Highest (no readability, smallest size)"
94
  msgstr ""
95
 
96
- #: ../head-cleaner.php:1622
97
  msgid "High (moderate readability, smaller size)"
98
  msgstr ""
99
 
100
- #: ../head-cleaner.php:1623
101
  msgid "Standard (balance between readability and size)"
102
  msgstr ""
103
 
104
- #: ../head-cleaner.php:1624
105
  msgid "Low (higher readability)"
106
  msgstr ""
107
 
108
- #: ../head-cleaner.php:1627
109
  msgid "Optimise shorthands"
110
  msgstr ""
111
 
112
- #: ../head-cleaner.php:1629
113
  msgid "All optimisations"
114
  msgstr ""
115
 
116
- #: ../head-cleaner.php:1630
117
  msgid "Safe optimisations"
118
  msgstr ""
119
 
120
- #: ../head-cleaner.php:1631
121
  msgid "Don't optimise"
122
  msgstr ""
123
 
124
- #: ../head-cleaner.php:1636
125
  msgid "Compress colors"
126
  msgstr ""
127
 
128
- #: ../head-cleaner.php:1639
129
  msgid "Compress font-weight"
130
  msgstr ""
131
 
132
- #: ../head-cleaner.php:1642
133
  msgid "Remove unnecessary backslashes"
134
  msgstr ""
135
 
136
- #: ../head-cleaner.php:1650
137
- msgid "Active JavaScripts"
138
- msgstr ""
139
-
140
- #: ../head-cleaner.php:1653
141
- msgid "Move to footer"
142
- msgstr ""
143
-
144
- #: ../head-cleaner.php:1654
145
- msgid "JavaScripts"
146
- msgstr ""
147
-
148
- #: ../head-cleaner.php:1666
149
  msgid "Active Filters"
150
  msgstr ""
151
 
152
- #: ../head-cleaner.php:1669
153
- #: ../head-cleaner.php:1706
154
  msgid "Off the subject"
155
  msgstr ""
156
 
157
- #: ../head-cleaner.php:1670
158
- #: ../head-cleaner.php:1707
159
  msgid "Remove"
160
  msgstr ""
161
 
162
- #: ../head-cleaner.php:1671
163
  msgid "Head filters"
164
  msgstr ""
165
 
166
- #: ../head-cleaner.php:1673
167
- #: ../head-cleaner.php:1710
168
  msgid "Priority"
169
  msgstr ""
170
 
171
- #: ../head-cleaner.php:1708
172
  msgid "Bottom filters"
173
  msgstr ""
174
 
175
- #: ../head-cleaner.php:1744
 
 
 
 
 
 
 
 
 
 
 
 
176
  msgid "Update Options"
177
  msgstr ""
178
 
179
- #: ../head-cleaner.php:1749
180
  msgid "Remove all cache files"
181
  msgstr ""
182
 
183
- #: ../head-cleaner.php:1752
184
  msgid "All cache files are removed."
185
  msgstr ""
186
 
187
- #: ../head-cleaner.php:1753
188
  msgid "Remove All Cache Files"
189
  msgstr ""
190
 
191
- #: ../head-cleaner.php:1758
192
  msgid "Uninstall"
193
  msgstr ""
194
 
195
- #: ../head-cleaner.php:1761
196
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
197
  msgstr ""
198
 
199
- #: ../head-cleaner.php:1762
200
  msgid "Delete Options"
201
  msgstr ""
202
 
10
  "Content-Type: text/plain; charset=iso-8859-1\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
 
13
+ #: ../head-cleaner.php:1504
14
  msgid "Head Cleaner"
15
  msgstr ""
16
 
17
+ #: ../head-cleaner.php:1513
18
+ #: ../includes/common-controller.php:175
19
  msgid "Settings"
20
  msgstr ""
21
 
22
+ #: ../head-cleaner.php:1609
23
+ #: ../head-cleaner.php:1619
24
+ #: ../head-cleaner.php:1629
25
  msgid "Done!"
26
  msgstr ""
27
 
28
+ #: ../head-cleaner.php:1641
29
  msgid "Head Cleaner Options"
30
  msgstr ""
31
 
32
+ #: ../head-cleaner.php:1649
33
  msgid "CSS and JavaScript are cached on the server."
34
  msgstr ""
35
 
36
+ #: ../head-cleaner.php:1653
37
  msgid "Put JavaScripts at the Bottom."
38
  msgstr ""
39
 
40
+ #: ../head-cleaner.php:1657
41
  msgid "CSS and JS are dynamically generated."
42
  msgstr ""
43
 
44
+ #: ../head-cleaner.php:1665
45
  msgid "Two or more CSS is combined."
46
  msgstr ""
47
 
48
+ #: ../head-cleaner.php:1669
49
  msgid "CSS is optimized."
50
  msgstr ""
51
 
52
+ #: ../head-cleaner.php:1672
53
  msgid "Default media attribute applied to CSS."
54
  msgstr ""
55
 
56
+ #: ../head-cleaner.php:1681
57
  msgid "Two or more JavaScript is combined."
58
  msgstr ""
59
 
60
+ #: ../head-cleaner.php:1685
61
  msgid "JavaScript is minified."
62
  msgstr ""
63
 
64
+ #: ../head-cleaner.php:1689
65
  msgid "Bottom JavaScript is combined, too."
66
  msgstr ""
67
 
68
+ #: ../head-cleaner.php:1696
69
+ msgid "gzip compress to CSS and JS."
70
+ msgstr ""
71
+
72
+ #: ../head-cleaner.php:1708
73
+ msgid "Add XML Declaration."
74
+ msgstr ""
75
+
76
+ #: ../head-cleaner.php:1712
77
+ msgid "Add canonical tag."
78
+ msgstr ""
79
+
80
+ #: ../head-cleaner.php:1716
81
+ msgid "Remove IE Conditional Tag."
82
+ msgstr ""
83
+
84
+ #: ../head-cleaner.php:1723
85
  msgid "Remove generator tag."
86
  msgstr ""
87
 
88
+ #: ../head-cleaner.php:1727
89
  msgid "Remove RSD link tag."
90
  msgstr ""
91
 
92
+ #: ../head-cleaner.php:1731
93
  msgid "Remove wlwmanifest link tag."
94
  msgstr ""
95
 
96
+ #: ../head-cleaner.php:1738
97
  msgid "Debug mode"
98
  msgstr ""
99
 
100
+ #: ../head-cleaner.php:1751
101
  msgid "The CSS optimization settings"
102
  msgstr ""
103
 
104
+ #: ../head-cleaner.php:1753
105
  msgid "Compression (code layout):"
106
  msgstr ""
107
 
108
+ #: ../head-cleaner.php:1755
109
  msgid "Highest (no readability, smallest size)"
110
  msgstr ""
111
 
112
+ #: ../head-cleaner.php:1756
113
  msgid "High (moderate readability, smaller size)"
114
  msgstr ""
115
 
116
+ #: ../head-cleaner.php:1757
117
  msgid "Standard (balance between readability and size)"
118
  msgstr ""
119
 
120
+ #: ../head-cleaner.php:1758
121
  msgid "Low (higher readability)"
122
  msgstr ""
123
 
124
+ #: ../head-cleaner.php:1761
125
  msgid "Optimise shorthands"
126
  msgstr ""
127
 
128
+ #: ../head-cleaner.php:1763
129
  msgid "All optimisations"
130
  msgstr ""
131
 
132
+ #: ../head-cleaner.php:1764
133
  msgid "Safe optimisations"
134
  msgstr ""
135
 
136
+ #: ../head-cleaner.php:1765
137
  msgid "Don't optimise"
138
  msgstr ""
139
 
140
+ #: ../head-cleaner.php:1770
141
  msgid "Compress colors"
142
  msgstr ""
143
 
144
+ #: ../head-cleaner.php:1773
145
  msgid "Compress font-weight"
146
  msgstr ""
147
 
148
+ #: ../head-cleaner.php:1776
149
  msgid "Remove unnecessary backslashes"
150
  msgstr ""
151
 
152
+ #: ../head-cleaner.php:1784
 
 
 
 
 
 
 
 
 
 
 
 
153
  msgid "Active Filters"
154
  msgstr ""
155
 
156
+ #: ../head-cleaner.php:1787
157
+ #: ../head-cleaner.php:1824
158
  msgid "Off the subject"
159
  msgstr ""
160
 
161
+ #: ../head-cleaner.php:1788
162
+ #: ../head-cleaner.php:1825
163
  msgid "Remove"
164
  msgstr ""
165
 
166
+ #: ../head-cleaner.php:1789
167
  msgid "Head filters"
168
  msgstr ""
169
 
170
+ #: ../head-cleaner.php:1791
171
+ #: ../head-cleaner.php:1828
172
  msgid "Priority"
173
  msgstr ""
174
 
175
+ #: ../head-cleaner.php:1826
176
  msgid "Bottom filters"
177
  msgstr ""
178
 
179
+ #: ../head-cleaner.php:1863
180
+ msgid "Active JavaScripts"
181
+ msgstr ""
182
+
183
+ #: ../head-cleaner.php:1866
184
+ msgid "Move to footer"
185
+ msgstr ""
186
+
187
+ #: ../head-cleaner.php:1867
188
+ msgid "JavaScripts"
189
+ msgstr ""
190
+
191
+ #: ../head-cleaner.php:1878
192
  msgid "Update Options"
193
  msgstr ""
194
 
195
+ #: ../head-cleaner.php:1883
196
  msgid "Remove all cache files"
197
  msgstr ""
198
 
199
+ #: ../head-cleaner.php:1886
200
  msgid "All cache files are removed."
201
  msgstr ""
202
 
203
+ #: ../head-cleaner.php:1887
204
  msgid "Remove All Cache Files"
205
  msgstr ""
206
 
207
+ #: ../head-cleaner.php:1892
208
  msgid "Uninstall"
209
  msgstr ""
210
 
211
+ #: ../head-cleaner.php:1895
212
  msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
213
  msgstr ""
214
 
215
+ #: ../head-cleaner.php:1896
216
  msgid "Delete Options"
217
  msgstr ""
218
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 1.1.6
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -39,8 +39,9 @@ To speed up the loading of JavaScript and CSS.
39
  = Localization =
40
  "Head Cleaner" has been translated into languages. Our thanks and appreciation must go to the following for their contributions:
41
 
42
- * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns" rel="nofollow">Marcis Gasuns</a>
43
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
 
44
 
45
  If you have translated into your language, please let me know.
46
 
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 1.2.0
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
39
  = Localization =
40
  "Head Cleaner" has been translated into languages. Our thanks and appreciation must go to the following for their contributions:
41
 
42
+ * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns">Marcis Gasuns</a>
43
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
44
+ * Spanish (es_ES) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
45
 
46
  If you have translated into your language, please let me know.
47
 
readme_ja.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 1.1.6
8
 
9
  Head �� footer �����|�����܂��B
10
 
@@ -39,6 +39,7 @@ WordPress
39
 
40
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns" rel="nofollow">Marcis Gasuns</a>
41
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
 
42
 
43
  == Installation ==
44
 
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 1.2.0
8
 
9
  Head �� footer �����|�����܂��B
10
 
39
 
40
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns" rel="nofollow">Marcis Gasuns</a>
41
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
42
+ * Spanish (es_ES) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
43
 
44
  == Installation ==
45