Changeset 1012281
- Timestamp:
- 10/22/2014 05:40:34 PM (11 years ago)
- Location:
- comment-expirator
- Files:
-
- 16 edited
- 7 copied
-
tags/1.1.0 (copied) (copied from comment-expirator/trunk)
-
tags/1.1.0/classes (copied) (copied from comment-expirator/trunk/classes)
-
tags/1.1.0/classes/comment.php (modified) (3 diffs)
-
tags/1.1.0/classes/schedule.php (modified) (1 diff)
-
tags/1.1.0/classes/settings.php (modified) (13 diffs)
-
tags/1.1.0/comment-expirator.php (copied) (copied from comment-expirator/trunk/comment-expirator.php) (2 diffs)
-
tags/1.1.0/css (copied) (copied from comment-expirator/trunk/css)
-
tags/1.1.0/js (copied) (copied from comment-expirator/trunk/js)
-
tags/1.1.0/languages (copied) (copied from comment-expirator/trunk/languages)
-
tags/1.1.0/languages/comment-expirator-sv_SE.mo (modified) (previous)
-
tags/1.1.0/languages/comment-expirator-sv_SE.pot (modified) (4 diffs)
-
tags/1.1.0/languages/comment-expirator.mo (modified) (previous)
-
tags/1.1.0/languages/comment-expirator.pot (modified) (4 diffs)
-
tags/1.1.0/readme.txt (copied) (copied from comment-expirator/trunk/readme.txt) (2 diffs)
-
trunk/classes/comment.php (modified) (3 diffs)
-
trunk/classes/schedule.php (modified) (1 diff)
-
trunk/classes/settings.php (modified) (13 diffs)
-
trunk/comment-expirator.php (modified) (2 diffs)
-
trunk/languages/comment-expirator-sv_SE.mo (modified) (previous)
-
trunk/languages/comment-expirator-sv_SE.pot (modified) (4 diffs)
-
trunk/languages/comment-expirator.mo (modified) (previous)
-
trunk/languages/comment-expirator.pot (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
comment-expirator/tags/1.1.0/classes/comment.php
r972999 r1012281 89 89 $use = isset( $_POST['expirator']['use'] ) ? true : false; 90 90 $disable_pt = isset( $_POST['expirator']['pt'] ) ? 'true' : 'false'; 91 91 92 92 93 // Only do this if checkbox is checked and we actually have a date and time 93 94 if( !empty( $date ) && !empty( $time ) && $use ) { … … 229 230 } 230 231 231 //echo '<pre>' . print_r( $schedule, true ) . '</pre>';232 //echo '<pre>' . print_r( $options, true ) . '</pre>';233 234 235 232 236 233 $pt_checked = $schedule->disable_pt; … … 245 242 } 246 243 244 245 if( empty( $schedule->date ) ) { 246 $default_time = $options['default_time']; 247 if( !empty( $default_time ) && is_int( $default_time ) ) { 248 $schedule->date = date('Y-m-d', strtotime("+$default_time days")); 249 $schedule->time = date_i18n('H:i'); 250 } 251 } 247 252 248 253 -
comment-expirator/tags/1.1.0/classes/schedule.php
r972999 r1012281 67 67 68 68 return isset( $this->values[$key] ) ? $this->values[$key] : null; 69 70 } 71 72 73 /** 74 * __isset 75 * 76 * Function for checking if an object propery is set 77 */ 78 public function __isset( $property ) { 79 80 return isset( $this->values[$property] ); 69 81 70 82 } -
comment-expirator/tags/1.1.0/classes/settings.php
r972999 r1012281 30 30 add_action( 'admin_init', array( $this, 'page_init' ) ); 31 31 32 $this->options = self::get_options(); 33 32 34 } 33 35 … … 59 61 */ 60 62 public function create_admin_page() { 61 62 // Set class property63 $this->options = get_option( 'comment_expirator' );64 63 ?> 65 64 <div class="wrap"> … … 76 75 </div> 77 76 <?php 78 79 77 } 80 78 … … 95 93 'posttypes', // ID 96 94 __( 'Post Types', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 97 array( $this, 'print_ section_info' ), // Callback95 array( $this, 'print_posttype_section_info' ), // Callback 98 96 'comment-expirator' // Page 99 97 ); … … 102 100 'allowed_posttypes', // ID 103 101 __( 'Check the post types you wish to display the comment expiration options on', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 104 array( $this, ' id_number_callback' ), // Callback102 array( $this, 'allowed_posttype_callback' ), // Callback 105 103 'comment-expirator', // Page 106 104 'posttypes' // Section … … 115 113 ); 116 114 115 /* SECTION DEFAULT DATE */ 116 117 add_settings_section( 118 'default_time', // ID 119 __( 'Default time', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 120 array( $this, 'print_default_date_section_info' ), // Callback 121 'comment-expirator' // Page 122 ); 123 124 add_settings_field( 125 'default_time', // ID 126 __( 'Set a default expiration time in days', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 127 array( $this, 'default_time_callback' ), // Callback 128 'comment-expirator', // Page 129 'default_time' // Section 130 ); 131 117 132 } 118 133 … … 144 159 } 145 160 161 if( !empty( $input['default_time'] ) ) { 162 if( intval( $input['default_time'] ) > 0 ) { 163 $new_input['default_time'] = (int) intval( $input['default_time'] ); 164 } 165 } 166 146 167 return $new_input; 147 168 … … 151 172 * Print the Section text 152 173 */ 153 public function print_ section_info() {174 public function print_posttype_section_info() { 154 175 155 176 print __( 'Enter your settings below:', COMMENT_EXPIRATOR_TEXTDOMAIN ); … … 160 181 public function pingbacks_and_trackbacks_callback() { 161 182 162 $options = self::get_options(); 163 $disable_pt = !empty( $options['disable_pt'] ) ? true : false; 183 $disable_pt = !empty( $this->options['disable_pt'] ) ? true : false; 164 184 165 185 $checked = ''; … … 176 196 * Callback for the posttypes allowed 177 197 */ 178 public function id_number_callback() {198 public function allowed_posttype_callback() { 179 199 180 200 // Get all valid public post types 181 201 $post_types = get_post_types( array( 'public' => true ) ); 182 202 183 $options = get_option( 'comment_expirator' );184 185 203 if( count( $post_types ) > 0 ) { 186 204 … … 192 210 193 211 $checked = ''; 194 if( isset( $ options['allowed_posttypes'] ) && is_array( $options['allowed_posttypes'] ) && count( $options['allowed_posttypes'] ) > 0 ) {195 if( in_array( $post_type, $ options['allowed_posttypes'] ) ) {212 if( isset( $this->options['allowed_posttypes'] ) && is_array( $this->options['allowed_posttypes'] ) && count( $this->options['allowed_posttypes'] ) > 0 ) { 213 if( in_array( $post_type, $this->options['allowed_posttypes'] ) ) { 196 214 197 215 $checked = 'checked="checked"'; … … 200 218 } 201 219 202 echo sprintf( '<input type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s<br />', esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) ); 220 echo sprintf( '<label for="posttype-%s">', esc_attr( $post_type ) ); 221 echo sprintf( '<input id="posttype-%s" type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s', esc_attr( $post_type ), esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) ); 222 echo '</label><br />'; 203 223 204 224 } … … 212 232 } 213 233 234 235 /** 236 * Print the Default time section text 237 */ 238 public function print_default_time_section_info() { 239 240 print __( 'Enter :', COMMENT_EXPIRATOR_TEXTDOMAIN ); 241 242 } 243 244 245 /** 246 * The output for the default time setting 247 */ 248 public function default_time_callback() { 249 250 $default_time = isset( $this->options['default_time'] ) ? esc_attr( $this->options['default_time'] ) : null; 251 252 echo '<input type="number" name="comment_expirator[default_time]" min="0" max="10000" value="' . $default_time . '" /><br />'; 253 echo '<p class="description">(' . __('Empty this field if you do not want a default time.', COMMENT_EXPIRATOR_TEXTDOMAIN) . ')</p>'; 254 255 256 } 257 214 258 } 215 259 -
comment-expirator/tags/1.1.0/comment-expirator.php
r972999 r1012281 5 5 Plugin Name: Comment Expirator 6 6 Description: The plugin lets you set a specific closing date and time for comments on any post type. 7 Version: 1. 0.07 Version: 1.1.0 8 8 Author: Andreas Färnstrand <andreas@farnstranddev.se> 9 9 Author URI: http://www.farnstranddev.se … … 35 35 define( 'COMMENT_EXPIRATOR_TEXTDOMAIN', 'comment-expirator' ); 36 36 define( 'COMMENT_EXPIRATOR_TEXTDOMAIN_PATH', dirname( plugin_basename( __FILE__) ) .'/languages' ); 37 define( 'COMMENT_EXPIRATOR_VERSION', ' 0.1.0' );37 define( 'COMMENT_EXPIRATOR_VERSION', '1.1.0' ); 38 38 39 39 // Require necessary classes -
comment-expirator/tags/1.1.0/languages/comment-expirator-sv_SE.pot
r972999 r1012281 2 2 msgstr "" 3 3 "Project-Id-Version: comment-expirator\n" 4 "POT-Creation-Date: 2014- 08-22 22:24+0100\n"5 "PO-Revision-Date: 2014- 08-22 23:01+0100\n"4 "POT-Creation-Date: 2014-10-22 19:19+0100\n" 5 "PO-Revision-Date: 2014-10-22 19:21+0100\n" 6 6 "Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n" 7 7 "Language-Team: <andreas@farnstranddev.se>\n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: classes/comment.php: 18617 #: classes/comment.php:202 18 18 msgid "Comment expiration" 19 19 msgstr "Avaktivering av kommentarer" 20 20 21 #: classes/comment.php:2 3721 #: classes/comment.php:257 22 22 msgid "Deactivate comments" 23 23 msgstr "Avaktivera kommentarer" 24 24 25 #: classes/comment.php:2 3925 #: classes/comment.php:259 26 26 msgid "Date" 27 27 msgstr "Datum" 28 28 29 #: classes/comment.php:2 4129 #: classes/comment.php:261 30 30 msgid "Time" 31 31 msgstr "Tid" 32 32 33 #: classes/comment.php:2 4333 #: classes/comment.php:263 34 34 msgid "Also disable trackbacks and pingbacks" 35 35 msgstr "Avaktivera också trackbacks och pingbacks" 36 36 37 #: classes/settings.php: 4837 #: classes/settings.php:51 38 38 msgid "Comment Expirator" 39 39 msgstr "Comment Expirator" … … 43 43 msgstr "Inställningar för Comment Expirator" 44 44 45 #: classes/settings.php:9 545 #: classes/settings.php:94 46 46 msgid "Post Types" 47 47 msgstr "Posttyper" 48 48 49 #: classes/settings.php:10 249 #: classes/settings.php:101 50 50 msgid "" 51 51 "Check the post types you wish to display the comment expiration options on" … … 54 54 "kommentarer på" 55 55 56 #: classes/settings.php:1 1056 #: classes/settings.php:109 57 57 msgid "Disable trackbacks and pingbacks by default" 58 58 msgstr "Avaktivera trackbacks och pingbacks som standard" 59 59 60 #: classes/settings.php:154 60 #: classes/settings.php:119 61 msgid "Default time" 62 msgstr "Standardtid" 63 64 #: classes/settings.php:126 65 msgid "Set a default expiration time in days" 66 msgstr "Sätt en standardutgångstid i antal dagar" 67 68 #: classes/settings.php:176 61 69 msgid "Enter your settings below:" 62 70 msgstr "Ange dina inställningar nedan:" 71 72 #: classes/settings.php:240 73 msgid "Enter :" 74 msgstr "Skriv :" 75 76 #: classes/settings.php:253 77 msgid "Empty this field if you do not want a default time." 78 msgstr "Töm detta fält om du inte vill ha en standardtid." -
comment-expirator/tags/1.1.0/languages/comment-expirator.pot
r972999 r1012281 2 2 msgstr "" 3 3 "Project-Id-Version: comment-expirator\n" 4 "POT-Creation-Date: 2014- 08-22 22:24+0100\n"5 "PO-Revision-Date: 2014- 08-22 22:53+0100\n"4 "POT-Creation-Date: 2014-10-22 19:17+0100\n" 5 "PO-Revision-Date: 2014-10-22 19:18+0100\n" 6 6 "Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n" 7 7 "Language-Team: <andreas@farnstranddev.se>\n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: classes/comment.php: 18617 #: classes/comment.php:202 18 18 msgid "Comment expiration" 19 19 msgstr "Comment expiration" 20 20 21 #: classes/comment.php:2 3721 #: classes/comment.php:257 22 22 msgid "Deactivate comments" 23 23 msgstr "Deactivate comments" 24 24 25 #: classes/comment.php:2 3925 #: classes/comment.php:259 26 26 msgid "Date" 27 27 msgstr "Date" 28 28 29 #: classes/comment.php:2 4129 #: classes/comment.php:261 30 30 msgid "Time" 31 31 msgstr "Time" 32 32 33 #: classes/comment.php:2 4333 #: classes/comment.php:263 34 34 msgid "Also disable trackbacks and pingbacks" 35 35 msgstr "Also disable trackbacks and pingbacks" 36 36 37 #: classes/settings.php: 4837 #: classes/settings.php:51 38 38 msgid "Comment Expirator" 39 39 msgstr "Comment Expirator" … … 43 43 msgstr "Comment Expirator Settings" 44 44 45 #: classes/settings.php:9 545 #: classes/settings.php:94 46 46 msgid "Post Types" 47 47 msgstr "Post Types" 48 48 49 #: classes/settings.php:10 249 #: classes/settings.php:101 50 50 msgid "" 51 51 "Check the post types you wish to display the comment expiration options on" … … 53 53 "Check the post types you wish to display the comment expiration options on" 54 54 55 #: classes/settings.php:1 1055 #: classes/settings.php:109 56 56 msgid "Disable trackbacks and pingbacks by default" 57 57 msgstr "Disable trackbacks and pingbacks by default" 58 58 59 #: classes/settings.php:154 59 #: classes/settings.php:119 60 msgid "Default time" 61 msgstr "Default time" 62 63 #: classes/settings.php:126 64 msgid "Set a default expiration time in days" 65 msgstr "Set a default expiration time in days" 66 67 #: classes/settings.php:176 60 68 msgid "Enter your settings below:" 61 69 msgstr "Enter your settings below:" 70 71 #: classes/settings.php:240 72 msgid "Enter :" 73 msgstr "Enter :" 74 75 #: classes/settings.php:253 76 msgid "Empty this field if you do not want a default time." 77 msgstr "Empty this field if you do not want a default time." -
comment-expirator/tags/1.1.0/readme.txt
r984687 r1012281 4 4 Requires at least: 3.9 5 5 Tested up to: 4.0 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 * Initial version 36 36 37 = 1.1.0 = 38 * New feature. Now possible to set a default expiration time in days. 39 * A little code cleanup. 40 -
comment-expirator/trunk/classes/comment.php
r972999 r1012281 89 89 $use = isset( $_POST['expirator']['use'] ) ? true : false; 90 90 $disable_pt = isset( $_POST['expirator']['pt'] ) ? 'true' : 'false'; 91 91 92 92 93 // Only do this if checkbox is checked and we actually have a date and time 93 94 if( !empty( $date ) && !empty( $time ) && $use ) { … … 229 230 } 230 231 231 //echo '<pre>' . print_r( $schedule, true ) . '</pre>';232 //echo '<pre>' . print_r( $options, true ) . '</pre>';233 234 235 232 236 233 $pt_checked = $schedule->disable_pt; … … 245 242 } 246 243 244 245 if( empty( $schedule->date ) ) { 246 $default_time = $options['default_time']; 247 if( !empty( $default_time ) && is_int( $default_time ) ) { 248 $schedule->date = date('Y-m-d', strtotime("+$default_time days")); 249 $schedule->time = date_i18n('H:i'); 250 } 251 } 247 252 248 253 -
comment-expirator/trunk/classes/schedule.php
r972999 r1012281 67 67 68 68 return isset( $this->values[$key] ) ? $this->values[$key] : null; 69 70 } 71 72 73 /** 74 * __isset 75 * 76 * Function for checking if an object propery is set 77 */ 78 public function __isset( $property ) { 79 80 return isset( $this->values[$property] ); 69 81 70 82 } -
comment-expirator/trunk/classes/settings.php
r972999 r1012281 30 30 add_action( 'admin_init', array( $this, 'page_init' ) ); 31 31 32 $this->options = self::get_options(); 33 32 34 } 33 35 … … 59 61 */ 60 62 public function create_admin_page() { 61 62 // Set class property63 $this->options = get_option( 'comment_expirator' );64 63 ?> 65 64 <div class="wrap"> … … 76 75 </div> 77 76 <?php 78 79 77 } 80 78 … … 95 93 'posttypes', // ID 96 94 __( 'Post Types', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 97 array( $this, 'print_ section_info' ), // Callback95 array( $this, 'print_posttype_section_info' ), // Callback 98 96 'comment-expirator' // Page 99 97 ); … … 102 100 'allowed_posttypes', // ID 103 101 __( 'Check the post types you wish to display the comment expiration options on', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 104 array( $this, ' id_number_callback' ), // Callback102 array( $this, 'allowed_posttype_callback' ), // Callback 105 103 'comment-expirator', // Page 106 104 'posttypes' // Section … … 115 113 ); 116 114 115 /* SECTION DEFAULT DATE */ 116 117 add_settings_section( 118 'default_time', // ID 119 __( 'Default time', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 120 array( $this, 'print_default_date_section_info' ), // Callback 121 'comment-expirator' // Page 122 ); 123 124 add_settings_field( 125 'default_time', // ID 126 __( 'Set a default expiration time in days', COMMENT_EXPIRATOR_TEXTDOMAIN ), // Title 127 array( $this, 'default_time_callback' ), // Callback 128 'comment-expirator', // Page 129 'default_time' // Section 130 ); 131 117 132 } 118 133 … … 144 159 } 145 160 161 if( !empty( $input['default_time'] ) ) { 162 if( intval( $input['default_time'] ) > 0 ) { 163 $new_input['default_time'] = (int) intval( $input['default_time'] ); 164 } 165 } 166 146 167 return $new_input; 147 168 … … 151 172 * Print the Section text 152 173 */ 153 public function print_ section_info() {174 public function print_posttype_section_info() { 154 175 155 176 print __( 'Enter your settings below:', COMMENT_EXPIRATOR_TEXTDOMAIN ); … … 160 181 public function pingbacks_and_trackbacks_callback() { 161 182 162 $options = self::get_options(); 163 $disable_pt = !empty( $options['disable_pt'] ) ? true : false; 183 $disable_pt = !empty( $this->options['disable_pt'] ) ? true : false; 164 184 165 185 $checked = ''; … … 176 196 * Callback for the posttypes allowed 177 197 */ 178 public function id_number_callback() {198 public function allowed_posttype_callback() { 179 199 180 200 // Get all valid public post types 181 201 $post_types = get_post_types( array( 'public' => true ) ); 182 202 183 $options = get_option( 'comment_expirator' );184 185 203 if( count( $post_types ) > 0 ) { 186 204 … … 192 210 193 211 $checked = ''; 194 if( isset( $ options['allowed_posttypes'] ) && is_array( $options['allowed_posttypes'] ) && count( $options['allowed_posttypes'] ) > 0 ) {195 if( in_array( $post_type, $ options['allowed_posttypes'] ) ) {212 if( isset( $this->options['allowed_posttypes'] ) && is_array( $this->options['allowed_posttypes'] ) && count( $this->options['allowed_posttypes'] ) > 0 ) { 213 if( in_array( $post_type, $this->options['allowed_posttypes'] ) ) { 196 214 197 215 $checked = 'checked="checked"'; … … 200 218 } 201 219 202 echo sprintf( '<input type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s<br />', esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) ); 220 echo sprintf( '<label for="posttype-%s">', esc_attr( $post_type ) ); 221 echo sprintf( '<input id="posttype-%s" type="checkbox" name="comment_expirator[allowed_posttypes][%s]" value="%s" %s /> %s', esc_attr( $post_type ), esc_attr( $post_type ), esc_attr( $post_type ), $checked, esc_attr( $post_type ) ); 222 echo '</label><br />'; 203 223 204 224 } … … 212 232 } 213 233 234 235 /** 236 * Print the Default time section text 237 */ 238 public function print_default_time_section_info() { 239 240 print __( 'Enter :', COMMENT_EXPIRATOR_TEXTDOMAIN ); 241 242 } 243 244 245 /** 246 * The output for the default time setting 247 */ 248 public function default_time_callback() { 249 250 $default_time = isset( $this->options['default_time'] ) ? esc_attr( $this->options['default_time'] ) : null; 251 252 echo '<input type="number" name="comment_expirator[default_time]" min="0" max="10000" value="' . $default_time . '" /><br />'; 253 echo '<p class="description">(' . __('Empty this field if you do not want a default time.', COMMENT_EXPIRATOR_TEXTDOMAIN) . ')</p>'; 254 255 256 } 257 214 258 } 215 259 -
comment-expirator/trunk/comment-expirator.php
r972999 r1012281 5 5 Plugin Name: Comment Expirator 6 6 Description: The plugin lets you set a specific closing date and time for comments on any post type. 7 Version: 1. 0.07 Version: 1.1.0 8 8 Author: Andreas Färnstrand <andreas@farnstranddev.se> 9 9 Author URI: http://www.farnstranddev.se … … 35 35 define( 'COMMENT_EXPIRATOR_TEXTDOMAIN', 'comment-expirator' ); 36 36 define( 'COMMENT_EXPIRATOR_TEXTDOMAIN_PATH', dirname( plugin_basename( __FILE__) ) .'/languages' ); 37 define( 'COMMENT_EXPIRATOR_VERSION', ' 0.1.0' );37 define( 'COMMENT_EXPIRATOR_VERSION', '1.1.0' ); 38 38 39 39 // Require necessary classes -
comment-expirator/trunk/languages/comment-expirator-sv_SE.pot
r972999 r1012281 2 2 msgstr "" 3 3 "Project-Id-Version: comment-expirator\n" 4 "POT-Creation-Date: 2014- 08-22 22:24+0100\n"5 "PO-Revision-Date: 2014- 08-22 23:01+0100\n"4 "POT-Creation-Date: 2014-10-22 19:19+0100\n" 5 "PO-Revision-Date: 2014-10-22 19:21+0100\n" 6 6 "Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n" 7 7 "Language-Team: <andreas@farnstranddev.se>\n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: classes/comment.php: 18617 #: classes/comment.php:202 18 18 msgid "Comment expiration" 19 19 msgstr "Avaktivering av kommentarer" 20 20 21 #: classes/comment.php:2 3721 #: classes/comment.php:257 22 22 msgid "Deactivate comments" 23 23 msgstr "Avaktivera kommentarer" 24 24 25 #: classes/comment.php:2 3925 #: classes/comment.php:259 26 26 msgid "Date" 27 27 msgstr "Datum" 28 28 29 #: classes/comment.php:2 4129 #: classes/comment.php:261 30 30 msgid "Time" 31 31 msgstr "Tid" 32 32 33 #: classes/comment.php:2 4333 #: classes/comment.php:263 34 34 msgid "Also disable trackbacks and pingbacks" 35 35 msgstr "Avaktivera också trackbacks och pingbacks" 36 36 37 #: classes/settings.php: 4837 #: classes/settings.php:51 38 38 msgid "Comment Expirator" 39 39 msgstr "Comment Expirator" … … 43 43 msgstr "Inställningar för Comment Expirator" 44 44 45 #: classes/settings.php:9 545 #: classes/settings.php:94 46 46 msgid "Post Types" 47 47 msgstr "Posttyper" 48 48 49 #: classes/settings.php:10 249 #: classes/settings.php:101 50 50 msgid "" 51 51 "Check the post types you wish to display the comment expiration options on" … … 54 54 "kommentarer på" 55 55 56 #: classes/settings.php:1 1056 #: classes/settings.php:109 57 57 msgid "Disable trackbacks and pingbacks by default" 58 58 msgstr "Avaktivera trackbacks och pingbacks som standard" 59 59 60 #: classes/settings.php:154 60 #: classes/settings.php:119 61 msgid "Default time" 62 msgstr "Standardtid" 63 64 #: classes/settings.php:126 65 msgid "Set a default expiration time in days" 66 msgstr "Sätt en standardutgångstid i antal dagar" 67 68 #: classes/settings.php:176 61 69 msgid "Enter your settings below:" 62 70 msgstr "Ange dina inställningar nedan:" 71 72 #: classes/settings.php:240 73 msgid "Enter :" 74 msgstr "Skriv :" 75 76 #: classes/settings.php:253 77 msgid "Empty this field if you do not want a default time." 78 msgstr "Töm detta fält om du inte vill ha en standardtid." -
comment-expirator/trunk/languages/comment-expirator.pot
r972999 r1012281 2 2 msgstr "" 3 3 "Project-Id-Version: comment-expirator\n" 4 "POT-Creation-Date: 2014- 08-22 22:24+0100\n"5 "PO-Revision-Date: 2014- 08-22 22:53+0100\n"4 "POT-Creation-Date: 2014-10-22 19:17+0100\n" 5 "PO-Revision-Date: 2014-10-22 19:18+0100\n" 6 6 "Last-Translator: Andeas Färnstrand <andreas@farnstranddev.se>\n" 7 7 "Language-Team: <andreas@farnstranddev.se>\n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: classes/comment.php: 18617 #: classes/comment.php:202 18 18 msgid "Comment expiration" 19 19 msgstr "Comment expiration" 20 20 21 #: classes/comment.php:2 3721 #: classes/comment.php:257 22 22 msgid "Deactivate comments" 23 23 msgstr "Deactivate comments" 24 24 25 #: classes/comment.php:2 3925 #: classes/comment.php:259 26 26 msgid "Date" 27 27 msgstr "Date" 28 28 29 #: classes/comment.php:2 4129 #: classes/comment.php:261 30 30 msgid "Time" 31 31 msgstr "Time" 32 32 33 #: classes/comment.php:2 4333 #: classes/comment.php:263 34 34 msgid "Also disable trackbacks and pingbacks" 35 35 msgstr "Also disable trackbacks and pingbacks" 36 36 37 #: classes/settings.php: 4837 #: classes/settings.php:51 38 38 msgid "Comment Expirator" 39 39 msgstr "Comment Expirator" … … 43 43 msgstr "Comment Expirator Settings" 44 44 45 #: classes/settings.php:9 545 #: classes/settings.php:94 46 46 msgid "Post Types" 47 47 msgstr "Post Types" 48 48 49 #: classes/settings.php:10 249 #: classes/settings.php:101 50 50 msgid "" 51 51 "Check the post types you wish to display the comment expiration options on" … … 53 53 "Check the post types you wish to display the comment expiration options on" 54 54 55 #: classes/settings.php:1 1055 #: classes/settings.php:109 56 56 msgid "Disable trackbacks and pingbacks by default" 57 57 msgstr "Disable trackbacks and pingbacks by default" 58 58 59 #: classes/settings.php:154 59 #: classes/settings.php:119 60 msgid "Default time" 61 msgstr "Default time" 62 63 #: classes/settings.php:126 64 msgid "Set a default expiration time in days" 65 msgstr "Set a default expiration time in days" 66 67 #: classes/settings.php:176 60 68 msgid "Enter your settings below:" 61 69 msgstr "Enter your settings below:" 70 71 #: classes/settings.php:240 72 msgid "Enter :" 73 msgstr "Enter :" 74 75 #: classes/settings.php:253 76 msgid "Empty this field if you do not want a default time." 77 msgstr "Empty this field if you do not want a default time." -
comment-expirator/trunk/readme.txt
r984687 r1012281 4 4 Requires at least: 3.9 5 5 Tested up to: 4.0 6 Stable tag: 1. 0.06 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 * Initial version 36 36 37 = 1.1.0 = 38 * New feature. Now possible to set a default expiration time in days. 39 * A little code cleanup. 40
Note: See TracChangeset
for help on using the changeset viewer.