Post Views Counter - Version 1.0.10

Version Description

  • New: Option to limit post views editing to admins only
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Post Views Counter
Version 1.0.10
Comparing to
See all releases

Code changes from version 1.0.9 to 1.0.10

includes/columns.php CHANGED
@@ -23,6 +23,10 @@ class Post_Views_Counter_Columns {
23
 
24
  if ( ! in_array( $post->post_type, (array) $post_types ) )
25
  return;
 
 
 
 
26
 
27
  global $wpdb;
28
 
@@ -45,20 +49,28 @@ class Post_Views_Counter_Columns {
45
  <?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( (int) $views ) . '</b>'; ?>
46
 
47
  </span>
48
-
49
- <a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a>
50
-
51
- <div id="post-views-input-container" class="hide-if-js">
52
-
53
- <p><?php _e( 'Adjust the views count for this post.', 'post-views-counter' ); ?></p>
54
- <input type="hidden" name="current_post_views" id="post-views-current" value="<?php echo (int) $views; ?>" />
55
- <input type="text" name="post_views" id="post-views-input" value="<?php echo (int) $views; ?>"/><br />
56
- <p>
57
- <a href="#post-views" class="save-post-views hide-if-no-js button"><?php _e( 'OK', 'post-views-counter' ); ?></a>
58
- <a href="#post-views" class="cancel-post-views hide-if-no-js"><?php _e( 'Cancel', 'post-views-counter' ); ?></a>
59
- </p>
60
-
61
- </div>
 
 
 
 
 
 
 
 
62
 
63
  </div>
64
  <?php
@@ -86,7 +98,13 @@ class Post_Views_Counter_Columns {
86
 
87
  if ( ! in_array( $post->post_type, (array) $post_types ) )
88
  return $post_id;
89
-
 
 
 
 
 
 
90
  // validate data
91
  if ( ! isset( $_POST['pvc_nonce'] ) || ! wp_verify_nonce( $_POST['pvc_nonce'], 'post_views_count' ) )
92
  return $post_id;
23
 
24
  if ( ! in_array( $post->post_type, (array) $post_types ) )
25
  return;
26
+
27
+ // break if current user can't edit this post
28
+ if ( ! current_user_can( 'edit_post', $post->ID ) )
29
+ return;
30
 
31
  global $wpdb;
32
 
49
  <?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( (int) $views ) . '</b>'; ?>
50
 
51
  </span>
52
+
53
+ <?php // restrict editing
54
+ $restrict = (bool) Post_Views_Counter()->get_attribute( 'options', 'general', 'restrict_edit_views' );
55
+
56
+ if ( $restrict === false || ( $restrict === true && current_user_can( apply_filters( 'pvc_restrict_edit_capability', 'manage_options' ) ) ) ) {
57
+ ?>
58
+ <a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a>
59
+
60
+ <div id="post-views-input-container" class="hide-if-js">
61
+
62
+ <p><?php _e( 'Adjust the views count for this post.', 'post-views-counter' ); ?></p>
63
+ <input type="hidden" name="current_post_views" id="post-views-current" value="<?php echo (int) $views; ?>" />
64
+ <input type="text" name="post_views" id="post-views-input" value="<?php echo (int) $views; ?>"/><br />
65
+ <p>
66
+ <a href="#post-views" class="save-post-views hide-if-no-js button"><?php _e( 'OK', 'post-views-counter' ); ?></a>
67
+ <a href="#post-views" class="cancel-post-views hide-if-no-js"><?php _e( 'Cancel', 'post-views-counter' ); ?></a>
68
+ </p>
69
+
70
+ </div>
71
+ <?php
72
+ }
73
+ ?>
74
 
75
  </div>
76
  <?php
98
 
99
  if ( ! in_array( $post->post_type, (array) $post_types ) )
100
  return $post_id;
101
+
102
+ // break if views editing is restricted
103
+ $restrict = (bool) Post_Views_Counter()->get_attribute( 'options', 'general', 'restrict_edit_views' );
104
+
105
+ if ( $restrict === true && ! current_user_can( apply_filters( 'pvc_restrict_edit_capability', 'manage_options' ) ) )
106
+ return $post_id;
107
+
108
  // validate data
109
  if ( ! isset( $_POST['pvc_nonce'] ) || ! wp_verify_nonce( $_POST['pvc_nonce'], 'post_views_count' ) )
110
  return $post_id;
includes/settings.php CHANGED
@@ -31,11 +31,7 @@ class Post_Views_Counter_Settings {
31
  * Load default settings.
32
  */
33
  public function load_defaults() {
34
- $this->choices = array(
35
- 'yes' => __( 'Enable', 'post-views-counter' ),
36
- 'no' => __( 'Disable', 'post-views-counter' )
37
- );
38
-
39
  $this->modes = array(
40
  'php' => __( 'PHP', 'post-views-counter' ),
41
  'js' => __( 'JavaScript', 'post-views-counter' )
@@ -202,12 +198,13 @@ class Post_Views_Counter_Settings {
202
  add_settings_field( 'pvc_post_types_count', __( 'Post Types Count', 'post-views-counter' ), array( &$this, 'post_types_count' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
203
  add_settings_field( 'pvc_counter_mode', __( 'Counter Mode', 'post-views-counter' ), array( &$this, 'counter_mode' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
204
  add_settings_field( 'pvc_post_views_column', __( 'Post Views Column', 'post-views-counter' ), array( &$this, 'post_views_column' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
 
205
  add_settings_field( 'pvc_time_between_counts', __( 'Time Between Counts', 'post-views-counter' ), array( &$this, 'time_between_counts' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
206
  add_settings_field( 'pvc_reset_counts', __( 'Reset Data Interval', 'post-views-counter' ), array( &$this, 'reset_counts' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
207
  add_settings_field( 'pvc_flush_interval', __( 'Flush Object Cache Interval', 'post-views-counter' ), array( &$this, 'flush_interval' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
208
  add_settings_field( 'pvc_exclude', __( 'Exclude Visitors', 'post-views-counter' ), array( &$this, 'exclude' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
209
  add_settings_field( 'pvc_exclude_ips', __( 'Exclude IPs', 'post-views-counter' ), array( &$this, 'exclude_ips' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
210
- add_settings_field( 'pvc_wp_postviews', __( 'WP-PostViews', 'post-views-counter' ), array( &$this, 'wp_postviews' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
211
  add_settings_field( 'pvc_deactivation_delete', __( 'Deactivation', 'post-views-counter' ), array( &$this, 'deactivation_delete' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
212
 
213
  // display options
@@ -307,19 +304,7 @@ class Post_Views_Counter_Settings {
307
  public function post_views_column() {
308
  echo '
309
  <div id="pvc_post_views_column">
310
- <fieldset>';
311
-
312
- foreach ( $this->choices as $key => $value ) {
313
- $key = esc_attr( $key );
314
-
315
- echo '
316
- <input id="pvc-post-views-column-' . $key . '" type="radio" name="post_views_counter_settings_general[post_views_column]" value="' . $key . '" ' . checked( $key, (Post_Views_Counter()->get_attribute( 'options', 'general', 'post_views_column' ) === true ? 'yes' : 'no' ), false ) . ' /><label for="pvc-post-views-column-' . $key . '">' . esc_html( $value ) . '</label>';
317
- }
318
-
319
- echo '
320
- <br/>
321
- <span class="description">' . esc_html__( 'Enable to display post views count column for each of the selected post types.', 'post-views-counter' ) . '</span>
322
- </fieldset>
323
  </div>';
324
  }
325
 
@@ -463,10 +448,20 @@ class Post_Views_Counter_Settings {
463
  <input type="submit" class="button button-secondary" name="post_views_counter_import_wp_postviews" value="' . __( 'Import', 'post-views-counter' ) . '"/>
464
  <br/>
465
  <p class="description">' . esc_html__( 'Import post views data from WP-PostViews plugin.', 'post-views-counter' ) . '</p>
466
- <input id="pvc-wp-postviews" type="checkbox" name="post_views_counter_import_wp_postviews_override"/><label for="pvc-wp-postviews">' . esc_html__( 'Override existing Post Views Counter data.', 'post-views-counter' ) . '</label>
467
  </fieldset>
468
  </div>';
469
  }
 
 
 
 
 
 
 
 
 
 
470
 
471
  /**
472
  * Plugin deactivation option.
@@ -474,19 +469,7 @@ class Post_Views_Counter_Settings {
474
  public function deactivation_delete() {
475
  echo '
476
  <div id="pvc_deactivation_delete">
477
- <fieldset>';
478
-
479
- foreach ( $this->choices as $key => $value ) {
480
- $key = esc_attr( $key );
481
-
482
- echo '
483
- <input id="pvc-deactivation-delete-' . $key . '" type="radio" name="post_views_counter_settings_general[deactivation_delete]" value="' . $key . '" ' . checked( $key, (Post_Views_Counter()->get_attribute( 'options', 'general', 'deactivation_delete' ) === true ? 'yes' : 'no' ), false ) . ' /><label for="pvc-deactivation-delete-' . $key . '">' . esc_html( $value ) . '</label>';
484
- }
485
-
486
- echo '
487
- <br/>
488
- <span class="description">' . esc_html__( 'Enable to delete all plugin data on deactivation.', 'post-views-counter' ) . '</span>
489
- </fieldset>
490
  </div>';
491
  }
492
 
@@ -631,7 +614,7 @@ class Post_Views_Counter_Settings {
631
  $input['counter_mode'] = (isset( $input['counter_mode'], $this->modes[$input['counter_mode']] ) ? $input['counter_mode'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'counter_mode' ));
632
 
633
  // post views column
634
- $input['post_views_column'] = (isset( $input['post_views_column'], $this->choices[$input['post_views_column']] ) ? ($input['post_views_column'] === 'yes' ? true : false) : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'post_views_column' ));
635
 
636
  // time between counts
637
  $input['time_between_counts']['number'] = (int) (isset( $input['time_between_counts']['number'] ) ? $input['time_between_counts']['number'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'time_between_counts', 'number' ));
@@ -697,9 +680,12 @@ class Post_Views_Counter_Settings {
697
 
698
  $input['exclude_ips'] = array_unique( $ips );
699
  }
 
 
 
700
 
701
  // deactivation delete
702
- $input['deactivation_delete'] = (isset( $input['deactivation_delete'], $this->choices[$input['deactivation_delete']] ) ? ($input['deactivation_delete'] === 'yes' ? true : false) : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'deactivation_delete' ));
703
  } elseif ( isset( $_POST['save_pvc_display'] ) ) {
704
 
705
  // post views label
@@ -716,7 +702,7 @@ class Post_Views_Counter_Settings {
716
  $input['display_style']['text'] = (isset( $input['display_style']['text'] ) ? true : false);
717
 
718
  // link to post
719
- $input['link_to_post'] = (isset( $input['link_to_post'], $this->choices[$input['link_to_post']] ) ? ($input['link_to_post'] === 'yes' ? true : false) : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'link_to_post' ));
720
 
721
  // icon class
722
  $input['icon_class'] = (isset( $input['icon_class'] ) ? trim( $input['icon_class'] ) : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'icon_class' ));
31
  * Load default settings.
32
  */
33
  public function load_defaults() {
34
+
 
 
 
 
35
  $this->modes = array(
36
  'php' => __( 'PHP', 'post-views-counter' ),
37
  'js' => __( 'JavaScript', 'post-views-counter' )
198
  add_settings_field( 'pvc_post_types_count', __( 'Post Types Count', 'post-views-counter' ), array( &$this, 'post_types_count' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
199
  add_settings_field( 'pvc_counter_mode', __( 'Counter Mode', 'post-views-counter' ), array( &$this, 'counter_mode' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
200
  add_settings_field( 'pvc_post_views_column', __( 'Post Views Column', 'post-views-counter' ), array( &$this, 'post_views_column' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
201
+ add_settings_field( 'pvc_restrict_edit_views', __( 'Restrict Edit', 'post-views-counter' ), array( &$this, 'restrict_edit_views' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
202
  add_settings_field( 'pvc_time_between_counts', __( 'Time Between Counts', 'post-views-counter' ), array( &$this, 'time_between_counts' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
203
  add_settings_field( 'pvc_reset_counts', __( 'Reset Data Interval', 'post-views-counter' ), array( &$this, 'reset_counts' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
204
  add_settings_field( 'pvc_flush_interval', __( 'Flush Object Cache Interval', 'post-views-counter' ), array( &$this, 'flush_interval' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
205
  add_settings_field( 'pvc_exclude', __( 'Exclude Visitors', 'post-views-counter' ), array( &$this, 'exclude' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
206
  add_settings_field( 'pvc_exclude_ips', __( 'Exclude IPs', 'post-views-counter' ), array( &$this, 'exclude_ips' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
207
+ add_settings_field( 'pvc_wp_postviews', __( 'WP-PostViews', 'post-views-counter' ), array( &$this, 'wp_postviews' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
208
  add_settings_field( 'pvc_deactivation_delete', __( 'Deactivation', 'post-views-counter' ), array( &$this, 'deactivation_delete' ), 'post_views_counter_settings_general', 'post_views_counter_settings_general' );
209
 
210
  // display options
304
  public function post_views_column() {
305
  echo '
306
  <div id="pvc_post_views_column">
307
+ <input id="pvc-post-views-column-enable" type="checkbox" name="post_views_counter_settings_general[post_views_column]" value="1" ' . checked( true, (bool) Post_Views_Counter()->get_attribute( 'options', 'general', 'post_views_column' ), false ) . ' /><label for="pvc-post-views-column-enable">' . esc_html__( 'Enable to display post views count column for each of the selected post types.', 'post-views-counter' ) . '</label>
 
 
 
 
 
 
 
 
 
 
 
 
308
  </div>';
309
  }
310
 
448
  <input type="submit" class="button button-secondary" name="post_views_counter_import_wp_postviews" value="' . __( 'Import', 'post-views-counter' ) . '"/>
449
  <br/>
450
  <p class="description">' . esc_html__( 'Import post views data from WP-PostViews plugin.', 'post-views-counter' ) . '</p>
451
+ <input id="pvc-wp-postviews" type="checkbox" name="post_views_counter_import_wp_postviews_override" value="1" /><label for="pvc-wp-postviews">' . esc_html__( 'Override existing Post Views Counter data.', 'post-views-counter' ) . '</label>
452
  </fieldset>
453
  </div>';
454
  }
455
+
456
+ /**
457
+ * Limit views edit to admins.
458
+ */
459
+ public function restrict_edit_views() {
460
+ echo '
461
+ <div id="pvc_restrict_edit_views">
462
+ <input id="pvc-restrict-edit-views-enable" type="checkbox" name="post_views_counter_settings_general[restrict_edit_views]" value="1" ' . checked( true, (bool) Post_Views_Counter()->get_attribute( 'options', 'general', 'restrict_edit_views' ), false ) . ' /><label for="pvc-restrict-edit-views-enable">' . esc_html__( 'Enable to restrict post views editing to admins only.', 'post-views-counter' ) . '</label>
463
+ </div>';
464
+ }
465
 
466
  /**
467
  * Plugin deactivation option.
469
  public function deactivation_delete() {
470
  echo '
471
  <div id="pvc_deactivation_delete">
472
+ <input id="pvc-deactivation-delete-enable" type="checkbox" name="post_views_counter_settings_general[deactivation_delete]" value="1" ' . checked( true, (bool) Post_Views_Counter()->get_attribute( 'options', 'general', 'deactivation_delete' ), false ) . ' /><label for="pvc-deactivation-delete-enable">' . esc_html__( 'Enable to delete all plugin data on deactivation.', 'post-views-counter' ) . '</label>
 
 
 
 
 
 
 
 
 
 
 
 
473
  </div>';
474
  }
475
 
614
  $input['counter_mode'] = (isset( $input['counter_mode'], $this->modes[$input['counter_mode']] ) ? $input['counter_mode'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'counter_mode' ));
615
 
616
  // post views column
617
+ $input['post_views_column'] = (isset( $input['post_views_column'] ) ? (bool) $input['post_views_column'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'post_views_column' ));
618
 
619
  // time between counts
620
  $input['time_between_counts']['number'] = (int) (isset( $input['time_between_counts']['number'] ) ? $input['time_between_counts']['number'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'time_between_counts', 'number' ));
680
 
681
  $input['exclude_ips'] = array_unique( $ips );
682
  }
683
+
684
+ // restrict edit viewa
685
+ $input['restrict_edit_views'] = (isset( $input['restrict_edit_views'] ) ? (bool) $input['restrict_edit_views'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'restrict_edit_views' ));
686
 
687
  // deactivation delete
688
+ $input['deactivation_delete'] = (isset( $input['deactivation_delete'] ) ? (bool) $input['deactivation_delete'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'deactivation_delete' ));
689
  } elseif ( isset( $_POST['save_pvc_display'] ) ) {
690
 
691
  // post views label
702
  $input['display_style']['text'] = (isset( $input['display_style']['text'] ) ? true : false);
703
 
704
  // link to post
705
+ $input['link_to_post'] = (isset( $input['link_to_post'] ) ? (bool) $input['link_to_post'] : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'link_to_post' ));
706
 
707
  // icon class
708
  $input['icon_class'] = (isset( $input['icon_class'] ) ? trim( $input['icon_class'] ) : Post_Views_Counter()->get_attribute( 'defaults', 'general', 'icon_class' ));
languages/post-views-counter-pl_PL.mo CHANGED
Binary file
languages/post-views-counter-pl_PL.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Views Counter\n"
4
- "POT-Creation-Date: 2015-04-08 18:59+0100\n"
5
- "PO-Revision-Date: 2015-04-08 19:00+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl_PL\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
  "esc_html__;esc_html_e\n"
15
  "X-Poedit-Basepath: .\n"
@@ -17,272 +17,268 @@ msgstr ""
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
- #: ../includes/columns.php:45 ../includes/columns.php:183
21
- #: ../includes/columns.php:190
22
  msgid "Post Views"
23
  msgstr "Odwiedziny"
24
 
25
- #: ../includes/columns.php:49
26
  msgid "Edit"
27
  msgstr "Edytuj"
28
 
29
- #: ../includes/columns.php:53
30
  msgid "Adjust the views count for this post."
31
  msgstr "Zmodyfikuj liczbę odsłon tego wpisu."
32
 
33
- #: ../includes/columns.php:57
34
  msgid "OK"
35
  msgstr "OK"
36
 
37
- #: ../includes/columns.php:58
38
  msgid "Cancel"
39
  msgstr "Anuluj"
40
 
41
- #: ../includes/cron.php:51
42
  msgid "Post Views Counter reset daily counts interval"
43
  msgstr ""
44
  "Odstęp czasu po jakim resetowane będą dzienne dane o liczbie odwiedzin."
45
 
46
- #: ../includes/cron.php:56
47
  msgid "Post Views Counter cache flush interval"
48
  msgstr "Czas czyszczenia danych o odsłonach z cache"
49
 
50
- #: ../includes/functions.php:125
51
  msgid "No Posts"
52
  msgstr "Brak wpisów"
53
 
54
  #: ../includes/settings.php:36
55
- msgid "Enable"
56
- msgstr "Włącz"
57
-
58
- #: ../includes/settings.php:37
59
- msgid "Disable"
60
- msgstr "Wyłącz"
61
-
62
- #: ../includes/settings.php:41
63
  msgid "PHP"
64
  msgstr "PHP"
65
 
66
- #: ../includes/settings.php:42
67
  msgid "JavaScript"
68
  msgstr "JavaScript"
69
 
70
- #: ../includes/settings.php:46
71
  msgid "minutes"
72
  msgstr "minuty"
73
 
74
- #: ../includes/settings.php:47
75
  msgid "hours"
76
  msgstr "godziny"
77
 
78
- #: ../includes/settings.php:48
79
  msgid "days"
80
  msgstr "dni"
81
 
82
- #: ../includes/settings.php:49
83
  msgid "weeks"
84
  msgstr "tygodnie"
85
 
86
- #: ../includes/settings.php:50
87
  msgid "months"
88
  msgstr "miesiące"
89
 
90
- #: ../includes/settings.php:51
91
  msgid "years"
92
  msgstr "lata"
93
 
94
- #: ../includes/settings.php:55
95
  msgid "robots"
96
  msgstr "roboty"
97
 
98
- #: ../includes/settings.php:56
99
  msgid "logged in users"
100
  msgstr "zalogowani użytkownicy"
101
 
102
- #: ../includes/settings.php:57
103
  msgid "guests"
104
  msgstr "goście"
105
 
106
- #: ../includes/settings.php:58
107
  msgid "selected user roles"
108
  msgstr "wybrane role użytkowników"
109
 
110
- #: ../includes/settings.php:62
111
  msgid "before the content"
112
  msgstr "przed treścią"
113
 
114
- #: ../includes/settings.php:63
115
  msgid "after the content"
116
  msgstr "po treści"
117
 
118
- #: ../includes/settings.php:64
119
  msgid "manual"
120
  msgstr "ręcznie"
121
 
122
- #: ../includes/settings.php:68
123
  msgid "icon"
124
  msgstr "ikona"
125
 
126
- #: ../includes/settings.php:69
127
  msgid "label"
128
  msgstr "etykieta"
129
 
130
- #: ../includes/settings.php:74
131
  msgid "General"
132
  msgstr "Ogólne"
133
 
134
- #: ../includes/settings.php:80
135
  msgid "Display"
136
  msgstr "Wyświetlanie"
137
 
138
- #: ../includes/settings.php:135 ../includes/settings.php:136
139
- #: ../includes/settings.php:151 ../includes/settings.php:163
140
  msgid "Post Views Counter"
141
  msgstr "Licznik odwiedzin"
142
 
143
- #: ../includes/settings.php:165
144
  msgid "Need support?"
145
  msgstr "Potrzebujesz pomocy?"
146
 
147
- #: ../includes/settings.php:166
148
  msgid ""
149
  "If you are having problems with this plugin, please talk about them in the"
150
  msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
151
 
152
- #: ../includes/settings.php:166
153
  msgid "Support forum"
154
  msgstr "Forum pomocy"
155
 
156
- #: ../includes/settings.php:168
157
  msgid "Do you like this plugin?"
158
  msgstr "Lubisz tę wtyczkę?"
159
 
160
- #: ../includes/settings.php:169
161
  msgid "Rate it 5"
162
  msgstr "Oceń ją na 5"
163
 
164
- #: ../includes/settings.php:169
165
  msgid "on WordPress.org"
166
  msgstr "na WordPress.org"
167
 
168
- #: ../includes/settings.php:170
169
  msgid "Blog about it & link to the"
170
  msgstr "Napisz o niej i dodaj link"
171
 
172
- #: ../includes/settings.php:170
173
  msgid "plugin page"
174
  msgstr "do strony wtyczki"
175
 
176
- #: ../includes/settings.php:171
177
  msgid "Check out our other"
178
  msgstr "Sprawdż nasze inne"
179
 
180
- #: ../includes/settings.php:171
181
  msgid "WordPress plugins"
182
  msgstr "wtyczki do WordPressa"
183
 
184
- #: ../includes/settings.php:174
185
  msgid "Created by"
186
  msgstr "Stworzone przez"
187
 
188
- #: ../includes/settings.php:190
189
  msgid "Reset to defaults"
190
  msgstr "Resetuj do domyślnych"
191
 
192
- #: ../includes/settings.php:207
193
  msgid "General settings"
194
  msgstr "Ustawienia ogólne"
195
 
196
- #: ../includes/settings.php:208
197
  msgid "Post Types Count"
198
  msgstr "Własne typy wpisów"
199
 
200
- #: ../includes/settings.php:209
201
  msgid "Counter Mode"
202
  msgstr "Tryb pracy licznika"
203
 
204
- #: ../includes/settings.php:210
205
  msgid "Post Views Column"
206
  msgstr "Kolumna z liczbą odwiedzin"
207
 
208
- #: ../includes/settings.php:211
 
 
 
 
209
  msgid "Time Between Counts"
210
  msgstr "Czas między zliczaniem"
211
 
212
- #: ../includes/settings.php:212
213
  msgid "Reset Data Interval"
214
  msgstr "Czas resetowania danych"
215
 
216
- #: ../includes/settings.php:213
217
  msgid "Flush Object Cache Interval"
218
  msgstr "Czas czyszczenia cache"
219
 
220
- #: ../includes/settings.php:214
221
  msgid "Exclude Visitors"
222
  msgstr "Wykluczanie odwiedzających"
223
 
224
- #: ../includes/settings.php:215
225
  msgid "Exclude IPs"
226
  msgstr "Wykluczanie IP"
227
 
228
- #: ../includes/settings.php:216
229
  msgid "WP-PostViews"
230
  msgstr "WP-PostViews"
231
 
232
- #: ../includes/settings.php:217
233
  msgid "Deactivation"
234
  msgstr "Deaktywacja wtyczki"
235
 
236
- #: ../includes/settings.php:221
237
  msgid "Display settings"
238
  msgstr "Ustawienia wyświetlania"
239
 
240
- #: ../includes/settings.php:222
241
  msgid "Post Views Label"
242
  msgstr "Etykieta licznika"
243
 
244
- #: ../includes/settings.php:223
245
  msgid "Post Types Display"
246
  msgstr "Wyświetlanie licznika"
247
 
248
- #: ../includes/settings.php:224
249
  msgid "Restrict Display"
250
  msgstr "Ograniczenia wyświetlania"
251
 
252
- #: ../includes/settings.php:225
253
  msgid "Position"
254
  msgstr "Pozycja"
255
 
256
- #: ../includes/settings.php:226
257
  msgid "Display Style"
258
  msgstr "Styl wyświetlania"
259
 
260
- #: ../includes/settings.php:227
261
  msgid "Icon Class"
262
  msgstr "Klasa ikony"
263
 
264
- #: ../includes/settings.php:240
265
  msgid "Enter the label for the post views counter field."
266
  msgstr "Wpisz etykietę jaka będzie wyświetlana w liczniku odwiedzin wpisu."
267
 
268
- #: ../includes/settings.php:253
269
  msgid "Select post types"
270
  msgstr "Wybierz typy wpisów"
271
 
272
- #: ../includes/settings.php:263
273
  msgid "Select post types for which post views will be counted."
274
  msgstr "Wybierz typy wpisów dla których będzie włączone zliczanie."
275
 
276
- #: ../includes/settings.php:276 ../includes/settings.php:412
277
- #: ../includes/settings.php:569
278
  msgid "Select groups"
279
  msgstr "Wybierz grupy"
280
 
281
- #: ../includes/settings.php:286
282
  msgid "Select post types for which post views will be displayed."
283
  msgstr "Wybierz typy wpisów dla których licznik będzie wyświetlony."
284
 
285
- #: ../includes/settings.php:308
286
  msgid ""
287
  "Select the method of collecting post views data. If you are using any of the "
288
  "caching plugins select Javascript."
@@ -290,17 +286,17 @@ msgstr ""
290
  "Wybierz metodę gromadzenia danych. Jeśli używaż jakiejkolwiek wtyczki do "
291
  "cachowania wybierz Javascript."
292
 
293
- #: ../includes/settings.php:330
294
  msgid ""
295
  "Enable to display post views count column for each of the selected post "
296
  "types."
297
  msgstr "Włącz aby wyświetlić kolumnę z liczbą odsłon."
298
 
299
- #: ../includes/settings.php:353
300
  msgid "Enter the time between single user visit count."
301
  msgstr "Określ czas pomiędzy zliczaniem wizyt poszczególnego użytkownika."
302
 
303
- #: ../includes/settings.php:377
304
  msgid ""
305
  "Delete single day post views data older than specified above. Enter 0 "
306
  "(number zero) if you want to preserve your data regardless of its age."
@@ -308,7 +304,7 @@ msgstr ""
308
  "Usuwanie dziennych danych o liczbie wpisów po określonym powyżej czasie. "
309
  "Wpisz 0 jeśli chcesz przetrzymywać te dane bez ograniczeń."
310
 
311
- #: ../includes/settings.php:400
312
  msgid ""
313
  "How often to flush cached view counts from the object cache into the "
314
  "database. This feature is used only if a persistent object cache is detected "
@@ -327,47 +323,52 @@ msgstr ""
327
  "jeśli cachowanie obiektowe nie będzie dostępne lub cache zostanie "
328
  "wyczyszczony w trakcie trwania wybranego okresu."
329
 
330
- #: ../includes/settings.php:423 ../includes/settings.php:584
331
  msgid "Select user roles"
332
  msgstr "Wybierz role użytkowników"
333
 
334
- #: ../includes/settings.php:434
335
  msgid "Select the type of visitors to be excluded from post views count."
336
  msgstr "Wybierz typy użytkowników wyłączonych z działania licznika."
337
 
338
- #: ../includes/settings.php:450 ../includes/settings.php:459
339
  msgid "Remove"
340
  msgstr "Usuń"
341
 
342
- #: ../includes/settings.php:459
343
  msgid "Add new"
344
  msgstr "Dodaj nowy"
345
 
346
- #: ../includes/settings.php:459
347
  msgid "Add my current IP"
348
  msgstr "Dodaj mój aktualny IP"
349
 
350
- #: ../includes/settings.php:461
351
  msgid "Enter the IP addresses to be excluded from post views count."
352
  msgstr "Wpisz adresy IP, któe mają być wyłączone z działania licznika."
353
 
354
- #: ../includes/settings.php:473
355
  msgid "Import"
356
  msgstr "Importuj"
357
 
358
- #: ../includes/settings.php:475
359
  msgid "Import post views data from WP-PostViews plugin."
360
  msgstr "Importuj dane o liczbie odwiedzin z wtyczki WP-PostViews."
361
 
362
- #: ../includes/settings.php:476
363
  msgid "Override existing Post Views Counter data."
364
  msgstr "Nadpisz istniejące dane Licznika odwiedzin."
365
 
366
- #: ../includes/settings.php:498
 
 
 
 
 
367
  msgid "Enable to delete all plugin data on deactivation."
368
  msgstr "Włącz aby usunąć wszystkie dane wtyczki podczas deaktywacji"
369
 
370
- #: ../includes/settings.php:520
371
  msgid ""
372
  "Select where would you like to display the post views counter. Use [post-"
373
  "views] shortcode for manual display."
@@ -375,11 +376,11 @@ msgstr ""
375
  "Wybierz w którym miejscu chcesz wyświetlać licznik odwiedzin. Użyj skrótu "
376
  "[post-views] aby wyświetlić licznik ręcznie."
377
 
378
- #: ../includes/settings.php:542
379
  msgid "Choose how to display the post views counter."
380
  msgstr "Wybierz w jaki sposób chcesz wyświetlać licznik."
381
 
382
- #: ../includes/settings.php:556
383
  #, php-format
384
  msgid ""
385
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
@@ -388,33 +389,29 @@ msgstr ""
388
  "Wpisz klasę CSS ikony. Każda z ikond typu <a href=\"%s\" target=\"_blank"
389
  "\">Dashicons</a> może być tutaj zastosowana."
390
 
391
- #: ../includes/settings.php:595
392
  msgid "Use it to hide the post views counter from selected type of visitors."
393
  msgstr ""
394
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych typów "
395
  "użytkowników."
396
 
397
- #: ../includes/settings.php:626
398
  msgid "WP-PostViews data imported succesfully."
399
  msgstr "Dane z wtyczki WP-PostViews zostały zaimportowane pomyślnie."
400
 
401
- #: ../includes/settings.php:628
402
  msgid "There was no data to import."
403
  msgstr "Niestety, nie znaleziono danych do zaimportowania."
404
 
405
- #: ../includes/settings.php:786
406
  msgid "General settings restored to defaults."
407
  msgstr "Ustawienia zostały przywrócone do domyślnych."
408
 
409
- #: ../includes/settings.php:790
410
  msgid "Display settings restored to defaults."
411
  msgstr "Ustawienia wyświetlania została przywrócone do domyślnych."
412
 
413
- #: ../includes/settings.php:810
414
- msgid "Support"
415
- msgstr "Forum pomocy"
416
-
417
- #: ../includes/widgets.php:32 ../includes/widgets.php:43
418
  msgid "Most Viewed Posts"
419
  msgstr "Najczęściej oglądane wpisy"
420
 
@@ -470,14 +467,24 @@ msgstr "WYświetlanie miniatury?"
470
  msgid "Thumbnail size"
471
  msgstr "WIelkość miniatury"
472
 
473
- #: ../post-views-counter.php:297
474
  msgid "Are you sure you want to reset these settings to defaults?"
475
  msgstr "Czy jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
476
 
477
- #: ../post-views-counter.php:330
 
 
 
 
478
  msgid "Settings"
479
  msgstr "Ustawienia"
480
 
 
 
 
 
 
 
481
  #~ msgid "Reset Data"
482
  #~ msgstr "Resetowanie danych"
483
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Views Counter\n"
4
+ "POT-Creation-Date: 2015-05-27 14:35+0100\n"
5
+ "PO-Revision-Date: 2015-05-27 14:36+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl_PL\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
  "esc_html__;esc_html_e\n"
15
  "X-Poedit-Basepath: .\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../includes/columns.php:49 ../includes/columns.php:193
21
+ #: ../includes/columns.php:199
22
  msgid "Post Views"
23
  msgstr "Odwiedziny"
24
 
25
+ #: ../includes/columns.php:58
26
  msgid "Edit"
27
  msgstr "Edytuj"
28
 
29
+ #: ../includes/columns.php:62
30
  msgid "Adjust the views count for this post."
31
  msgstr "Zmodyfikuj liczbę odsłon tego wpisu."
32
 
33
+ #: ../includes/columns.php:66
34
  msgid "OK"
35
  msgstr "OK"
36
 
37
+ #: ../includes/columns.php:67
38
  msgid "Cancel"
39
  msgstr "Anuluj"
40
 
41
+ #: ../includes/cron.php:49
42
  msgid "Post Views Counter reset daily counts interval"
43
  msgstr ""
44
  "Odstęp czasu po jakim resetowane będą dzienne dane o liczbie odwiedzin."
45
 
46
+ #: ../includes/cron.php:54
47
  msgid "Post Views Counter cache flush interval"
48
  msgstr "Czas czyszczenia danych o odsłonach z cache"
49
 
50
+ #: ../includes/functions.php:127
51
  msgid "No Posts"
52
  msgstr "Brak wpisów"
53
 
54
  #: ../includes/settings.php:36
 
 
 
 
 
 
 
 
55
  msgid "PHP"
56
  msgstr "PHP"
57
 
58
+ #: ../includes/settings.php:37
59
  msgid "JavaScript"
60
  msgstr "JavaScript"
61
 
62
+ #: ../includes/settings.php:41
63
  msgid "minutes"
64
  msgstr "minuty"
65
 
66
+ #: ../includes/settings.php:42
67
  msgid "hours"
68
  msgstr "godziny"
69
 
70
+ #: ../includes/settings.php:43
71
  msgid "days"
72
  msgstr "dni"
73
 
74
+ #: ../includes/settings.php:44
75
  msgid "weeks"
76
  msgstr "tygodnie"
77
 
78
+ #: ../includes/settings.php:45
79
  msgid "months"
80
  msgstr "miesiące"
81
 
82
+ #: ../includes/settings.php:46
83
  msgid "years"
84
  msgstr "lata"
85
 
86
+ #: ../includes/settings.php:50
87
  msgid "robots"
88
  msgstr "roboty"
89
 
90
+ #: ../includes/settings.php:51
91
  msgid "logged in users"
92
  msgstr "zalogowani użytkownicy"
93
 
94
+ #: ../includes/settings.php:52
95
  msgid "guests"
96
  msgstr "goście"
97
 
98
+ #: ../includes/settings.php:53
99
  msgid "selected user roles"
100
  msgstr "wybrane role użytkowników"
101
 
102
+ #: ../includes/settings.php:57
103
  msgid "before the content"
104
  msgstr "przed treścią"
105
 
106
+ #: ../includes/settings.php:58
107
  msgid "after the content"
108
  msgstr "po treści"
109
 
110
+ #: ../includes/settings.php:59
111
  msgid "manual"
112
  msgstr "ręcznie"
113
 
114
+ #: ../includes/settings.php:63
115
  msgid "icon"
116
  msgstr "ikona"
117
 
118
+ #: ../includes/settings.php:64
119
  msgid "label"
120
  msgstr "etykieta"
121
 
122
+ #: ../includes/settings.php:69
123
  msgid "General"
124
  msgstr "Ogólne"
125
 
126
+ #: ../includes/settings.php:75
127
  msgid "Display"
128
  msgstr "Wyświetlanie"
129
 
130
+ #: ../includes/settings.php:130 ../includes/settings.php:142
131
+ #: ../includes/settings.php:154
132
  msgid "Post Views Counter"
133
  msgstr "Licznik odwiedzin"
134
 
135
+ #: ../includes/settings.php:156
136
  msgid "Need support?"
137
  msgstr "Potrzebujesz pomocy?"
138
 
139
+ #: ../includes/settings.php:157
140
  msgid ""
141
  "If you are having problems with this plugin, please talk about them in the"
142
  msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
143
 
144
+ #: ../includes/settings.php:157
145
  msgid "Support forum"
146
  msgstr "Forum pomocy"
147
 
148
+ #: ../includes/settings.php:159
149
  msgid "Do you like this plugin?"
150
  msgstr "Lubisz tę wtyczkę?"
151
 
152
+ #: ../includes/settings.php:160
153
  msgid "Rate it 5"
154
  msgstr "Oceń ją na 5"
155
 
156
+ #: ../includes/settings.php:160
157
  msgid "on WordPress.org"
158
  msgstr "na WordPress.org"
159
 
160
+ #: ../includes/settings.php:161
161
  msgid "Blog about it & link to the"
162
  msgstr "Napisz o niej i dodaj link"
163
 
164
+ #: ../includes/settings.php:161
165
  msgid "plugin page"
166
  msgstr "do strony wtyczki"
167
 
168
+ #: ../includes/settings.php:162
169
  msgid "Check out our other"
170
  msgstr "Sprawdż nasze inne"
171
 
172
+ #: ../includes/settings.php:162
173
  msgid "WordPress plugins"
174
  msgstr "wtyczki do WordPressa"
175
 
176
+ #: ../includes/settings.php:165
177
  msgid "Created by"
178
  msgstr "Stworzone przez"
179
 
180
+ #: ../includes/settings.php:181
181
  msgid "Reset to defaults"
182
  msgstr "Resetuj do domyślnych"
183
 
184
+ #: ../includes/settings.php:197
185
  msgid "General settings"
186
  msgstr "Ustawienia ogólne"
187
 
188
+ #: ../includes/settings.php:198
189
  msgid "Post Types Count"
190
  msgstr "Własne typy wpisów"
191
 
192
+ #: ../includes/settings.php:199
193
  msgid "Counter Mode"
194
  msgstr "Tryb pracy licznika"
195
 
196
+ #: ../includes/settings.php:200
197
  msgid "Post Views Column"
198
  msgstr "Kolumna z liczbą odwiedzin"
199
 
200
+ #: ../includes/settings.php:201
201
+ msgid "Restrict Edit"
202
+ msgstr "Ograniczenie edycji"
203
+
204
+ #: ../includes/settings.php:202
205
  msgid "Time Between Counts"
206
  msgstr "Czas między zliczaniem"
207
 
208
+ #: ../includes/settings.php:203
209
  msgid "Reset Data Interval"
210
  msgstr "Czas resetowania danych"
211
 
212
+ #: ../includes/settings.php:204
213
  msgid "Flush Object Cache Interval"
214
  msgstr "Czas czyszczenia cache"
215
 
216
+ #: ../includes/settings.php:205
217
  msgid "Exclude Visitors"
218
  msgstr "Wykluczanie odwiedzających"
219
 
220
+ #: ../includes/settings.php:206
221
  msgid "Exclude IPs"
222
  msgstr "Wykluczanie IP"
223
 
224
+ #: ../includes/settings.php:207
225
  msgid "WP-PostViews"
226
  msgstr "WP-PostViews"
227
 
228
+ #: ../includes/settings.php:208
229
  msgid "Deactivation"
230
  msgstr "Deaktywacja wtyczki"
231
 
232
+ #: ../includes/settings.php:212
233
  msgid "Display settings"
234
  msgstr "Ustawienia wyświetlania"
235
 
236
+ #: ../includes/settings.php:213
237
  msgid "Post Views Label"
238
  msgstr "Etykieta licznika"
239
 
240
+ #: ../includes/settings.php:214
241
  msgid "Post Types Display"
242
  msgstr "Wyświetlanie licznika"
243
 
244
+ #: ../includes/settings.php:215
245
  msgid "Restrict Display"
246
  msgstr "Ograniczenia wyświetlania"
247
 
248
+ #: ../includes/settings.php:216
249
  msgid "Position"
250
  msgstr "Pozycja"
251
 
252
+ #: ../includes/settings.php:217
253
  msgid "Display Style"
254
  msgstr "Styl wyświetlania"
255
 
256
+ #: ../includes/settings.php:218
257
  msgid "Icon Class"
258
  msgstr "Klasa ikony"
259
 
260
+ #: ../includes/settings.php:230
261
  msgid "Enter the label for the post views counter field."
262
  msgstr "Wpisz etykietę jaka będzie wyświetlana w liczniku odwiedzin wpisu."
263
 
264
+ #: ../includes/settings.php:242
265
  msgid "Select post types"
266
  msgstr "Wybierz typy wpisów"
267
 
268
+ #: ../includes/settings.php:252
269
  msgid "Select post types for which post views will be counted."
270
  msgstr "Wybierz typy wpisów dla których będzie włączone zliczanie."
271
 
272
+ #: ../includes/settings.php:264 ../includes/settings.php:387
273
+ #: ../includes/settings.php:541
274
  msgid "Select groups"
275
  msgstr "Wybierz grupy"
276
 
277
+ #: ../includes/settings.php:274
278
  msgid "Select post types for which post views will be displayed."
279
  msgstr "Wybierz typy wpisów dla których licznik będzie wyświetlony."
280
 
281
+ #: ../includes/settings.php:296
282
  msgid ""
283
  "Select the method of collecting post views data. If you are using any of the "
284
  "caching plugins select Javascript."
286
  "Wybierz metodę gromadzenia danych. Jeśli używaż jakiejkolwiek wtyczki do "
287
  "cachowania wybierz Javascript."
288
 
289
+ #: ../includes/settings.php:307
290
  msgid ""
291
  "Enable to display post views count column for each of the selected post "
292
  "types."
293
  msgstr "Włącz aby wyświetlić kolumnę z liczbą odsłon."
294
 
295
+ #: ../includes/settings.php:329
296
  msgid "Enter the time between single user visit count."
297
  msgstr "Określ czas pomiędzy zliczaniem wizyt poszczególnego użytkownika."
298
 
299
+ #: ../includes/settings.php:352
300
  msgid ""
301
  "Delete single day post views data older than specified above. Enter 0 "
302
  "(number zero) if you want to preserve your data regardless of its age."
304
  "Usuwanie dziennych danych o liczbie wpisów po określonym powyżej czasie. "
305
  "Wpisz 0 jeśli chcesz przetrzymywać te dane bez ograniczeń."
306
 
307
+ #: ../includes/settings.php:375
308
  msgid ""
309
  "How often to flush cached view counts from the object cache into the "
310
  "database. This feature is used only if a persistent object cache is detected "
323
  "jeśli cachowanie obiektowe nie będzie dostępne lub cache zostanie "
324
  "wyczyszczony w trakcie trwania wybranego okresu."
325
 
326
+ #: ../includes/settings.php:398 ../includes/settings.php:556
327
  msgid "Select user roles"
328
  msgstr "Wybierz role użytkowników"
329
 
330
+ #: ../includes/settings.php:409
331
  msgid "Select the type of visitors to be excluded from post views count."
332
  msgstr "Wybierz typy użytkowników wyłączonych z działania licznika."
333
 
334
+ #: ../includes/settings.php:425 ../includes/settings.php:434
335
  msgid "Remove"
336
  msgstr "Usuń"
337
 
338
+ #: ../includes/settings.php:434
339
  msgid "Add new"
340
  msgstr "Dodaj nowy"
341
 
342
+ #: ../includes/settings.php:434
343
  msgid "Add my current IP"
344
  msgstr "Dodaj mój aktualny IP"
345
 
346
+ #: ../includes/settings.php:436
347
  msgid "Enter the IP addresses to be excluded from post views count."
348
  msgstr "Wpisz adresy IP, któe mają być wyłączone z działania licznika."
349
 
350
+ #: ../includes/settings.php:448
351
  msgid "Import"
352
  msgstr "Importuj"
353
 
354
+ #: ../includes/settings.php:450
355
  msgid "Import post views data from WP-PostViews plugin."
356
  msgstr "Importuj dane o liczbie odwiedzin z wtyczki WP-PostViews."
357
 
358
+ #: ../includes/settings.php:451
359
  msgid "Override existing Post Views Counter data."
360
  msgstr "Nadpisz istniejące dane Licznika odwiedzin."
361
 
362
+ #: ../includes/settings.php:462
363
+ msgid "Enable to restrict post views editing to admins only."
364
+ msgstr ""
365
+ "Włącz aby ograniczyć możliwość edycji liczby wpisów do administratorów."
366
+
367
+ #: ../includes/settings.php:472
368
  msgid "Enable to delete all plugin data on deactivation."
369
  msgstr "Włącz aby usunąć wszystkie dane wtyczki podczas deaktywacji"
370
 
371
+ #: ../includes/settings.php:493
372
  msgid ""
373
  "Select where would you like to display the post views counter. Use [post-"
374
  "views] shortcode for manual display."
376
  "Wybierz w którym miejscu chcesz wyświetlać licznik odwiedzin. Użyj skrótu "
377
  "[post-views] aby wyświetlić licznik ręcznie."
378
 
379
+ #: ../includes/settings.php:515
380
  msgid "Choose how to display the post views counter."
381
  msgstr "Wybierz w jaki sposób chcesz wyświetlać licznik."
382
 
383
+ #: ../includes/settings.php:529
384
  #, php-format
385
  msgid ""
386
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
389
  "Wpisz klasę CSS ikony. Każda z ikond typu <a href=\"%s\" target=\"_blank"
390
  "\">Dashicons</a> może być tutaj zastosowana."
391
 
392
+ #: ../includes/settings.php:567
393
  msgid "Use it to hide the post views counter from selected type of visitors."
394
  msgstr ""
395
  "Użyj tego aby ograniczyć wyświetlanie licznika do określonych typów "
396
  "użytkowników."
397
 
398
+ #: ../includes/settings.php:595
399
  msgid "WP-PostViews data imported succesfully."
400
  msgstr "Dane z wtyczki WP-PostViews zostały zaimportowane pomyślnie."
401
 
402
+ #: ../includes/settings.php:597
403
  msgid "There was no data to import."
404
  msgstr "Niestety, nie znaleziono danych do zaimportowania."
405
 
406
+ #: ../includes/settings.php:753
407
  msgid "General settings restored to defaults."
408
  msgstr "Ustawienia zostały przywrócone do domyślnych."
409
 
410
+ #: ../includes/settings.php:757
411
  msgid "Display settings restored to defaults."
412
  msgstr "Ustawienia wyświetlania została przywrócone do domyślnych."
413
 
414
+ #: ../includes/widgets.php:33 ../includes/widgets.php:43
 
 
 
 
415
  msgid "Most Viewed Posts"
416
  msgstr "Najczęściej oglądane wpisy"
417
 
467
  msgid "Thumbnail size"
468
  msgstr "WIelkość miniatury"
469
 
470
+ #: ../post-views-counter.php:281
471
  msgid "Are you sure you want to reset these settings to defaults?"
472
  msgstr "Czy jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
473
 
474
+ #: ../post-views-counter.php:313
475
+ msgid "Support"
476
+ msgstr "Forum pomocy"
477
+
478
+ #: ../post-views-counter.php:332
479
  msgid "Settings"
480
  msgstr "Ustawienia"
481
 
482
+ #~ msgid "Enable"
483
+ #~ msgstr "Włącz"
484
+
485
+ #~ msgid "Disable"
486
+ #~ msgstr "Wyłącz"
487
+
488
  #~ msgid "Reset Data"
489
  #~ msgstr "Resetowanie danych"
490
 
languages/post-views-counter.pot CHANGED
@@ -1,7 +1,8 @@
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Views Counter\n"
4
- "POT-Creation-Date: 2015-04-08 18:59+0100\n"
5
  "PO-Revision-Date: 2015-04-08 18:59+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
@@ -9,7 +10,7 @@ msgstr ""
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
  "esc_html__;esc_html_e\n"
15
  "X-Poedit-Basepath: .\n"
@@ -17,293 +18,289 @@ msgstr ""
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
- #: ../includes/columns.php:45 ../includes/columns.php:183
21
- #: ../includes/columns.php:190
22
  msgid "Post Views"
23
  msgstr ""
24
 
25
- #: ../includes/columns.php:49
26
  msgid "Edit"
27
  msgstr ""
28
 
29
- #: ../includes/columns.php:53
30
  msgid "Adjust the views count for this post."
31
  msgstr ""
32
 
33
- #: ../includes/columns.php:57
34
  msgid "OK"
35
  msgstr ""
36
 
37
- #: ../includes/columns.php:58
38
  msgid "Cancel"
39
  msgstr ""
40
 
41
- #: ../includes/cron.php:51
42
  msgid "Post Views Counter reset daily counts interval"
43
  msgstr ""
44
 
45
- #: ../includes/cron.php:56
46
  msgid "Post Views Counter cache flush interval"
47
  msgstr ""
48
 
49
- #: ../includes/functions.php:125
50
  msgid "No Posts"
51
  msgstr ""
52
 
53
  #: ../includes/settings.php:36
54
- msgid "Enable"
55
- msgstr ""
56
-
57
- #: ../includes/settings.php:37
58
- msgid "Disable"
59
- msgstr ""
60
-
61
- #: ../includes/settings.php:41
62
  msgid "PHP"
63
  msgstr ""
64
 
65
- #: ../includes/settings.php:42
66
  msgid "JavaScript"
67
  msgstr ""
68
 
69
- #: ../includes/settings.php:46
70
  msgid "minutes"
71
  msgstr ""
72
 
73
- #: ../includes/settings.php:47
74
  msgid "hours"
75
  msgstr ""
76
 
77
- #: ../includes/settings.php:48
78
  msgid "days"
79
  msgstr ""
80
 
81
- #: ../includes/settings.php:49
82
  msgid "weeks"
83
  msgstr ""
84
 
85
- #: ../includes/settings.php:50
86
  msgid "months"
87
  msgstr ""
88
 
89
- #: ../includes/settings.php:51
90
  msgid "years"
91
  msgstr ""
92
 
93
- #: ../includes/settings.php:55
94
  msgid "robots"
95
  msgstr ""
96
 
97
- #: ../includes/settings.php:56
98
  msgid "logged in users"
99
  msgstr ""
100
 
101
- #: ../includes/settings.php:57
102
  msgid "guests"
103
  msgstr ""
104
 
105
- #: ../includes/settings.php:58
106
  msgid "selected user roles"
107
  msgstr ""
108
 
109
- #: ../includes/settings.php:62
110
  msgid "before the content"
111
  msgstr ""
112
 
113
- #: ../includes/settings.php:63
114
  msgid "after the content"
115
  msgstr ""
116
 
117
- #: ../includes/settings.php:64
118
  msgid "manual"
119
  msgstr ""
120
 
121
- #: ../includes/settings.php:68
122
  msgid "icon"
123
  msgstr ""
124
 
125
- #: ../includes/settings.php:69
126
  msgid "label"
127
  msgstr ""
128
 
129
- #: ../includes/settings.php:74
130
  msgid "General"
131
  msgstr ""
132
 
133
- #: ../includes/settings.php:80
134
  msgid "Display"
135
  msgstr ""
136
 
137
- #: ../includes/settings.php:135 ../includes/settings.php:136
138
- #: ../includes/settings.php:151 ../includes/settings.php:163
139
  msgid "Post Views Counter"
140
  msgstr ""
141
 
142
- #: ../includes/settings.php:165
143
  msgid "Need support?"
144
  msgstr ""
145
 
146
- #: ../includes/settings.php:166
147
  msgid ""
148
  "If you are having problems with this plugin, please talk about them in the"
149
  msgstr ""
150
 
151
- #: ../includes/settings.php:166
152
  msgid "Support forum"
153
  msgstr ""
154
 
155
- #: ../includes/settings.php:168
156
  msgid "Do you like this plugin?"
157
  msgstr ""
158
 
159
- #: ../includes/settings.php:169
160
  msgid "Rate it 5"
161
  msgstr ""
162
 
163
- #: ../includes/settings.php:169
164
  msgid "on WordPress.org"
165
  msgstr ""
166
 
167
- #: ../includes/settings.php:170
168
  msgid "Blog about it & link to the"
169
  msgstr ""
170
 
171
- #: ../includes/settings.php:170
172
  msgid "plugin page"
173
  msgstr ""
174
 
175
- #: ../includes/settings.php:171
176
  msgid "Check out our other"
177
  msgstr ""
178
 
179
- #: ../includes/settings.php:171
180
  msgid "WordPress plugins"
181
  msgstr ""
182
 
183
- #: ../includes/settings.php:174
184
  msgid "Created by"
185
  msgstr ""
186
 
187
- #: ../includes/settings.php:190
188
  msgid "Reset to defaults"
189
  msgstr ""
190
 
191
- #: ../includes/settings.php:207
192
  msgid "General settings"
193
  msgstr ""
194
 
195
- #: ../includes/settings.php:208
196
  msgid "Post Types Count"
197
  msgstr ""
198
 
199
- #: ../includes/settings.php:209
200
  msgid "Counter Mode"
201
  msgstr ""
202
 
203
- #: ../includes/settings.php:210
204
  msgid "Post Views Column"
205
  msgstr ""
206
 
207
- #: ../includes/settings.php:211
 
 
 
 
208
  msgid "Time Between Counts"
209
  msgstr ""
210
 
211
- #: ../includes/settings.php:212
212
  msgid "Reset Data Interval"
213
  msgstr ""
214
 
215
- #: ../includes/settings.php:213
216
  msgid "Flush Object Cache Interval"
217
  msgstr ""
218
 
219
- #: ../includes/settings.php:214
220
  msgid "Exclude Visitors"
221
  msgstr ""
222
 
223
- #: ../includes/settings.php:215
224
  msgid "Exclude IPs"
225
  msgstr ""
226
 
227
- #: ../includes/settings.php:216
228
  msgid "WP-PostViews"
229
  msgstr ""
230
 
231
- #: ../includes/settings.php:217
232
  msgid "Deactivation"
233
  msgstr ""
234
 
235
- #: ../includes/settings.php:221
236
  msgid "Display settings"
237
  msgstr ""
238
 
239
- #: ../includes/settings.php:222
240
  msgid "Post Views Label"
241
  msgstr ""
242
 
243
- #: ../includes/settings.php:223
244
  msgid "Post Types Display"
245
  msgstr ""
246
 
247
- #: ../includes/settings.php:224
248
  msgid "Restrict Display"
249
  msgstr ""
250
 
251
- #: ../includes/settings.php:225
252
  msgid "Position"
253
  msgstr ""
254
 
255
- #: ../includes/settings.php:226
256
  msgid "Display Style"
257
  msgstr ""
258
 
259
- #: ../includes/settings.php:227
260
  msgid "Icon Class"
261
  msgstr ""
262
 
263
- #: ../includes/settings.php:240
264
  msgid "Enter the label for the post views counter field."
265
  msgstr ""
266
 
267
- #: ../includes/settings.php:253
268
  msgid "Select post types"
269
  msgstr ""
270
 
271
- #: ../includes/settings.php:263
272
  msgid "Select post types for which post views will be counted."
273
  msgstr ""
274
 
275
- #: ../includes/settings.php:276 ../includes/settings.php:412
276
- #: ../includes/settings.php:569
277
  msgid "Select groups"
278
  msgstr ""
279
 
280
- #: ../includes/settings.php:286
281
  msgid "Select post types for which post views will be displayed."
282
  msgstr ""
283
 
284
- #: ../includes/settings.php:308
285
  msgid ""
286
  "Select the method of collecting post views data. If you are using any of the "
287
  "caching plugins select Javascript."
288
  msgstr ""
289
 
290
- #: ../includes/settings.php:330
291
  msgid ""
292
  "Enable to display post views count column for each of the selected post "
293
  "types."
294
  msgstr ""
295
 
296
- #: ../includes/settings.php:353
297
  msgid "Enter the time between single user visit count."
298
  msgstr ""
299
 
300
- #: ../includes/settings.php:377
301
  msgid ""
302
  "Delete single day post views data older than specified above. Enter 0 "
303
  "(number zero) if you want to preserve your data regardless of its age."
304
  msgstr ""
305
 
306
- #: ../includes/settings.php:400
307
  msgid ""
308
  "How often to flush cached view counts from the object cache into the "
309
  "database. This feature is used only if a persistent object cache is detected "
@@ -315,88 +312,88 @@ msgid ""
315
  "interval."
316
  msgstr ""
317
 
318
- #: ../includes/settings.php:423 ../includes/settings.php:584
319
  msgid "Select user roles"
320
  msgstr ""
321
 
322
- #: ../includes/settings.php:434
323
  msgid "Select the type of visitors to be excluded from post views count."
324
  msgstr ""
325
 
326
- #: ../includes/settings.php:450 ../includes/settings.php:459
327
  msgid "Remove"
328
  msgstr ""
329
 
330
- #: ../includes/settings.php:459
331
  msgid "Add new"
332
  msgstr ""
333
 
334
- #: ../includes/settings.php:459
335
  msgid "Add my current IP"
336
  msgstr ""
337
 
338
- #: ../includes/settings.php:461
339
  msgid "Enter the IP addresses to be excluded from post views count."
340
  msgstr ""
341
 
342
- #: ../includes/settings.php:473
343
  msgid "Import"
344
  msgstr ""
345
 
346
- #: ../includes/settings.php:475
347
  msgid "Import post views data from WP-PostViews plugin."
348
  msgstr ""
349
 
350
- #: ../includes/settings.php:476
351
  msgid "Override existing Post Views Counter data."
352
  msgstr ""
353
 
354
- #: ../includes/settings.php:498
 
 
 
 
355
  msgid "Enable to delete all plugin data on deactivation."
356
  msgstr ""
357
 
358
- #: ../includes/settings.php:520
359
  msgid ""
360
  "Select where would you like to display the post views counter. Use [post-"
361
  "views] shortcode for manual display."
362
  msgstr ""
363
 
364
- #: ../includes/settings.php:542
365
  msgid "Choose how to display the post views counter."
366
  msgstr ""
367
 
368
- #: ../includes/settings.php:556
369
  #, php-format
370
  msgid ""
371
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
372
  "\">Dashicons</a> classes are available."
373
  msgstr ""
374
 
375
- #: ../includes/settings.php:595
376
  msgid "Use it to hide the post views counter from selected type of visitors."
377
  msgstr ""
378
 
379
- #: ../includes/settings.php:626
380
  msgid "WP-PostViews data imported succesfully."
381
  msgstr ""
382
 
383
- #: ../includes/settings.php:628
384
  msgid "There was no data to import."
385
  msgstr ""
386
 
387
- #: ../includes/settings.php:786
388
  msgid "General settings restored to defaults."
389
  msgstr ""
390
 
391
- #: ../includes/settings.php:790
392
  msgid "Display settings restored to defaults."
393
  msgstr ""
394
 
395
- #: ../includes/settings.php:810
396
- msgid "Support"
397
- msgstr ""
398
-
399
- #: ../includes/widgets.php:32 ../includes/widgets.php:43
400
  msgid "Most Viewed Posts"
401
  msgstr ""
402
 
@@ -452,10 +449,14 @@ msgstr ""
452
  msgid "Thumbnail size"
453
  msgstr ""
454
 
455
- #: ../post-views-counter.php:297
456
  msgid "Are you sure you want to reset these settings to defaults?"
457
  msgstr ""
458
 
459
- #: ../post-views-counter.php:330
 
 
 
 
460
  msgid "Settings"
461
  msgstr ""
1
+ #, fuzzy
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Post Views Counter\n"
5
+ "POT-Creation-Date: 2015-05-27 14:35+0100\n"
6
  "PO-Revision-Date: 2015-04-08 18:59+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8\n"
14
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
15
  "esc_html__;esc_html_e\n"
16
  "X-Poedit-Basepath: .\n"
18
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
+ #: ../includes/columns.php:49 ../includes/columns.php:193
22
+ #: ../includes/columns.php:199
23
  msgid "Post Views"
24
  msgstr ""
25
 
26
+ #: ../includes/columns.php:58
27
  msgid "Edit"
28
  msgstr ""
29
 
30
+ #: ../includes/columns.php:62
31
  msgid "Adjust the views count for this post."
32
  msgstr ""
33
 
34
+ #: ../includes/columns.php:66
35
  msgid "OK"
36
  msgstr ""
37
 
38
+ #: ../includes/columns.php:67
39
  msgid "Cancel"
40
  msgstr ""
41
 
42
+ #: ../includes/cron.php:49
43
  msgid "Post Views Counter reset daily counts interval"
44
  msgstr ""
45
 
46
+ #: ../includes/cron.php:54
47
  msgid "Post Views Counter cache flush interval"
48
  msgstr ""
49
 
50
+ #: ../includes/functions.php:127
51
  msgid "No Posts"
52
  msgstr ""
53
 
54
  #: ../includes/settings.php:36
 
 
 
 
 
 
 
 
55
  msgid "PHP"
56
  msgstr ""
57
 
58
+ #: ../includes/settings.php:37
59
  msgid "JavaScript"
60
  msgstr ""
61
 
62
+ #: ../includes/settings.php:41
63
  msgid "minutes"
64
  msgstr ""
65
 
66
+ #: ../includes/settings.php:42
67
  msgid "hours"
68
  msgstr ""
69
 
70
+ #: ../includes/settings.php:43
71
  msgid "days"
72
  msgstr ""
73
 
74
+ #: ../includes/settings.php:44
75
  msgid "weeks"
76
  msgstr ""
77
 
78
+ #: ../includes/settings.php:45
79
  msgid "months"
80
  msgstr ""
81
 
82
+ #: ../includes/settings.php:46
83
  msgid "years"
84
  msgstr ""
85
 
86
+ #: ../includes/settings.php:50
87
  msgid "robots"
88
  msgstr ""
89
 
90
+ #: ../includes/settings.php:51
91
  msgid "logged in users"
92
  msgstr ""
93
 
94
+ #: ../includes/settings.php:52
95
  msgid "guests"
96
  msgstr ""
97
 
98
+ #: ../includes/settings.php:53
99
  msgid "selected user roles"
100
  msgstr ""
101
 
102
+ #: ../includes/settings.php:57
103
  msgid "before the content"
104
  msgstr ""
105
 
106
+ #: ../includes/settings.php:58
107
  msgid "after the content"
108
  msgstr ""
109
 
110
+ #: ../includes/settings.php:59
111
  msgid "manual"
112
  msgstr ""
113
 
114
+ #: ../includes/settings.php:63
115
  msgid "icon"
116
  msgstr ""
117
 
118
+ #: ../includes/settings.php:64
119
  msgid "label"
120
  msgstr ""
121
 
122
+ #: ../includes/settings.php:69
123
  msgid "General"
124
  msgstr ""
125
 
126
+ #: ../includes/settings.php:75
127
  msgid "Display"
128
  msgstr ""
129
 
130
+ #: ../includes/settings.php:130 ../includes/settings.php:142
131
+ #: ../includes/settings.php:154
132
  msgid "Post Views Counter"
133
  msgstr ""
134
 
135
+ #: ../includes/settings.php:156
136
  msgid "Need support?"
137
  msgstr ""
138
 
139
+ #: ../includes/settings.php:157
140
  msgid ""
141
  "If you are having problems with this plugin, please talk about them in the"
142
  msgstr ""
143
 
144
+ #: ../includes/settings.php:157
145
  msgid "Support forum"
146
  msgstr ""
147
 
148
+ #: ../includes/settings.php:159
149
  msgid "Do you like this plugin?"
150
  msgstr ""
151
 
152
+ #: ../includes/settings.php:160
153
  msgid "Rate it 5"
154
  msgstr ""
155
 
156
+ #: ../includes/settings.php:160
157
  msgid "on WordPress.org"
158
  msgstr ""
159
 
160
+ #: ../includes/settings.php:161
161
  msgid "Blog about it & link to the"
162
  msgstr ""
163
 
164
+ #: ../includes/settings.php:161
165
  msgid "plugin page"
166
  msgstr ""
167
 
168
+ #: ../includes/settings.php:162
169
  msgid "Check out our other"
170
  msgstr ""
171
 
172
+ #: ../includes/settings.php:162
173
  msgid "WordPress plugins"
174
  msgstr ""
175
 
176
+ #: ../includes/settings.php:165
177
  msgid "Created by"
178
  msgstr ""
179
 
180
+ #: ../includes/settings.php:181
181
  msgid "Reset to defaults"
182
  msgstr ""
183
 
184
+ #: ../includes/settings.php:197
185
  msgid "General settings"
186
  msgstr ""
187
 
188
+ #: ../includes/settings.php:198
189
  msgid "Post Types Count"
190
  msgstr ""
191
 
192
+ #: ../includes/settings.php:199
193
  msgid "Counter Mode"
194
  msgstr ""
195
 
196
+ #: ../includes/settings.php:200
197
  msgid "Post Views Column"
198
  msgstr ""
199
 
200
+ #: ../includes/settings.php:201
201
+ msgid "Restrict Edit"
202
+ msgstr ""
203
+
204
+ #: ../includes/settings.php:202
205
  msgid "Time Between Counts"
206
  msgstr ""
207
 
208
+ #: ../includes/settings.php:203
209
  msgid "Reset Data Interval"
210
  msgstr ""
211
 
212
+ #: ../includes/settings.php:204
213
  msgid "Flush Object Cache Interval"
214
  msgstr ""
215
 
216
+ #: ../includes/settings.php:205
217
  msgid "Exclude Visitors"
218
  msgstr ""
219
 
220
+ #: ../includes/settings.php:206
221
  msgid "Exclude IPs"
222
  msgstr ""
223
 
224
+ #: ../includes/settings.php:207
225
  msgid "WP-PostViews"
226
  msgstr ""
227
 
228
+ #: ../includes/settings.php:208
229
  msgid "Deactivation"
230
  msgstr ""
231
 
232
+ #: ../includes/settings.php:212
233
  msgid "Display settings"
234
  msgstr ""
235
 
236
+ #: ../includes/settings.php:213
237
  msgid "Post Views Label"
238
  msgstr ""
239
 
240
+ #: ../includes/settings.php:214
241
  msgid "Post Types Display"
242
  msgstr ""
243
 
244
+ #: ../includes/settings.php:215
245
  msgid "Restrict Display"
246
  msgstr ""
247
 
248
+ #: ../includes/settings.php:216
249
  msgid "Position"
250
  msgstr ""
251
 
252
+ #: ../includes/settings.php:217
253
  msgid "Display Style"
254
  msgstr ""
255
 
256
+ #: ../includes/settings.php:218
257
  msgid "Icon Class"
258
  msgstr ""
259
 
260
+ #: ../includes/settings.php:230
261
  msgid "Enter the label for the post views counter field."
262
  msgstr ""
263
 
264
+ #: ../includes/settings.php:242
265
  msgid "Select post types"
266
  msgstr ""
267
 
268
+ #: ../includes/settings.php:252
269
  msgid "Select post types for which post views will be counted."
270
  msgstr ""
271
 
272
+ #: ../includes/settings.php:264 ../includes/settings.php:387
273
+ #: ../includes/settings.php:541
274
  msgid "Select groups"
275
  msgstr ""
276
 
277
+ #: ../includes/settings.php:274
278
  msgid "Select post types for which post views will be displayed."
279
  msgstr ""
280
 
281
+ #: ../includes/settings.php:296
282
  msgid ""
283
  "Select the method of collecting post views data. If you are using any of the "
284
  "caching plugins select Javascript."
285
  msgstr ""
286
 
287
+ #: ../includes/settings.php:307
288
  msgid ""
289
  "Enable to display post views count column for each of the selected post "
290
  "types."
291
  msgstr ""
292
 
293
+ #: ../includes/settings.php:329
294
  msgid "Enter the time between single user visit count."
295
  msgstr ""
296
 
297
+ #: ../includes/settings.php:352
298
  msgid ""
299
  "Delete single day post views data older than specified above. Enter 0 "
300
  "(number zero) if you want to preserve your data regardless of its age."
301
  msgstr ""
302
 
303
+ #: ../includes/settings.php:375
304
  msgid ""
305
  "How often to flush cached view counts from the object cache into the "
306
  "database. This feature is used only if a persistent object cache is detected "
312
  "interval."
313
  msgstr ""
314
 
315
+ #: ../includes/settings.php:398 ../includes/settings.php:556
316
  msgid "Select user roles"
317
  msgstr ""
318
 
319
+ #: ../includes/settings.php:409
320
  msgid "Select the type of visitors to be excluded from post views count."
321
  msgstr ""
322
 
323
+ #: ../includes/settings.php:425 ../includes/settings.php:434
324
  msgid "Remove"
325
  msgstr ""
326
 
327
+ #: ../includes/settings.php:434
328
  msgid "Add new"
329
  msgstr ""
330
 
331
+ #: ../includes/settings.php:434
332
  msgid "Add my current IP"
333
  msgstr ""
334
 
335
+ #: ../includes/settings.php:436
336
  msgid "Enter the IP addresses to be excluded from post views count."
337
  msgstr ""
338
 
339
+ #: ../includes/settings.php:448
340
  msgid "Import"
341
  msgstr ""
342
 
343
+ #: ../includes/settings.php:450
344
  msgid "Import post views data from WP-PostViews plugin."
345
  msgstr ""
346
 
347
+ #: ../includes/settings.php:451
348
  msgid "Override existing Post Views Counter data."
349
  msgstr ""
350
 
351
+ #: ../includes/settings.php:462
352
+ msgid "Enable to restrict post views editing to admins only."
353
+ msgstr ""
354
+
355
+ #: ../includes/settings.php:472
356
  msgid "Enable to delete all plugin data on deactivation."
357
  msgstr ""
358
 
359
+ #: ../includes/settings.php:493
360
  msgid ""
361
  "Select where would you like to display the post views counter. Use [post-"
362
  "views] shortcode for manual display."
363
  msgstr ""
364
 
365
+ #: ../includes/settings.php:515
366
  msgid "Choose how to display the post views counter."
367
  msgstr ""
368
 
369
+ #: ../includes/settings.php:529
370
  #, php-format
371
  msgid ""
372
  "Enter the post views icon class. Any of the <a href=\"%s\" target=\"_blank"
373
  "\">Dashicons</a> classes are available."
374
  msgstr ""
375
 
376
+ #: ../includes/settings.php:567
377
  msgid "Use it to hide the post views counter from selected type of visitors."
378
  msgstr ""
379
 
380
+ #: ../includes/settings.php:595
381
  msgid "WP-PostViews data imported succesfully."
382
  msgstr ""
383
 
384
+ #: ../includes/settings.php:597
385
  msgid "There was no data to import."
386
  msgstr ""
387
 
388
+ #: ../includes/settings.php:753
389
  msgid "General settings restored to defaults."
390
  msgstr ""
391
 
392
+ #: ../includes/settings.php:757
393
  msgid "Display settings restored to defaults."
394
  msgstr ""
395
 
396
+ #: ../includes/widgets.php:33 ../includes/widgets.php:43
 
 
 
 
397
  msgid "Most Viewed Posts"
398
  msgstr ""
399
 
449
  msgid "Thumbnail size"
450
  msgstr ""
451
 
452
+ #: ../post-views-counter.php:281
453
  msgid "Are you sure you want to reset these settings to defaults?"
454
  msgstr ""
455
 
456
+ #: ../post-views-counter.php:313
457
+ msgid "Support"
458
+ msgstr ""
459
+
460
+ #: ../post-views-counter.php:332
461
  msgid "Settings"
462
  msgstr ""
post-views-counter.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Forget WP-PostViews. Display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
- Version: 1.0.9
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
@@ -42,7 +42,7 @@ include_once( POST_VIEWS_COUNTER_PATH . 'includes/widgets.php' );
42
  * Post Views Counter class
43
  *
44
  * @class Post_Views_Counter
45
- * @version 1.0.9
46
  */
47
  class Post_Views_Counter {
48
 
@@ -51,46 +51,47 @@ class Post_Views_Counter {
51
  private $options;
52
  private $defaults = array(
53
  'general' => array(
54
- 'post_types_count' => array( 'post' ),
55
- 'counter_mode' => 'php',
56
- 'post_views_column' => true,
57
- 'time_between_counts' => array(
58
  'number' => 24,
59
  'type' => 'hours'
60
  ),
61
- 'reset_counts' => array(
62
  'number' => 30,
63
  'type' => 'days'
64
  ),
65
- 'flush_interval' => array(
66
  'number' => 0,
67
  'type' => 'minutes'
68
  ),
69
- 'exclude' => array(
70
  'groups' => array(),
71
  'roles' => array()
72
  ),
73
- 'exclude_ips' => array(),
74
- 'deactivation_delete' => false,
75
- 'cron_run' => true,
76
- 'cron_update' => true
 
77
  ),
78
  'display' => array(
79
- 'label' => 'Post Views:',
80
- 'post_types_display' => array( 'post' ),
81
- 'restrict_display' => array(
82
  'groups' => array(),
83
  'roles' => array()
84
  ),
85
- 'position' => 'after',
86
- 'display_style' => array(
87
  'icon' => true,
88
  'text' => true
89
  ),
90
- 'link_to_post' => true,
91
- 'icon_class' => 'dashicons-visibility'
92
  ),
93
- 'version' => '1.0.9'
94
  );
95
 
96
  public static function instance() {
2
  /*
3
  Plugin Name: Post Views Counter
4
  Description: Forget WP-PostViews. Display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
5
+ Version: 1.0.10
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/post-views-counter/
42
  * Post Views Counter class
43
  *
44
  * @class Post_Views_Counter
45
+ * @version 1.0.10
46
  */
47
  class Post_Views_Counter {
48
 
51
  private $options;
52
  private $defaults = array(
53
  'general' => array(
54
+ 'post_types_count' => array( 'post' ),
55
+ 'counter_mode' => 'php',
56
+ 'post_views_column' => true,
57
+ 'time_between_counts' => array(
58
  'number' => 24,
59
  'type' => 'hours'
60
  ),
61
+ 'reset_counts' => array(
62
  'number' => 30,
63
  'type' => 'days'
64
  ),
65
+ 'flush_interval' => array(
66
  'number' => 0,
67
  'type' => 'minutes'
68
  ),
69
+ 'exclude' => array(
70
  'groups' => array(),
71
  'roles' => array()
72
  ),
73
+ 'exclude_ips' => array(),
74
+ 'restrict_edit_views' => false,
75
+ 'deactivation_delete' => false,
76
+ 'cron_run' => true,
77
+ 'cron_update' => true
78
  ),
79
  'display' => array(
80
+ 'label' => 'Post Views:',
81
+ 'post_types_display' => array( 'post' ),
82
+ 'restrict_display' => array(
83
  'groups' => array(),
84
  'roles' => array()
85
  ),
86
+ 'position' => 'after',
87
+ 'display_style' => array(
88
  'icon' => true,
89
  'text' => true
90
  ),
91
+ 'link_to_post' => true,
92
+ 'icon_class' => 'dashicons-visibility'
93
  ),
94
+ 'version' => '1.0.10'
95
  );
96
 
97
  public static function instance() {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, postviews, post views, views, count
5
  Requires at least: 3.8.0
6
- Tested up to: 4.2.1
7
- Stable tag: 1.0.9
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -25,6 +25,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
25
  * Excluding counts from visitors: bots, logged in users, selected user roles
26
  * Excluding users by IPs
27
  * Restricting display by user roles
 
28
  * One-click data import from WP-PostViews
29
  * Post views display position, automatic or manual via shortcode
30
  * W3 Cache/WP SuperCache compatible
@@ -35,7 +36,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
35
 
36
  = Translations: =
37
 
38
- * Croation translation - by [Tomas Trkulja](http://zytzagoo.net/blog/)
39
  * Hebrew - by [Ahrale Shrem](http://atar4u.com/)
40
  * Polish - by Bartosz Arendt
41
  * Russian - by moonkir
@@ -63,6 +64,9 @@ No questions yet.
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 1.0.9 =
67
  * New: Spanish translation, thanks to [Carlos Rodriguez](http://cglevel.com/)
68
 
@@ -96,5 +100,5 @@ Initial release
96
 
97
  == Upgrade Notice ==
98
 
99
- = 1.0.9 =
100
- * New: Spanish translation, thanks to [Carlos Rodriguez](http://cglevel.com/)
3
  Donate link: http://www.dfactory.eu/
4
  Tags: counter, hits, postviews, post views, views, count
5
  Requires at least: 3.8.0
6
+ Tested up to: 4.2.2
7
+ Stable tag: 1.0.10
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
25
  * Excluding counts from visitors: bots, logged in users, selected user roles
26
  * Excluding users by IPs
27
  * Restricting display by user roles
28
+ * Restricting post views editing to admins
29
  * One-click data import from WP-PostViews
30
  * Post views display position, automatic or manual via shortcode
31
  * W3 Cache/WP SuperCache compatible
36
 
37
  = Translations: =
38
 
39
+ * Croation - by [Tomas Trkulja](http://zytzagoo.net/blog/)
40
  * Hebrew - by [Ahrale Shrem](http://atar4u.com/)
41
  * Polish - by Bartosz Arendt
42
  * Russian - by moonkir
64
 
65
  == Changelog ==
66
 
67
+ = 1.0.10 =
68
+ * New: Option to limit post views editing to admins only
69
+
70
  = 1.0.9 =
71
  * New: Spanish translation, thanks to [Carlos Rodriguez](http://cglevel.com/)
72
 
100
 
101
  == Upgrade Notice ==
102
 
103
+ = 1.0.10 =
104
+ * New: Option to limit post views editing to admins only