Simple Calendar – Google Calendar Plugin - Version 2.2.7

Version Description

  • July 31, 2015 =

  • Feature: Added an 'Add Calendar' button to quickly add a shortcode in posts.

  • Fix: Reverted register scripts hook to init.

  • Translations: Updated French translations

  • Tweak: Flush permalinks on plugin activation and deactivation.

  • Tweak: Added [if-not-location] event builder conditional shortcode.

  • Tweak: Added a 'gce_no_events_message_text' filter when no events are found.

  • Tweak: Added a clear cache bulk action for clearing caches of multiple feeds.

Download this release

Release Info

Developer pderksen
Plugin Icon 128x128 Simple Calendar – Google Calendar Plugin
Version 2.2.7
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.7

class-google-calendar-events-admin.php CHANGED
@@ -61,6 +61,10 @@ class Google_Calendar_Events_Admin {
61
 
62
  // Add admin notice after plugin activation. Also check if should be hidden.
63
  add_action( 'admin_notices', array( $this, 'show_admin_notice' ) );
 
 
 
 
64
  }
65
 
66
  /**
@@ -116,8 +120,16 @@ class Google_Calendar_Events_Admin {
116
  * @since 2.1.0
117
  */
118
  public static function activate() {
 
119
  update_option( 'gce_show_admin_install_notice', 1 );
120
  }
 
 
 
 
 
 
 
121
 
122
  public function add_plugin_admin_menu() {
123
  // Add Help submenu page
@@ -141,7 +153,10 @@ class Google_Calendar_Events_Admin {
141
  * @since 2.0.0
142
  */
143
  public function enqueue_admin_scripts() {
144
-
 
 
 
145
  if( $this->viewing_this_plugin() ) {
146
  wp_enqueue_script( 'jquery-ui-datepicker' );
147
  wp_enqueue_script( 'gce-admin', plugins_url( 'js/gce-admin.js', __FILE__ ), array( 'jquery' ), $this->version, true );
@@ -154,7 +169,10 @@ class Google_Calendar_Events_Admin {
154
  * @since 2.0.0
155
  */
156
  public function enqueue_admin_styles() {
157
-
 
 
 
158
  if( $this->viewing_this_plugin() ) {
159
  global $wp_scripts;
160
 
@@ -220,4 +238,74 @@ class Google_Calendar_Events_Admin {
220
  $links
221
  );
222
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  }
61
 
62
  // Add admin notice after plugin activation. Also check if should be hidden.
63
  add_action( 'admin_notices', array( $this, 'show_admin_notice' ) );
64
+
65
+ // Add media button for adding a shortcode.
66
+ add_action( 'media_buttons', array( $this, 'add_shortcode_button' ), 100 );
67
+ add_action( 'edit_form_after_editor', array( $this, 'add_shortcode_panel' ), 100 );
68
  }
69
 
70
  /**
120
  * @since 2.1.0
121
  */
122
  public static function activate() {
123
+ flush_rewrite_rules();
124
  update_option( 'gce_show_admin_install_notice', 1 );
125
  }
126
+
127
+ /**
128
+ * Fired when the plugin is deactivated.
129
+ */
130
+ public static function deactivate() {
131
+ flush_rewrite_rules();
132
+ }
133
 
134
  public function add_plugin_admin_menu() {
135
  // Add Help submenu page
153
  * @since 2.0.0
154
  */
155
  public function enqueue_admin_scripts() {
156
+
157
+ // Script for the add shortcode media button.
158
+ wp_enqueue_script( 'gce-admin-add-shortcode', plugins_url( 'js/gce-admin-shortcode.js', __FILE__ ), array( 'jquery', 'thickbox' ), $this->version, true);
159
+
160
  if( $this->viewing_this_plugin() ) {
161
  wp_enqueue_script( 'jquery-ui-datepicker' );
162
  wp_enqueue_script( 'gce-admin', plugins_url( 'js/gce-admin.js', __FILE__ ), array( 'jquery' ), $this->version, true );
169
  * @since 2.0.0
170
  */
171
  public function enqueue_admin_styles() {
172
+
173
+ // Style for the add shortcode media button.
174
+ wp_enqueue_style( 'gce-admin-shortcode', plugins_url( 'css/admin-shortcode.css', __FILE__ ), array(), $this->version, 'all' );
175
+
176
  if( $this->viewing_this_plugin() ) {
177
  global $wp_scripts;
178
 
238
  $links
239
  );
240
  }
241
+
242
+ /**
243
+ * Add a shortcode button.
244
+ *
245
+ * Adds a button to add a calendar shortcode in WordPress content editor.
246
+ *
247
+ * @see http://codex.wordpress.org/ThickBox
248
+ */
249
+ public function add_shortcode_button() {
250
+ // Thickbox will ignore height and width, will adjust these in js.
251
+ // @see https://core.trac.wordpress.org/ticket/17249
252
+ ?>
253
+ <a href="#TB_inline?height=250&width=500&inlineId=gce-insert-shortcode-panel" id="gce-insert-shortcode-button" class="thickbox button insert-calendar add_calendar">
254
+ <span class="wp-media-buttons-icon"></span> <?php _e( 'Add Calendar', 'gce' ); ?>
255
+ </a>
256
+ <?php
257
+ }
258
+
259
+ /**
260
+ * Panel for the add shortcode media button.
261
+ *
262
+ * Prints the panel for choosing a calendar to insert as a shortcode in a page or post.
263
+ */
264
+ public function add_shortcode_panel() {
265
+
266
+ $feeds = get_transient( 'gce_feed_ids' );
267
+ if ( ! $feeds ) {
268
+
269
+ $query = get_posts( array(
270
+ 'post_type' => 'gce_feed',
271
+ 'orderby' => 'title',
272
+ 'order' => 'ASC',
273
+ 'nopaging' => true
274
+ ) );
275
+
276
+ $results = array();
277
+ if ( $query && is_array( $query ) ) {
278
+ foreach ( $query as $feed ) {
279
+ $results[ $feed->ID ] = $feed->post_title;
280
+ }
281
+ set_transient( 'gce_feed_ids', $results, 604800 );
282
+ }
283
+ $feeds = $results;
284
+ }
285
+
286
+ ?>
287
+ <div id="gce-insert-shortcode-panel" style="display:none;">
288
+ <div class="gce-insert-shortcode-panel">
289
+ <h1><?php _e( 'Add Calendar', 'gce'); ?></h1>
290
+ <p><?php _e( 'Add a calendar feed to your post.', 'gce' ); ?></p>
291
+ <?php if ( ! empty( $feeds ) ) : ?>
292
+ <label for="gce-choose-gce-feed">
293
+ <select id="gce-choose-gce-feed" name="">
294
+ <?php foreach ( $feeds as $id => $title ) : ?>
295
+ <option value="<?php echo $id ?>"><?php echo $title ?></option>
296
+ <?php endforeach; ?>
297
+ </select>
298
+ </label>
299
+ <br />
300
+ <input type="button" value="<?php _e( 'Insert Calendar', 'gce' ); ?>" id="gce-insert-shortcode" class="button button-primary button-large" name="" />
301
+ <?php else : ?>
302
+ <p><em><?php _e( 'Could not find any calendars to add to this post.', 'gce' ); ?></em></p>
303
+ <p><strong><a href="post-new.php?post_type=gce_feed"><?php _e( 'Please add a new calendar feed first.', 'gce' ); ?></a></strong>
304
+ <?php endif; ?>
305
+ </div>
306
+ </div>
307
+ <?php
308
+
309
+ }
310
+
311
  }
class-google-calendar-events.php CHANGED
@@ -18,7 +18,7 @@ class Google_Calendar_Events {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.2.6';
22
 
23
  /**
24
  * Unique identifier for the plugin.
@@ -62,8 +62,8 @@ class Google_Calendar_Events {
62
 
63
  $this->setup_constants();
64
 
65
- add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_public_scripts' ) );
66
- add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_public_styles' ) );
67
 
68
  // Load scripts when posts load so we know if we need to include them or not
69
  add_filter( 'the_posts', array( $this, 'load_scripts' ) );
@@ -83,9 +83,9 @@ class Google_Calendar_Events {
83
 
84
  wp_localize_script( GCE_PLUGIN_SLUG . '-public', 'gce',
85
  array(
86
- 'script_debug' => ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ),
87
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
88
- 'loadingText' => __( 'Loading...', 'gce' ),
89
  ) );
90
  }
91
  }
@@ -189,7 +189,7 @@ class Google_Calendar_Events {
189
  *
190
  * @since 2.0.0
191
  */
192
- public function enqueue_public_scripts() {
193
 
194
  // DON'T include ImagesLoaded JS library recommended by qTip2 yet since we don't use "complex content that contains images" (yet).
195
  // http://qtip2.com/guides#gettingstarted.imagesloaded
@@ -209,7 +209,7 @@ class Google_Calendar_Events {
209
  *
210
  * @since 2.0.0
211
  */
212
- public function enqueue_public_styles() {
213
  wp_register_style( $this->plugin_slug . '-qtip', plugins_url( 'css/jquery.qtip.min.css', __FILE__ ), array(), $this->version );
214
  wp_register_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array( $this->plugin_slug . '-qtip' ), $this->version );
215
  }
@@ -219,7 +219,7 @@ class Google_Calendar_Events {
219
  *
220
  * @since 2.0.0
221
  *
222
- * @return Plugin version variable.
223
  */
224
  public function get_plugin_slug() {
225
  return $this->plugin_slug;
@@ -230,7 +230,7 @@ class Google_Calendar_Events {
230
  *
231
  * @since 1.0.0
232
  *
233
- * @return Plugin slug variable.
234
  */
235
  public function get_plugin_version() {
236
  return $this->version;
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.2.7';
22
 
23
  /**
24
  * Unique identifier for the plugin.
62
 
63
  $this->setup_constants();
64
 
65
+ add_action( 'init', array( $this, 'register_public_scripts' ) );
66
+ add_action( 'init', array( $this, 'register_public_styles' ) );
67
 
68
  // Load scripts when posts load so we know if we need to include them or not
69
  add_filter( 'the_posts', array( $this, 'load_scripts' ) );
83
 
84
  wp_localize_script( GCE_PLUGIN_SLUG . '-public', 'gce',
85
  array(
86
+ 'script_debug' => ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ),
87
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
88
+ 'loadingText' => __( 'Loading...', 'gce' ),
89
  ) );
90
  }
91
  }
189
  *
190
  * @since 2.0.0
191
  */
192
+ public function register_public_scripts() {
193
 
194
  // DON'T include ImagesLoaded JS library recommended by qTip2 yet since we don't use "complex content that contains images" (yet).
195
  // http://qtip2.com/guides#gettingstarted.imagesloaded
209
  *
210
  * @since 2.0.0
211
  */
212
+ public function register_public_styles() {
213
  wp_register_style( $this->plugin_slug . '-qtip', plugins_url( 'css/jquery.qtip.min.css', __FILE__ ), array(), $this->version );
214
  wp_register_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array( $this->plugin_slug . '-qtip' ), $this->version );
215
  }
219
  *
220
  * @since 2.0.0
221
  *
222
+ * @return string Plugin version variable.
223
  */
224
  public function get_plugin_slug() {
225
  return $this->plugin_slug;
230
  *
231
  * @since 1.0.0
232
  *
233
+ * @return string Plugin slug variable.
234
  */
235
  public function get_plugin_version() {
236
  return $this->version;
css/admin-shortcode.css ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ body.post-type-gce_feed #gce-insert-shortcode-button {
3
+ display: none;
4
+ }
5
+
6
+ /* Add shortcode media button and panel */
7
+ .wp-media-buttons a.add_calendar span.wp-media-buttons-icon {
8
+ background: none;
9
+ }
10
+ .wp-media-buttons a.add_calendar span.wp-media-buttons-icon:before {
11
+ content: '\f508';
12
+ font: normal 18px/1 'dashicons';
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ speak: none;
16
+ }
17
+
18
+ /* Add shortcode panel contents */
19
+ .gce-insert-shortcode-panel select {
20
+ display: block;
21
+ max-width: 470px;
22
+ width: 100%;
23
+ }
24
+ /* Hack to make ThickBox look right */
25
+ /* see: https://core.trac.wordpress.org/ticket/17249 */
26
+ body .gce-insert-shortcode-modal {
27
+ height: 220px !important;
28
+ margin-left: -250px !important;
29
+ width: 500px !important;
30
+ }
31
+ body .gce-insert-shortcode-modal-title {
32
+ background: #fff !important;
33
+ border-bottom: none !important;
34
+ height: 0 !important;
35
+ }
css/admin.css CHANGED
@@ -58,3 +58,10 @@
58
  .gce-custom-range input {
59
  width: 120px;
60
  }
 
 
 
 
 
 
 
58
  .gce-custom-range input {
59
  width: 120px;
60
  }
61
+
62
+ input.gce-shortcode {
63
+ border: none;
64
+ color: rgba(0,0,0,.58);
65
+ font-family: monospace;
66
+ font-weight: bold;
67
+ }
google-calendar-events.php CHANGED
@@ -1,24 +1,15 @@
1
  <?php
2
  /**
3
- * Google Calendar Events
 
 
 
 
 
 
 
4
  *
5
- * @package GCE
6
- * @author Phil Derksen <pderksen@gmail.com>, Nick Young <mycorpweb@gmail.com>
7
- * @license GPL-2.0+
8
- * @link http://philderksen.com
9
- * @copyright 2014-2015 Phil Derksen
10
- *
11
- * @wordpress-plugin
12
- * Plugin Name: Google Calendar Events
13
- * Plugin URI: https://wordpress.org/plugins/google-calendar-events/
14
- * Description: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
15
- * Version: 2.2.6
16
- * Author: Phil Derksen
17
- * Author URI: http://philderksen.com
18
- * License: GPL-2.0+
19
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
20
- * Text Domain: gce
21
- * Domain Path: /languages
22
  */
23
 
24
  // If this file is called directly, abort.
@@ -86,6 +77,7 @@ if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
86
 
87
  // Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
88
  register_activation_hook( __FILE__, array( 'Google_Calendar_Events_Admin', 'activate' ) );
 
89
 
90
  // Get plugin admin class instance
91
  add_action( 'plugins_loaded', array( 'Google_Calendar_Events_Admin', 'get_instance' ) );
1
  <?php
2
  /**
3
+ * Plugin Name: Google Calendar Events
4
+ * Plugin URI: https://wordpress.org/plugins/google-calendar-events/
5
+ * Description: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
6
+ * Author: Moonstone Media
7
+ * Author URI: http://moonstonemediagroup.com
8
+ * Version: 2.2.7
9
+ * Text Domain: gce
10
+ * Domain Path: /languages/
11
  *
12
+ * Copyright 2014 Moonstone Media/Phil Derksen. All rights reserved.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  */
14
 
15
  // If this file is called directly, abort.
77
 
78
  // Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
79
  register_activation_hook( __FILE__, array( 'Google_Calendar_Events_Admin', 'activate' ) );
80
+ register_deactivation_hook( __FILE__, array( 'Google_Calendar_Events_Admin', 'deactivate' ) );
81
 
82
  // Get plugin admin class instance
83
  add_action( 'plugins_loaded', array( 'Google_Calendar_Events_Admin', 'get_instance' ) );
includes/admin/upgrade.php CHANGED
@@ -377,6 +377,7 @@ function clear_old_transients( $id ) {
377
 
378
  delete_transient( 'gce_feed_' . $id );
379
  delete_transient( 'gce_feed_' . $id . '_url' );
 
380
  }
381
 
382
  /**
377
 
378
  delete_transient( 'gce_feed_' . $id );
379
  delete_transient( 'gce_feed_' . $id . '_url' );
380
+ delete_transient( 'gce_feed_ids' );
381
  }
382
 
383
  /**
includes/class-gce-display.php CHANGED
@@ -403,7 +403,7 @@ class GCE_Display {
403
  }
404
 
405
  if( ! $has_events ) {
406
- $markup .= __( 'No events to display.', 'gce' );
407
  }
408
 
409
  $markup .= '</div>';
403
  }
404
 
405
  if( ! $has_events ) {
406
+ $markup .= apply_filters( 'gce_no_events_message_text', __( 'No events to display.', 'gce' ) );
407
  }
408
 
409
  $markup .= '</div>';
includes/class-gce-event.php CHANGED
@@ -247,6 +247,7 @@ class GCE_Event {
247
  'if-title', //The event has a title
248
  'if-description', //The event has a description
249
  'if-location', //The event has a location
 
250
  'if-tooltip', //The current display type is 'tooltip'
251
  'if-list', //The current display type is 'list'
252
  'if-now', //The event is taking place now (after the start time, but before the end time)
@@ -442,6 +443,12 @@ class GCE_Event {
442
 
443
  return '';
444
 
 
 
 
 
 
 
445
  case 'if-tooltip':
446
  if ( 'tooltip' == $this->type )
447
  return $m[1] . $this->look_for_shortcodes( $m[5] ) . $m[6];
247
  'if-title', //The event has a title
248
  'if-description', //The event has a description
249
  'if-location', //The event has a location
250
+ 'if-not-location',//The event does not have a location
251
  'if-tooltip', //The current display type is 'tooltip'
252
  'if-list', //The current display type is 'list'
253
  'if-now', //The event is taking place now (after the start time, but before the end time)
443
 
444
  return '';
445
 
446
+ case 'if-not-location':
447
+ if ( '' == $this->location )
448
+ return $m[1] . $this->look_for_shortcodes( $m[5] ) . $m[6];
449
+
450
+ return '';
451
+
452
  case 'if-tooltip':
453
  if ( 'tooltip' == $this->type )
454
  return $m[1] . $this->look_for_shortcodes( $m[5] ) . $m[6];
includes/gce-feed-cpt.php CHANGED
@@ -130,8 +130,18 @@ function gce_display_options_meta() {
130
  * Function to save post meta for the feed CPT
131
  *
132
  * @since 2.0.0
 
 
 
 
 
133
  */
134
- function gce_save_meta( $post_id ) {
 
 
 
 
 
135
  if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
136
  return $post_id;
137
  }
@@ -223,11 +233,28 @@ function gce_save_meta( $post_id ) {
223
  delete_post_meta( $post_id, $pmf );
224
  }
225
  }
 
226
  }
227
 
228
  return $post_id;
229
  }
230
- add_action( 'save_post', 'gce_save_meta' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
 
232
 
233
  /**
@@ -262,7 +289,15 @@ function gce_column_content( $column_name, $post_ID ) {
262
  echo $post_ID;
263
  break;
264
  case 'feed-sc':
265
- echo '<code>[gcal id="' . esc_attr( $post_ID ) . '"]</code>';
 
 
 
 
 
 
 
 
266
  break;
267
  case 'display-type':
268
  $display = get_post_meta( $post_ID, 'gce_display_mode', true );
@@ -282,6 +317,7 @@ function gce_column_content( $column_name, $post_ID ) {
282
  }
283
  add_action( 'manage_gce_feed_posts_custom_column', 'gce_column_content', 10, 2 );
284
 
 
285
  /**
286
  * Add the "Clear Cache" action to the CPT action links
287
  *
@@ -291,14 +327,12 @@ function gce_cpt_actions( $actions, $post ) {
291
  if( $post->post_type == 'gce_feed' ) {
292
  $actions['clear_cache'] = '<a href="' . esc_url( add_query_arg( array( 'clear_cache' => $post->ID ) ) ) . '">' . __( 'Clear Cache', 'gce' ) . '</a>';
293
  }
294
-
295
  return $actions;
296
  }
297
  add_filter( 'post_row_actions', 'gce_cpt_actions', 10, 2 );
298
 
299
-
300
  /**
301
- * Function to clear cache if on the post listing page
302
  *
303
  * @since 2.0.0
304
  */
@@ -313,8 +347,127 @@ function gce_clear_cache_link() {
313
  }
314
  add_action( 'admin_init', 'gce_clear_cache_link' );
315
 
316
-
 
 
 
 
317
  function gce_clear_cache_on_save( $post_id ) {
 
318
  delete_transient( 'gce_feed_' . $post_id );
 
 
319
  }
320
  add_action( 'save_post_gce_feed', 'gce_clear_cache_on_save' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  * Function to save post meta for the feed CPT
131
  *
132
  * @since 2.0.0
133
+ *
134
+ * @param int $post_id
135
+ * @param WP_Post $post
136
+ *
137
+ * @return int
138
  */
139
+ function gce_save_meta( $post_id, $post ) {
140
+
141
+ if ( 'gce_feed' != $post->post_type ) {
142
+ return $post_id;
143
+ }
144
+
145
  if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
146
  return $post_id;
147
  }
233
  delete_post_meta( $post_id, $pmf );
234
  }
235
  }
236
+
237
  }
238
 
239
  return $post_id;
240
  }
241
+ add_action( 'save_post', 'gce_save_meta', 10, 2 );
242
+
243
+
244
+ /**
245
+ * Delete feed ids transient if a feed post type is deleted.
246
+ *
247
+ * @param int $id The id of the deleted post.
248
+ */
249
+ function gce_delete_post( $id ) {
250
+ $feeds = get_transient( 'gce_feed_ids' );
251
+ if ( $feeds && is_array( $feeds ) ) {
252
+ if ( in_array( $id, array_keys( $feeds ) ) ) {
253
+ delete_transient( 'gce_feed_ids' );
254
+ }
255
+ }
256
+ }
257
+ add_action( 'delete_post', 'gce_delete_post', 10, 1 );
258
 
259
 
260
  /**
289
  echo $post_ID;
290
  break;
291
  case 'feed-sc':
292
+ ?>
293
+ <input
294
+ name="gce_shortcode"
295
+ class="gce-shortcode"
296
+ readonly="readonly"
297
+ value='[gcal id="<?php echo $post_ID; ?>"]'
298
+ onclick="this.select();"
299
+ />
300
+ <?php
301
  break;
302
  case 'display-type':
303
  $display = get_post_meta( $post_ID, 'gce_display_mode', true );
317
  }
318
  add_action( 'manage_gce_feed_posts_custom_column', 'gce_column_content', 10, 2 );
319
 
320
+
321
  /**
322
  * Add the "Clear Cache" action to the CPT action links
323
  *
327
  if( $post->post_type == 'gce_feed' ) {
328
  $actions['clear_cache'] = '<a href="' . esc_url( add_query_arg( array( 'clear_cache' => $post->ID ) ) ) . '">' . __( 'Clear Cache', 'gce' ) . '</a>';
329
  }
 
330
  return $actions;
331
  }
332
  add_filter( 'post_row_actions', 'gce_cpt_actions', 10, 2 );
333
 
 
334
  /**
335
+ * Function to clear cache if on the post listing page.
336
  *
337
  * @since 2.0.0
338
  */
347
  }
348
  add_action( 'admin_init', 'gce_clear_cache_link' );
349
 
350
+ /**
351
+ * Clear cache on post save.
352
+ *
353
+ * @param int $post_id
354
+ */
355
  function gce_clear_cache_on_save( $post_id ) {
356
+ // Transient with calendar feed data.
357
  delete_transient( 'gce_feed_' . $post_id );
358
+ // Transient with an associative array list of feed ids and their titles.
359
+ delete_transient( 'gce_feed_ids' );
360
  }
361
  add_action( 'save_post_gce_feed', 'gce_clear_cache_on_save' );
362
+
363
+ /**
364
+ * Adds a 'clear cache' option to bulk actions.
365
+ *
366
+ * It's done through jQuery since one can't write into bulk actions yet.
367
+ * @link https://core.trac.wordpress.org/ticket/16031
368
+ * @link https://www.skyverge.com/blog/add-custom-bulk-action/
369
+ */
370
+ function gce_clear_cache_bulk_action_option() {
371
+
372
+ global $post_type;
373
+
374
+ if ( $post_type == 'gce_feed' ) {
375
+
376
+ ?>
377
+ <script type="text/javascript">
378
+ jQuery(document).ready(function () {
379
+ jQuery('<option>')
380
+ .val('clear_cache')
381
+ .text('<?php _e( 'Clear Cache', 'gce' ); ?>')
382
+ .appendTo("select[name='action']");
383
+ });
384
+ </script>
385
+ <?php
386
+
387
+ }
388
+
389
+ }
390
+ add_action( 'admin_footer-edit.php', 'gce_clear_cache_bulk_action_option' );
391
+
392
+ /**
393
+ * Clear cache bulk action.
394
+ *
395
+ * @see gce_clear_cache_bulk_action_option()
396
+ */
397
+ function gce_clear_cache_bulk_action() {
398
+
399
+ global $typenow;
400
+ $post_type = $typenow;
401
+
402
+ if ( 'gce_feed' == $post_type ) {
403
+
404
+ $send_back = remove_query_arg( array( 'cleared' ), wp_get_referer() );
405
+ if ( ! $send_back ) {
406
+ $send_back = admin_url( 'edit.php?post_type=' . $post_type );
407
+ }
408
+
409
+ // Get the bulk action.
410
+ $wp_list_table = _get_list_table( 'WP_Posts_List_Table' );
411
+ $action = $wp_list_table->current_action();
412
+ if ( $action == 'clear_cache' ) {
413
+
414
+ // Security check (the referer is right).
415
+ check_admin_referer( 'bulk-posts' );
416
+
417
+ // This is based on wp-admin/edit.php.
418
+ $send_back = remove_query_arg(
419
+ array( 'cleared', 'untrashed', 'deleted', 'ids' ),
420
+ $send_back
421
+ );
422
+
423
+ // Proceed if there are post ids selected.
424
+ $post_ids = isset( $_REQUEST['post'] ) ? array_map( 'intval', $_REQUEST['post'] ) : '';
425
+ if ( $post_ids ) {
426
+
427
+ // Add page num to query arg.
428
+ $page_num = $wp_list_table->get_pagenum();
429
+ $send_back = add_query_arg( 'paged', $page_num, $send_back );
430
+
431
+ switch ( $action ) {
432
+ case 'clear_cache' :
433
+ $cleared = 0;
434
+ foreach ( $post_ids as $post_id ) {
435
+ gce_clear_cache( $post_id );
436
+ $cleared ++;
437
+ }
438
+ $send_back = add_query_arg( array(
439
+ 'cleared' => $cleared,
440
+ 'ids' => join( ',', $post_ids )
441
+ ),
442
+ $send_back
443
+ );
444
+ break;
445
+ default:
446
+ return;
447
+ break;
448
+ }
449
+
450
+ $send_back = remove_query_arg(
451
+ array( 'action', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view' ),
452
+ $send_back
453
+ );
454
+
455
+ wp_redirect( $send_back );
456
+ exit();
457
+ }
458
+ }
459
+ }
460
+ }
461
+ add_action( 'load-edit.php', 'gce_clear_cache_bulk_action' );
462
+
463
+ /**
464
+ * Display an admin notice when the cache is cleared.
465
+ */
466
+ function gce_clear_cache_bulk_action_notice() {
467
+ global $post_type, $pagenow;
468
+ if ( $pagenow == 'edit.php' && $post_type == 'gce_feed' && isset( $_REQUEST['cleared'] ) && (int) $_REQUEST['cleared'] ) {
469
+ $message = sprintf( _n( 'Feed cache cleared.', 'Cleared cache for %s feeds.', $_REQUEST['cleared'], 'gce' ), number_format_i18n( $_REQUEST['cleared'] ) );
470
+ echo '<div class="updated notice is-dismissible"><p>' . $message . '</p></div>';
471
+ }
472
+ }
473
+ add_action( 'admin_notices', 'gce_clear_cache_bulk_action_notice' );
includes/misc-functions.php CHANGED
@@ -14,7 +14,6 @@ function gce_print_calendar( $feed_ids, $display = 'grid', $args = array(), $wid
14
 
15
 
16
  // Load scripts
17
- wp_enqueue_script( GCE_PLUGIN_SLUG . '-images-loaded' );
18
  wp_enqueue_script( GCE_PLUGIN_SLUG . '-qtip' );
19
  wp_enqueue_script( GCE_PLUGIN_SLUG . '-public' );
20
 
14
 
15
 
16
  // Load scripts
 
17
  wp_enqueue_script( GCE_PLUGIN_SLUG . '-qtip' );
18
  wp_enqueue_script( GCE_PLUGIN_SLUG . '-public' );
19
 
js/gce-admin-shortcode.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global jQuery */
2
+ ( function ($) {
3
+ "use strict";
4
+
5
+ $( document ).ready( function() {
6
+
7
+ // ThickBox hack: https://core.trac.wordpress.org/ticket/17249
8
+ $( '#gce-insert-shortcode-button' ).on( 'click', function() {
9
+
10
+ // ThickBox creates a div which is not immediately available.
11
+ setTimeout( function() {
12
+ var thickBox = document.getElementById( 'TB_window');
13
+ if ( thickBox != 'undefined' ) {
14
+ thickBox.classList.add( 'gce-insert-shortcode-modal' );
15
+ }
16
+ var thickBoxTitle = document.getElementById( 'TB_title' );
17
+ if ( thickBoxTitle != 'undefined' ) {
18
+ thickBoxTitle.classList.add( 'gce-insert-shortcode-modal-title' );
19
+ }
20
+ }, 120 );
21
+
22
+ } );
23
+
24
+ // Add shortcode in WordPress post editor.
25
+ $( '#gce-insert-shortcode').on( 'click', function(e) {
26
+
27
+ e.preventDefault();
28
+
29
+ var feedId = $( '#gce-choose-gce-feed').val();
30
+ wp.media.editor.insert( '[gcal id="' + feedId + '"] ' );
31
+
32
+ // Close Thickbox.
33
+ tb_remove();
34
+
35
+ } );
36
+
37
+ });
38
+
39
+ }( jQuery ));
js/gce-admin.js CHANGED
@@ -13,7 +13,7 @@
13
  "use strict";
14
 
15
  $(function () {
16
-
17
  // Show the hidden text box if custom date is selected (Events per Page)
18
  $('body').on('change', 'select[id*=events_per_page]', function() {
19
 
@@ -65,6 +65,11 @@
65
 
66
  $('#publish').click();
67
  });
 
 
 
 
 
68
 
69
  });
70
  }(jQuery));
13
  "use strict";
14
 
15
  $(function () {
16
+
17
  // Show the hidden text box if custom date is selected (Events per Page)
18
  $('body').on('change', 'select[id*=events_per_page]', function() {
19
 
65
 
66
  $('#publish').click();
67
  });
68
+
69
+ // Automatically change the width of shortcode pseudo-inputs.
70
+ $( 'input.gce-shortcode' ).each( function() {
71
+ $( this ).attr( 'size', $( this ).val().length );
72
+ } );
73
 
74
  });
75
  }(jQuery));
languages/gce-fr_FR.mo CHANGED
Binary file
languages/gce-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Google Calendar Events\n"
4
- "POT-Creation-Date: 2015-03-27 12:03+0100\n"
5
- "PO-Revision-Date: 2015-03-27 14:07+0100\n"
6
  "Last-Translator: Vincent B <vincent@yahoo.fr>\n"
7
  "Language-Team: Jojaba <jojaba@gmail.com>\n"
8
  "Language: fr\n"
@@ -16,66 +16,80 @@ msgstr ""
16
  "X-Poedit-SearchPath-0: google-calendar-events\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../class-google-calendar-events-admin.php:126
20
- #: ../class-google-calendar-events-admin.php:127
21
- #: ../class-google-calendar-events-admin.php:217
22
- #: ../includes/register-settings.php:66
23
  msgid "General Settings"
24
  msgstr "Paramètres généraux"
25
 
26
- #: ../class-google-calendar-events-admin.php:205 ../views/widgets.php:27
 
27
  msgid "Google Calendar Events"
28
  msgstr "Google Calendar Events"
29
 
30
- #: ../class-google-calendar-events-admin.php:218
31
  msgid "Feeds"
32
  msgstr "Flux"
33
 
34
- #: ../class-google-calendar-events.php:90
35
  msgid "Loading..."
36
  msgstr "Chargement..."
37
 
38
- #: ../includes/admin/admin-functions.php:20
 
 
 
 
 
 
 
 
 
 
 
 
39
  msgid "Cache has been cleared for this feed."
40
  msgstr "Le cache a été vidé pour cet agenda."
41
 
42
- #: ../includes/admin/admin-functions.php:35
43
- #: ../includes/admin/admin-functions.php:56
44
  msgid "Starts:"
45
  msgstr "Début :"
46
 
47
- #: ../includes/admin/admin-functions.php:36
48
- #: ../includes/admin/admin-functions.php:58
49
  msgid "Ends:"
50
  msgstr "Fin :"
51
 
52
- #: ../includes/admin/admin-functions.php:37
53
- #: ../includes/admin/admin-functions.php:60
54
  msgid "Location:"
55
  msgstr "Lieu :"
56
 
57
- #: ../includes/admin/admin-functions.php:38
58
- #: ../includes/admin/admin-functions.php:61
59
  msgid "Description:"
60
  msgstr "Description :"
61
 
62
- #: ../includes/admin/admin-functions.php:39
63
  msgid "More details..."
64
  msgstr "Plus de détails..."
65
 
66
- #: ../includes/admin/admin-functions.php:63
67
  msgid "More Details"
68
  msgstr "Plus de détails"
69
 
70
- #: ../includes/admin/admin-functions.php:77 ../includes/gce-feed-cpt.php:291
 
71
  msgid "Clear Cache"
72
  msgstr "Vider le cache"
73
 
74
- #: ../includes/admin/admin-notice.php:26
75
  msgid "GCal API Key Notice"
76
  msgstr "Clé d'API Google"
77
 
78
- #: ../includes/admin/admin-notice.php:28
79
  msgid ""
80
  "GCal Events uses the Google Calendar API version 3. By default this plugin "
81
  "uses a public shared key across all plugin users."
@@ -83,7 +97,7 @@ msgstr ""
83
  "GCal Events utilise à présent la version 3 de l'API Google, qui nécessite "
84
  "l'utilisation d'une clé publique."
85
 
86
- #: ../includes/admin/admin-notice.php:30
87
  msgid ""
88
  "This key is limited to 500,000 requests per day and 5 requests per second. "
89
  "To avoid running into any potential limits you can use your own Google API "
@@ -93,91 +107,93 @@ msgstr ""
93
  "éviter de rencontrer des limitations, vous pouvez utiliser votre clé API "
94
  "Google personnelle."
95
 
96
- #: ../includes/admin/admin-notice.php:33
97
  msgid "Enter your GCal API key"
98
  msgstr "Entrez votre clé API GCal"
99
 
100
- #: ../includes/admin/admin-notice.php:34
101
  msgid "Configure GCal feeds"
102
  msgstr "Configurez vos flux GCal"
103
 
104
- #: ../includes/admin/admin-notice.php:35
105
  msgid "Hide this"
106
  msgstr "Masquer"
107
 
108
- #: ../includes/class-gce-display.php:179 ../includes/class-gce-display.php:289
 
109
  msgid "Back"
110
  msgstr "Préc."
111
 
112
- #: ../includes/class-gce-display.php:183 ../includes/class-gce-display.php:290
 
113
  msgid "Next"
114
  msgstr "Suiv."
115
 
116
- #: ../includes/class-gce-display.php:392
117
  msgid "No events to display."
118
  msgstr "Aucun évènement à afficher."
119
 
120
- #: ../includes/class-gce-event.php:522
121
  #, php-format
122
  msgid "%s year"
123
  msgstr "%s année"
124
 
125
- #: ../includes/class-gce-event.php:522
126
  #, php-format
127
  msgid "%s years"
128
  msgstr "%s années"
129
 
130
- #: ../includes/class-gce-event.php:523
131
  #, php-format
132
  msgid "%s month"
133
  msgstr "%s mois"
134
 
135
- #: ../includes/class-gce-event.php:523
136
  #, php-format
137
  msgid "%s months"
138
  msgstr "%s mois"
139
 
140
- #: ../includes/class-gce-event.php:524
141
  #, php-format
142
  msgid "%s week"
143
  msgstr "%s semaine"
144
 
145
- #: ../includes/class-gce-event.php:524
146
  #, php-format
147
  msgid "%s weeks"
148
  msgstr "%s semaines"
149
 
150
- #: ../includes/class-gce-event.php:525
151
  #, php-format
152
  msgid "%s day"
153
  msgstr "%s jour"
154
 
155
- #: ../includes/class-gce-event.php:525
156
  #, php-format
157
  msgid "%s days"
158
  msgstr "%s jours"
159
 
160
- #: ../includes/class-gce-event.php:526
161
  #, php-format
162
  msgid "%s hour"
163
  msgstr "%s heure"
164
 
165
- #: ../includes/class-gce-event.php:526
166
  #, php-format
167
  msgid "%s hours"
168
  msgstr "%s heures"
169
 
170
- #: ../includes/class-gce-event.php:527
171
  #, php-format
172
  msgid "%s min"
173
  msgstr "%s minute"
174
 
175
- #: ../includes/class-gce-event.php:527
176
  #, php-format
177
  msgid "%s mins"
178
  msgstr "%s minutes"
179
 
180
- #: ../includes/class-gce-feed.php:93
181
  msgid ""
182
  "The Google Calendar ID has not been set. Please make sure to set it "
183
  "correctly in the Feed settings."
@@ -185,7 +201,7 @@ msgstr ""
185
  "L'ID de l'agenda n'a pas été indiqué. Veuillez vérifier qu'il est défini "
186
  "correctement dans la configuration."
187
 
188
- #: ../includes/class-gce-feed.php:197
189
  msgid ""
190
  "Some data was retrieved, but could not be parsed successfully. Please ensure "
191
  "your feed settings are correct."
@@ -193,140 +209,144 @@ msgstr ""
193
  "Des données ont été retrouvées mais n'ont pu être analysées. Assurez-vous "
194
  "que les paramètres de votre agenda sont corrects."
195
 
196
- #: ../includes/class-gce-feed.php:200
197
  msgid "An error has occured."
198
  msgstr "Une erreur est survenue."
199
 
200
- #: ../includes/class-gce-feed.php:205
201
  msgid " Please ensure your calendar ID is correct."
202
  msgstr "Assurez-vous que l'ID de votre agenda est correcte."
203
 
204
- #: ../includes/gce-feed-cpt.php:21
205
  msgid "Google Calendar Feeds"
206
  msgstr "Flux des agendas"
207
 
208
- #: ../includes/gce-feed-cpt.php:22 ../includes/gce-feed-cpt.php:24
209
- #: ../includes/gce-feed-cpt.php:72
 
210
  msgid "Feed"
211
  msgstr "Flux"
212
 
213
- #: ../includes/gce-feed-cpt.php:23
214
  msgid "GCal Events"
215
  msgstr "Évènements GCal"
216
 
217
- #: ../includes/gce-feed-cpt.php:25
218
  msgid "Add New"
219
  msgstr "Ajouter"
220
 
221
- #: ../includes/gce-feed-cpt.php:26
222
  msgid "Add New Feed"
223
  msgstr "Ajouter un nouvel agenda"
224
 
225
- #: ../includes/gce-feed-cpt.php:27
226
  msgid "New Feed"
227
  msgstr "Nouvel agenda"
228
 
229
- #: ../includes/gce-feed-cpt.php:28
230
  msgid "Edit Feed"
231
  msgstr "Éditer l'agenda"
232
 
233
- #: ../includes/gce-feed-cpt.php:29
234
  msgid "View Feed"
235
  msgstr "Afficher l'agenda"
236
 
237
- #: ../includes/gce-feed-cpt.php:30
238
  msgid "All GCal Feeds"
239
  msgstr "Tous les agendas"
240
 
241
- #: ../includes/gce-feed-cpt.php:31
242
  msgid "Search GCal Feeds"
243
  msgstr "Chercher dans les agendas"
244
 
245
- #: ../includes/gce-feed-cpt.php:32
246
  msgid "No feeds found."
247
  msgstr "Aucun agenda trouvé."
248
 
249
- #: ../includes/gce-feed-cpt.php:33
250
  msgid "No feeds found in Trash."
251
  msgstr "Aucun agenda trouvé dans la corbeille."
252
 
253
- #: ../includes/gce-feed-cpt.php:70
254
  msgid "feed"
255
  msgstr "agenda"
256
 
257
- #: ../includes/gce-feed-cpt.php:75 ../includes/gce-feed-cpt.php:76
 
258
  #, php-format
259
  msgid "%4$s updated. %1$sView %2$s%3$s"
260
  msgstr "%4$s mis à jour. %1$sVoir %2$s%3$s"
261
 
262
- #: ../includes/gce-feed-cpt.php:77
263
  #, php-format
264
  msgid "%4$s published. %1$sView %2$s%3$s"
265
  msgstr "%4$s publié. %1$sVoir %2$s%3$s"
266
 
267
- #: ../includes/gce-feed-cpt.php:78
268
  #, php-format
269
  msgid "%4$s saved. %1$sView %2$s%3$s"
270
  msgstr "%4$s enregistré. %1$sVoir %2$s%3$s"
271
 
272
- #: ../includes/gce-feed-cpt.php:79
273
  #, php-format
274
  msgid "%4$s submitted. %1$sView %2$s%3$s"
275
  msgstr "%4$s soumis. %1$sVoir %2$s%3$s"
276
 
277
- #: ../includes/gce-feed-cpt.php:80
278
  #, php-format
279
  msgid "%4$s draft updated. %1$sView %2$s%3$s"
280
  msgstr "%4$s brouillon mis à jour. %1$sVoir %2$s%3$s"
281
 
282
- #: ../includes/gce-feed-cpt.php:94
283
  msgid "Feed Settings"
284
  msgstr "Paramètres du flux"
285
 
286
- #: ../includes/gce-feed-cpt.php:97
287
- msgid "Helpful Links"
288
- msgstr "Liens utiles"
289
 
290
- #: ../includes/gce-feed-cpt.php:99
291
  msgid "Display Options"
292
  msgstr "Options d'affichage"
293
 
294
- #: ../includes/gce-feed-cpt.php:241
295
  msgid "Feed ID"
296
  msgstr "ID de l'agenda"
297
 
298
- #: ../includes/gce-feed-cpt.php:242
299
- #: ../views/admin/gce-feed-meta-display.php:79
300
  msgid "Feed Shortcode"
301
  msgstr "Shortcode de l'agenda"
302
 
303
- #: ../includes/gce-feed-cpt.php:243
304
  msgid "Display Type"
305
  msgstr "Type d'affichage"
306
 
307
- #: ../includes/gce-feed-cpt.php:270
308
  msgid "Grid"
309
  msgstr "Tableau"
310
 
311
- #: ../includes/gce-feed-cpt.php:272
312
- #: ../views/admin/gce-feed-meta-display.php:129 ../views/widgets.php:295
 
313
  msgid "List"
314
  msgstr "Liste"
315
 
316
- #: ../includes/gce-feed-cpt.php:274
317
- #: ../views/admin/gce-feed-meta-display.php:130 ../views/widgets.php:296
 
318
  msgid "Grouped List"
319
  msgstr "Liste groupée"
320
 
321
- #: ../includes/gce-feed-cpt.php:276
322
  msgid "Custom Date Range"
323
  msgstr "Utilisez une plage de dates spécifique"
324
 
325
- #: ../includes/register-settings.php:29
326
  msgid "Google API Key"
327
  msgstr "Clé d'API Google"
328
 
329
- #: ../includes/register-settings.php:30
330
  msgid ""
331
  "If left blank all displayed Google calendars will use a public Google API "
332
  "key shared across all plugin users."
@@ -334,7 +354,7 @@ msgstr ""
334
  "Si aucune clé n'est indiquée tous les agendas Google utiliseront une seule "
335
  "et même clé d'API pour tous les utilisateurs de ce plugin."
336
 
337
- #: ../includes/register-settings.php:31
338
  msgid ""
339
  "Currently the shared key is limited to 500,000 requests per day and 5 "
340
  "requests per second."
@@ -342,7 +362,7 @@ msgstr ""
342
  "Actuellement, la clé partagée vous limite à 500&nbsp;000 requêtes par jour "
343
  "et 5 requêtes par seconde."
344
 
345
- #: ../includes/register-settings.php:32
346
  #, php-format
347
  msgid ""
348
  "To avoid these limits <a href=\"%s\" target=\"_blank\">click here for "
@@ -352,33 +372,49 @@ msgstr ""
352
  "obtenir des instructions afin de générer et utiliser votre propre clé d'API "
353
  "Google.</a>"
354
 
355
- #: ../includes/register-settings.php:39
356
  msgid "Always Enqueue Scripts & Styles"
357
  msgstr "Toujours placer Scripts & Styles en file d'attente"
358
 
359
- #: ../includes/register-settings.php:45
 
 
 
 
 
 
 
 
 
 
 
 
360
  msgid "Disable Plugin CSS"
361
  msgstr "Désactiver le CSS du Plugin"
362
 
363
- #: ../includes/register-settings.php:46
364
  msgid ""
365
  "If this option is checked, this plugin's CSS file will not be referenced."
366
  msgstr ""
367
  "Si cette option est cochée, le fichier CSS du Plugin ne sera pas référencé"
368
 
369
- #: ../includes/register-settings.php:51
370
  msgid "Save Settings"
371
  msgstr "Enregistrer les paramètres"
372
 
373
- #: ../includes/register-settings.php:52
374
- msgid ""
375
- "Save your settings when uninstalling this plugin. Useful when upgrading or "
376
- "re-installing."
 
 
 
 
377
  msgstr ""
378
  "Enregistre vos modifications avant de désinstaller le plugin. Utile pour les "
379
  "mises à jour ou réinstallations."
380
 
381
- #: ../includes/register-settings.php:181
382
  #, php-format
383
  msgid ""
384
  "The callback function used for the <strong>%s</strong> setting is missing."
@@ -386,7 +422,7 @@ msgstr ""
386
  "La fonction de rappel utilisée pour la configuration de <strong>%s</strong> "
387
  "est introuvable."
388
 
389
- #: ../includes/shortcodes.php:95
390
  msgid ""
391
  "There was a problem with one or more of your feed IDs. Please check your "
392
  "shortcode settings and make sure they are correct."
@@ -395,7 +431,7 @@ msgstr ""
395
  "Merci de vérifier la configuration de vos code et assurez-vous qu'ils soient "
396
  "corrects."
397
 
398
- #: ../views/admin/display-options-meta.php:39
399
  msgid ""
400
  "Check this box to use the simple display options below instead of the Event "
401
  "Builder code on the left."
@@ -403,72 +439,72 @@ msgstr ""
403
  "Cocher cette case pour utiliser les options d'affichage ci-dessous au lieu "
404
  "du code du constructeur d'évènements à gauche."
405
 
406
- #: ../views/admin/display-options-meta.php:44
407
  msgid "Start date / time display"
408
  msgstr "Affichage date / heure de début"
409
 
410
- #: ../views/admin/display-options-meta.php:45
411
  msgid "Select how to display the start date / time."
412
  msgstr "Définit comment afficher la date / heure de début."
413
 
414
- #: ../views/admin/display-options-meta.php:47
415
- #: ../views/admin/display-options-meta.php:61
416
  msgid "None"
417
  msgstr "Aucun"
418
 
419
- #: ../views/admin/display-options-meta.php:48
420
  msgid "Start time"
421
  msgstr "Heure de début"
422
 
423
- #: ../views/admin/display-options-meta.php:49
424
  msgid "Start date"
425
  msgstr "Date de début"
426
 
427
- #: ../views/admin/display-options-meta.php:50
428
  msgid "Start time and date"
429
  msgstr "Heure et date de début"
430
 
431
- #: ../views/admin/display-options-meta.php:51
432
  msgid "Start date and time"
433
  msgstr "Date et Heure de début"
434
 
435
- #: ../views/admin/display-options-meta.php:53
436
  msgid "Text to display before the start time."
437
  msgstr "Texte à afficher avant l'heure de début."
438
 
439
- #: ../views/admin/display-options-meta.php:58
440
  msgid "End time/date display"
441
  msgstr "Affichage de l'heure / date de fin"
442
 
443
- #: ../views/admin/display-options-meta.php:59
444
  msgid "Select how to display the end date / time."
445
  msgstr "Définit comment afficher la date / heure de fin."
446
 
447
- #: ../views/admin/display-options-meta.php:62
448
  msgid "End time"
449
  msgstr "Heure de fin"
450
 
451
- #: ../views/admin/display-options-meta.php:63
452
  msgid "End date"
453
  msgstr "Date de fin"
454
 
455
- #: ../views/admin/display-options-meta.php:64
456
  msgid "End time and date"
457
  msgstr "Heure et date de fin"
458
 
459
- #: ../views/admin/display-options-meta.php:65
460
  msgid "End date and time"
461
  msgstr "Date et heure de fin"
462
 
463
- #: ../views/admin/display-options-meta.php:67
464
  msgid "Text to display before the end time."
465
  msgstr "Texte à afficher avant l'heure de fin."
466
 
467
- #: ../views/admin/display-options-meta.php:72
468
  msgid "Separator"
469
  msgstr "Séparateur"
470
 
471
- #: ../views/admin/display-options-meta.php:74
472
  msgid ""
473
  "If you have chosen to display both the time and date above, enter the text / "
474
  "characters to display between the time and date here (including any spaces)."
@@ -477,23 +513,23 @@ msgstr ""
477
  "indiquez le texte / les caractères à afficher entre la date et l'heure ici "
478
  "(avec les espaces)."
479
 
480
- #: ../views/admin/display-options-meta.php:80
481
  msgid "Location"
482
  msgstr "Lieu"
483
 
484
- #: ../views/admin/display-options-meta.php:82
485
  msgid "Show the location of events?"
486
  msgstr "Afficher le lieu des évènements ?"
487
 
488
- #: ../views/admin/display-options-meta.php:83
489
  msgid "Text to display before the location."
490
  msgstr "Texte à afficher avant le lieu."
491
 
492
- #: ../views/admin/display-options-meta.php:88
493
  msgid "Description"
494
  msgstr "Description"
495
 
496
- #: ../views/admin/display-options-meta.php:91
497
  msgid ""
498
  "Show the description of events? (URLs in the description will be made into "
499
  "links)."
@@ -501,43 +537,43 @@ msgstr ""
501
  "Afficher la description des évènements ? (les URL dans la description sont "
502
  "converties en liens)."
503
 
504
- #: ../views/admin/display-options-meta.php:93
505
  msgid "Text to display before the description."
506
  msgstr "Texte à afficher avant la description."
507
 
508
- #: ../views/admin/display-options-meta.php:95
509
  msgid ""
510
  "Maximum number of words to show from description. Leave blank for no limit."
511
  msgstr ""
512
  "Nombre maximum de mots de la description à afficher . Laisser ce champ vide "
513
  "si vous ne souhaitez aucune limite."
514
 
515
- #: ../views/admin/display-options-meta.php:100
516
  msgid "Event Link"
517
  msgstr "Lien de l'évènement"
518
 
519
- #: ../views/admin/display-options-meta.php:103
520
  msgid "Show a link to the Google Calendar page for an event?"
521
  msgstr "Afficher le lien vers la page de l'agenda Google pour un évènement ?"
522
 
523
- #: ../views/admin/display-options-meta.php:107
524
  msgid "Links open in a new window / tab?"
525
  msgstr "Ouvrir les liens dans une nouvelle fenêtre / un nouvel onglet ?"
526
 
527
- #: ../views/admin/display-options-meta.php:109
528
  msgid "The link text to be displayed."
529
  msgstr "Le texte du lien à afficher."
530
 
531
- #: ../views/admin/gce-feed-meta-display.php:69
532
  msgid "Want to be in the know?"
533
  msgstr "Vous souhaitez être tenu informé ?"
534
 
535
- #: ../views/admin/gce-feed-meta-display.php:72
536
  msgid "Get notified when new features are released"
537
  msgstr ""
538
  "Soyez informé lors de la mise à disposition de nouvelles fonctionnalités."
539
 
540
- #: ../views/admin/gce-feed-meta-display.php:83
541
  msgid ""
542
  "Copy and paste this shortcode to display this Google Calendar feed on any "
543
  "post or page."
@@ -545,7 +581,7 @@ msgstr ""
545
  "Copier / coller ce shortcode afin d'afficher l'agenda Google dans n'importe "
546
  "quel article ou page."
547
 
548
- #: ../views/admin/gce-feed-meta-display.php:84
549
  msgid ""
550
  "To avoid display issues, make sure to paste the shortcode in the Text tab of "
551
  "the post editor."
@@ -553,41 +589,41 @@ msgstr ""
553
  "Pour éviter des problèmes d'affichage, copier ce shortcode dans l'onglet "
554
  "«&nbsp;Texte&nbsp;» de l'éditeur d'article."
555
 
556
- #: ../views/admin/gce-feed-meta-display.php:89
557
  msgid "Google Calendar ID"
558
  msgstr "ID de l'agenda Google"
559
 
560
- #: ../views/admin/gce-feed-meta-display.php:93
561
  msgid "The Google Calendar ID."
562
  msgstr "l'ID de l'agenda Google."
563
 
564
- #: ../views/admin/gce-feed-meta-display.php:93
565
  msgid "Example"
566
  msgstr "Exemple"
567
 
568
- #: ../views/admin/gce-feed-meta-display.php:95
569
  msgid "How to find your Google Calendar ID"
570
  msgstr "Comment trouver l'ID de votre agenda GCal?"
571
 
572
- #: ../views/admin/gce-feed-meta-display.php:101
573
  msgid "Search Query"
574
  msgstr "Requête de recherche"
575
 
576
- #: ../views/admin/gce-feed-meta-display.php:104
577
  msgid "Find and show events based on a search query."
578
  msgstr ""
579
  "Trouver et afficher les évènements à partir de la requête indiquée dans ce "
580
  "champ."
581
 
582
- #: ../views/admin/gce-feed-meta-display.php:109
583
  msgid "Expand Recurring Events?"
584
  msgstr "Évènements réccurents étendus ?"
585
 
586
- #: ../views/admin/gce-feed-meta-display.php:111
587
  msgid "Yes"
588
  msgstr "Oui"
589
 
590
- #: ../views/admin/gce-feed-meta-display.php:112
591
  msgid ""
592
  "Display recurring events each time they occur. If disabled, events will be "
593
  "displayed only the first time they occur."
@@ -596,15 +632,15 @@ msgstr ""
596
  "produisent. Sinon ils ne sont affichés que pour la 1<sup>ère</sup> "
597
  "occurrence."
598
 
599
- #: ../views/admin/gce-feed-meta-display.php:117
600
  msgid "Multiple Day Events"
601
  msgstr "Évènements sur plusieurs jours"
602
 
603
- #: ../views/admin/gce-feed-meta-display.php:119
604
  msgid "Show on each day"
605
  msgstr "Afficher chaque jour"
606
 
607
- #: ../views/admin/gce-feed-meta-display.php:120
608
  msgid ""
609
  "Display multiple day events on each day that they span. If disabled, "
610
  "multiple day events will be displayed only on the first day they occur."
@@ -613,65 +649,75 @@ msgstr ""
613
  "couvrent. Si désactivé, les événements sur plusieurs jour seront affichés "
614
  "uniquement sur le premier jour qu'ils se produisent"
615
 
616
- #: ../views/admin/gce-feed-meta-display.php:125
617
  msgid "Display Mode"
618
  msgstr "Mode d'affichage"
619
 
620
- #: ../views/admin/gce-feed-meta-display.php:128 ../views/widgets.php:294
 
621
  msgid "Grid (Month view)"
622
  msgstr "Grille (vue mensuelle)"
623
 
624
- #: ../views/admin/gce-feed-meta-display.php:131 ../views/widgets.php:297
 
625
  msgid "Custom Date Range (List)"
626
  msgstr "Plage de dates spécifique (Liste)"
627
 
628
- #: ../views/admin/gce-feed-meta-display.php:132 ../views/widgets.php:298
 
629
  msgid "Custom Date Range (Grid)"
630
  msgstr "Plage de dates spécifique (Grille)"
631
 
632
- #: ../views/admin/gce-feed-meta-display.php:134
633
  msgid "Select how to display this feed."
634
  msgstr "Définit comment afficher la date / heure de début."
635
 
636
- #: ../views/admin/gce-feed-meta-display.php:139
637
  msgid "Events per Page"
638
  msgstr "Nombre d'évènements par page"
639
 
640
- #: ../views/admin/gce-feed-meta-display.php:142 ../views/widgets.php:313
 
641
  msgid "Number of Days"
642
  msgstr "Nombre de jours"
643
 
644
- #: ../views/admin/gce-feed-meta-display.php:143 ../views/widgets.php:314
 
645
  msgid "Number of Events"
646
  msgstr "Nombre d'évènements par page"
647
 
648
- #: ../views/admin/gce-feed-meta-display.php:144 ../views/widgets.php:315
 
649
  msgid "One Week"
650
  msgstr "Une semaine"
651
 
652
- #: ../views/admin/gce-feed-meta-display.php:145 ../views/widgets.php:316
 
653
  msgid "One Month"
654
  msgstr "Un Mois"
655
 
656
- #: ../views/admin/gce-feed-meta-display.php:150
657
  msgid "How many events to display per page (List View only)."
658
  msgstr "Nombre d'évènements par page à afficher (uniquement pour les listes)"
659
 
660
- #: ../views/admin/gce-feed-meta-display.php:155
661
  msgid "Display Start Date Offset"
662
  msgstr "Date de début d'affichage"
663
 
664
- #: ../views/admin/gce-feed-meta-display.php:158
665
- #: ../views/admin/gce-feed-meta-display.php:170 ../views/widgets.php:330
 
666
  msgid "Number of Days Back"
667
  msgstr "Nombre de jours en arrière"
668
 
669
- #: ../views/admin/gce-feed-meta-display.php:159
670
- #: ../views/admin/gce-feed-meta-display.php:189 ../views/widgets.php:331
 
671
  msgid "Number of Days Forward"
672
  msgstr "Nombre de jours en avant"
673
 
674
- #: ../views/admin/gce-feed-meta-display.php:162 ../views/widgets.php:335
 
675
  msgid ""
676
  "Change to initially display events on a date other than today (List View "
677
  "only)."
@@ -679,25 +725,25 @@ msgstr ""
679
  "A modifier si vous souhaitez afficher la date de début d'affichage à une "
680
  "autre date qu'aujourd'hui. (uniquement pour les listes)"
681
 
682
- #: ../views/admin/gce-feed-meta-display.php:167
683
  msgid "Earliest Feed Event Date"
684
  msgstr "Date de début de l'agenda"
685
 
686
- #: ../views/admin/gce-feed-meta-display.php:171
687
  msgid "Number of Months Back"
688
  msgstr "Nombre de mois en arrière"
689
 
690
- #: ../views/admin/gce-feed-meta-display.php:172
691
  msgid "Number of Years Back"
692
  msgstr "Nombre d'années en arrière"
693
 
694
- #: ../views/admin/gce-feed-meta-display.php:178
695
  msgid "Set how far back to retrieve events regardless of initial display."
696
  msgstr ""
697
  "Définir de combien de temps revenir en arrière pour retrouver les évènements "
698
  "passés quel que soit l'affichage (mois ou page)."
699
 
700
- #: ../views/admin/gce-feed-meta-display.php:180
701
  msgid ""
702
  "<strong>Note:</strong> Total events are currently limited to 2,500 by the "
703
  "Google Calendar API."
@@ -705,77 +751,83 @@ msgstr ""
705
  "<strong>Note:</strong> Le total des événements est actuellement limité à "
706
  "2500 par l'API Google Calendrier."
707
 
708
- #: ../views/admin/gce-feed-meta-display.php:186
709
  msgid "Latest Feed Event Date"
710
  msgstr "Date de fin de l'agenda"
711
 
712
- #: ../views/admin/gce-feed-meta-display.php:190
713
  msgid "Number of Months Forward"
714
  msgstr "Nombre de mois en avant"
715
 
716
- #: ../views/admin/gce-feed-meta-display.php:191
717
  msgid "Number of Years Forward"
718
  msgstr "Nombre d'années en avant"
719
 
720
- #: ../views/admin/gce-feed-meta-display.php:196
721
  msgid ""
722
  "Set how far in the future to retrieve events regardless of initial display."
723
  msgstr ""
724
  "Définir de combien de temps aller en avant pour retrouver les évènements "
725
  "quel que soit l'affichage (mois ou page)."
726
 
727
- #: ../views/admin/gce-feed-meta-display.php:201
728
  msgid "Use Custom Date Range"
729
  msgstr "Utilisez une plage de dates spécifique"
730
 
731
- #: ../views/admin/gce-feed-meta-display.php:207
732
- msgid "Set a specific range of events to retrieve."
733
- msgstr "Définir une plage d'évènements à retrouver"
 
 
 
 
734
 
735
- #: ../views/admin/gce-feed-meta-display.php:213 ../views/widgets.php:345
 
736
  msgid "Show Paging Links"
737
  msgstr "Afficher les liens de pagination"
738
 
739
- #: ../views/admin/gce-feed-meta-display.php:216
740
  msgid "Display Next and Back navigation links."
741
  msgstr ""
742
  "Afficher les boutons «&nbsp;suiv.&nbsp;» et «&nbsp;préc.&nbsp;» afin de "
743
  "naviguer de mois en mois."
744
 
745
- #: ../views/admin/gce-feed-meta-display.php:221 ../views/widgets.php:348
 
746
  msgid "Show Tooltips"
747
  msgstr "Montrer les infobulles"
748
 
749
- #: ../views/admin/gce-feed-meta-display.php:224
750
  msgid "Display tooltips when hovering over events (Grid View only)."
751
  msgstr ""
752
  "Afficher les infobulles quand on passe la souris sur l'évènement (Vue Grille "
753
  "uniquement)"
754
 
755
- #: ../views/admin/gce-feed-meta-display.php:229
756
  msgid "Date Format"
757
  msgstr "Format de date"
758
 
759
- #: ../views/admin/gce-feed-meta-display.php:233
760
- #: ../views/admin/gce-feed-meta-display.php:244
761
  #, php-format
762
  msgid "Use %sPHP date formatting%s."
763
  msgstr "Utiliser le %sformat de date PHP%s."
764
 
765
- #: ../views/admin/gce-feed-meta-display.php:234
766
- #: ../views/admin/gce-feed-meta-display.php:245
767
  msgid "Leave blank to use the default."
768
  msgstr "Laisser vide pour utiliser le paramètre par défaut."
769
 
770
- #: ../views/admin/gce-feed-meta-display.php:240
771
  msgid "Time Format"
772
  msgstr "Format d'heure"
773
 
774
- #: ../views/admin/gce-feed-meta-display.php:251
775
  msgid "Cache Duration"
776
  msgstr "Durée du cache"
777
 
778
- #: ../views/admin/gce-feed-meta-display.php:254
779
  msgid ""
780
  "The length of time, in seconds, to cache the feed (43200 = 12 hours). If "
781
  "this feed changes regularly, you may want to reduce the cache duration."
@@ -783,27 +835,28 @@ msgstr ""
783
  "La durée en secondes de conservation du flux en cache (43200 = 12 heures). "
784
  "Si ce flux change fréquemment, réduisez cette durée."
785
 
786
- #: ../views/admin/gce-feed-sidebar-help.php:6
787
- msgid "Documentation & getting started"
788
- msgstr "Documentation & guide de démarrage"
789
 
790
- #: ../views/admin/gce-feed-sidebar-help.php:11
791
  msgid "Community support forums"
792
  msgstr "Forum d'aide communautaire"
793
 
794
- #: ../views/admin/gce-feed-sidebar-help.php:16
795
- msgid "Rate this plugin"
796
- msgstr "Noter ce plugin"
797
-
798
- #: ../views/admin/gce-feed-sidebar-help.php:21
799
- msgid "View our roadmap & vote"
800
- msgstr "Afficher notre plan de route et votez"
801
-
802
- #: ../views/admin/gce-feed-sidebar-help.php:26
803
  msgid "Get notified of new features"
804
  msgstr "Être averti des nouvelles fonctionnalités"
805
 
806
- #: ../views/widgets.php:28
 
 
 
 
 
 
 
 
 
807
  msgid ""
808
  "Display a list or calendar grid of events from one or more Google Calendar "
809
  "feeds you have added"
@@ -811,7 +864,7 @@ msgstr ""
811
  "Affiche une liste ou un tableau d'évènements à partir d'un ou plusieurs "
812
  "agendas Google ajoutés par vos soins."
813
 
814
- #: ../views/widgets.php:167
815
  msgid ""
816
  "No valid Feed IDs have been entered for this widget. Please check that you "
817
  "have entered the IDs correctly in the widget settings (Appearance > "
@@ -821,7 +874,7 @@ msgstr ""
821
  "que l'ID est correctement définie dans la configuration (Apparence > "
822
  "Widgets) et que les agendas n'ont pas été supprimés."
823
 
824
- #: ../views/widgets.php:207
825
  msgid ""
826
  "There was a problem with one or more of your feed IDs. Please check your "
827
  "widget settings and make sure they are correct."
@@ -830,52 +883,52 @@ msgstr ""
830
  "Merci de vérifier la configuration de vos code et assurez-vous qu'ils soient "
831
  "corrects."
832
 
833
- #: ../views/widgets.php:213
834
  msgid "You have not added any feeds yet."
835
  msgstr "Vous n'avez pas encore ajouté d'agenda."
836
 
837
- #: ../views/widgets.php:256
838
  msgid "There are no feeds created yet."
839
  msgstr "Aucun agenda n'a encore été créé."
840
 
841
- #: ../views/widgets.php:257
842
  msgid "Add your first feed!"
843
  msgstr "Ajoutez votre premier agenda !"
844
 
845
- #: ../views/widgets.php:267
846
  msgid "Events on"
847
  msgstr "Évènements le"
848
 
849
- #: ../views/widgets.php:281
850
  msgid "Title:"
851
  msgstr "Titre :"
852
 
853
- #: ../views/widgets.php:286
854
  msgid "Feeds to Display (comma separated list - i.e. 101,102,103):"
855
  msgstr ""
856
  "Agendas à afficher (liste séparée par une virgule - ex.&nbsp;: 101,102,103) :"
857
 
858
- #: ../views/widgets.php:292
859
  msgid "Display Events as:"
860
  msgstr "Afficher les évènements comme&nbsp;:"
861
 
862
- #: ../views/widgets.php:303
863
  msgid "Sort Order (List View only):"
864
  msgstr "Ordre de tri (uniquement pour les listes)&nbsp;:"
865
 
866
- #: ../views/widgets.php:305
867
  msgid "Ascending"
868
  msgstr "Croissant"
869
 
870
- #: ../views/widgets.php:306
871
  msgid "Descending"
872
  msgstr "Décroissant"
873
 
874
- #: ../views/widgets.php:311
875
  msgid "Events per Page (List View only):"
876
  msgstr "Nombre d'évènements par page (uniquement pour les listes)&nbsp;:"
877
 
878
- #: ../views/widgets.php:324
879
  msgid ""
880
  "This setting will pull from the custom date range set in the main feed "
881
  "settings and cannot be changed here."
@@ -883,11 +936,11 @@ msgstr ""
883
  "Ce paramètre est issu de la plage de dates spécifique défini dans les "
884
  "paramètres principaux du flux et ne peut-être modifié ici."
885
 
886
- #: ../views/widgets.php:328
887
  msgid "Display Start Date Offset (List View only):"
888
  msgstr "Date de début d'affichage (uniquement pour les listes)&nbsp;:"
889
 
890
- #: ../views/widgets.php:339
891
  msgid ""
892
  "Display Title on Tooltip/List Item (e.g. 'Events on 7th March'). Grouped "
893
  "lists always have a title displayed."
@@ -895,6 +948,18 @@ msgstr ""
895
  "Afficher le titre dans l'infobulle / l'élément de liste (ex.&nbsp;: "
896
  "'Évènements du 7 mars'). Les listes groupées affichent toujours un titre."
897
 
 
 
 
 
 
 
 
 
 
 
 
 
898
  #~ msgid "Show Paging Links:"
899
  #~ msgstr "Afficher les liens de pagination&nbsp;:"
900
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Google Calendar Events\n"
4
+ "POT-Creation-Date: 2015-07-16 12:53-0700\n"
5
+ "PO-Revision-Date: 2015-07-27 16:44+0100\n"
6
  "Last-Translator: Vincent B <vincent@yahoo.fr>\n"
7
  "Language-Team: Jojaba <jojaba@gmail.com>\n"
8
  "Language: fr\n"
16
  "X-Poedit-SearchPath-0: google-calendar-events\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: google-calendar-events/class-google-calendar-events-admin.php:126
20
+ #: google-calendar-events/class-google-calendar-events-admin.php:127
21
+ #: google-calendar-events/class-google-calendar-events-admin.php:217
22
+ #: google-calendar-events/includes/register-settings.php:68
23
  msgid "General Settings"
24
  msgstr "Paramètres généraux"
25
 
26
+ #: google-calendar-events/class-google-calendar-events-admin.php:205
27
+ #: google-calendar-events/views/widgets.php:27
28
  msgid "Google Calendar Events"
29
  msgstr "Google Calendar Events"
30
 
31
+ #: google-calendar-events/class-google-calendar-events-admin.php:218
32
  msgid "Feeds"
33
  msgstr "Flux"
34
 
35
+ #: google-calendar-events/class-google-calendar-events.php:88
36
  msgid "Loading..."
37
  msgstr "Chargement..."
38
 
39
+ #: google-calendar-events/google-calendar-events.php:43
40
+ #, php-format
41
+ msgid ""
42
+ "Google Events Calendar requires PHP %1$s and WordPress %2$s to function "
43
+ "properly. PHP version found: %3$s. WordPress installed version: %4$s. Please "
44
+ "upgrade to meet the minimum requirements."
45
+ msgstr ""
46
+ "Google Events Calendar nécessite PHP %1$s et WordPress %2$s pour fonctionner "
47
+ "de manière correcte. PHP version trouvée: %3$s. WordPress version "
48
+ "installée : %4$s. Merci de procéder aux mises à jour pour un fonctionnement "
49
+ "correct."
50
+
51
+ #: google-calendar-events/includes/admin/admin-functions.php:20
52
  msgid "Cache has been cleared for this feed."
53
  msgstr "Le cache a été vidé pour cet agenda."
54
 
55
+ #: google-calendar-events/includes/admin/admin-functions.php:35
56
+ #: google-calendar-events/includes/admin/admin-functions.php:56
57
  msgid "Starts:"
58
  msgstr "Début :"
59
 
60
+ #: google-calendar-events/includes/admin/admin-functions.php:36
61
+ #: google-calendar-events/includes/admin/admin-functions.php:58
62
  msgid "Ends:"
63
  msgstr "Fin :"
64
 
65
+ #: google-calendar-events/includes/admin/admin-functions.php:37
66
+ #: google-calendar-events/includes/admin/admin-functions.php:60
67
  msgid "Location:"
68
  msgstr "Lieu :"
69
 
70
+ #: google-calendar-events/includes/admin/admin-functions.php:38
71
+ #: google-calendar-events/includes/admin/admin-functions.php:61
72
  msgid "Description:"
73
  msgstr "Description :"
74
 
75
+ #: google-calendar-events/includes/admin/admin-functions.php:39
76
  msgid "More details..."
77
  msgstr "Plus de détails..."
78
 
79
+ #: google-calendar-events/includes/admin/admin-functions.php:63
80
  msgid "More Details"
81
  msgstr "Plus de détails"
82
 
83
+ #: google-calendar-events/includes/admin/admin-functions.php:77
84
+ #: google-calendar-events/includes/gce-feed-cpt.php:292
85
  msgid "Clear Cache"
86
  msgstr "Vider le cache"
87
 
88
+ #: google-calendar-events/includes/admin/admin-notice.php:26
89
  msgid "GCal API Key Notice"
90
  msgstr "Clé d'API Google"
91
 
92
+ #: google-calendar-events/includes/admin/admin-notice.php:28
93
  msgid ""
94
  "GCal Events uses the Google Calendar API version 3. By default this plugin "
95
  "uses a public shared key across all plugin users."
97
  "GCal Events utilise à présent la version 3 de l'API Google, qui nécessite "
98
  "l'utilisation d'une clé publique."
99
 
100
+ #: google-calendar-events/includes/admin/admin-notice.php:30
101
  msgid ""
102
  "This key is limited to 500,000 requests per day and 5 requests per second. "
103
  "To avoid running into any potential limits you can use your own Google API "
107
  "éviter de rencontrer des limitations, vous pouvez utiliser votre clé API "
108
  "Google personnelle."
109
 
110
+ #: google-calendar-events/includes/admin/admin-notice.php:33
111
  msgid "Enter your GCal API key"
112
  msgstr "Entrez votre clé API GCal"
113
 
114
+ #: google-calendar-events/includes/admin/admin-notice.php:34
115
  msgid "Configure GCal feeds"
116
  msgstr "Configurez vos flux GCal"
117
 
118
+ #: google-calendar-events/includes/admin/admin-notice.php:35
119
  msgid "Hide this"
120
  msgstr "Masquer"
121
 
122
+ #: google-calendar-events/includes/class-gce-display.php:193
123
+ #: google-calendar-events/includes/class-gce-display.php:303
124
  msgid "Back"
125
  msgstr "Préc."
126
 
127
+ #: google-calendar-events/includes/class-gce-display.php:197
128
+ #: google-calendar-events/includes/class-gce-display.php:304
129
  msgid "Next"
130
  msgstr "Suiv."
131
 
132
+ #: google-calendar-events/includes/class-gce-display.php:406
133
  msgid "No events to display."
134
  msgstr "Aucun évènement à afficher."
135
 
136
+ #: google-calendar-events/includes/class-gce-event.php:522
137
  #, php-format
138
  msgid "%s year"
139
  msgstr "%s année"
140
 
141
+ #: google-calendar-events/includes/class-gce-event.php:522
142
  #, php-format
143
  msgid "%s years"
144
  msgstr "%s années"
145
 
146
+ #: google-calendar-events/includes/class-gce-event.php:523
147
  #, php-format
148
  msgid "%s month"
149
  msgstr "%s mois"
150
 
151
+ #: google-calendar-events/includes/class-gce-event.php:523
152
  #, php-format
153
  msgid "%s months"
154
  msgstr "%s mois"
155
 
156
+ #: google-calendar-events/includes/class-gce-event.php:524
157
  #, php-format
158
  msgid "%s week"
159
  msgstr "%s semaine"
160
 
161
+ #: google-calendar-events/includes/class-gce-event.php:524
162
  #, php-format
163
  msgid "%s weeks"
164
  msgstr "%s semaines"
165
 
166
+ #: google-calendar-events/includes/class-gce-event.php:525
167
  #, php-format
168
  msgid "%s day"
169
  msgstr "%s jour"
170
 
171
+ #: google-calendar-events/includes/class-gce-event.php:525
172
  #, php-format
173
  msgid "%s days"
174
  msgstr "%s jours"
175
 
176
+ #: google-calendar-events/includes/class-gce-event.php:526
177
  #, php-format
178
  msgid "%s hour"
179
  msgstr "%s heure"
180
 
181
+ #: google-calendar-events/includes/class-gce-event.php:526
182
  #, php-format
183
  msgid "%s hours"
184
  msgstr "%s heures"
185
 
186
+ #: google-calendar-events/includes/class-gce-event.php:527
187
  #, php-format
188
  msgid "%s min"
189
  msgstr "%s minute"
190
 
191
+ #: google-calendar-events/includes/class-gce-event.php:527
192
  #, php-format
193
  msgid "%s mins"
194
  msgstr "%s minutes"
195
 
196
+ #: google-calendar-events/includes/class-gce-feed.php:93
197
  msgid ""
198
  "The Google Calendar ID has not been set. Please make sure to set it "
199
  "correctly in the Feed settings."
201
  "L'ID de l'agenda n'a pas été indiqué. Veuillez vérifier qu'il est défini "
202
  "correctement dans la configuration."
203
 
204
+ #: google-calendar-events/includes/class-gce-feed.php:197
205
  msgid ""
206
  "Some data was retrieved, but could not be parsed successfully. Please ensure "
207
  "your feed settings are correct."
209
  "Des données ont été retrouvées mais n'ont pu être analysées. Assurez-vous "
210
  "que les paramètres de votre agenda sont corrects."
211
 
212
+ #: google-calendar-events/includes/class-gce-feed.php:200
213
  msgid "An error has occured."
214
  msgstr "Une erreur est survenue."
215
 
216
+ #: google-calendar-events/includes/class-gce-feed.php:205
217
  msgid " Please ensure your calendar ID is correct."
218
  msgstr "Assurez-vous que l'ID de votre agenda est correcte."
219
 
220
+ #: google-calendar-events/includes/gce-feed-cpt.php:21
221
  msgid "Google Calendar Feeds"
222
  msgstr "Flux des agendas"
223
 
224
+ #: google-calendar-events/includes/gce-feed-cpt.php:22
225
+ #: google-calendar-events/includes/gce-feed-cpt.php:24
226
+ #: google-calendar-events/includes/gce-feed-cpt.php:72
227
  msgid "Feed"
228
  msgstr "Flux"
229
 
230
+ #: google-calendar-events/includes/gce-feed-cpt.php:23
231
  msgid "GCal Events"
232
  msgstr "Évènements GCal"
233
 
234
+ #: google-calendar-events/includes/gce-feed-cpt.php:25
235
  msgid "Add New"
236
  msgstr "Ajouter"
237
 
238
+ #: google-calendar-events/includes/gce-feed-cpt.php:26
239
  msgid "Add New Feed"
240
  msgstr "Ajouter un nouvel agenda"
241
 
242
+ #: google-calendar-events/includes/gce-feed-cpt.php:27
243
  msgid "New Feed"
244
  msgstr "Nouvel agenda"
245
 
246
+ #: google-calendar-events/includes/gce-feed-cpt.php:28
247
  msgid "Edit Feed"
248
  msgstr "Éditer l'agenda"
249
 
250
+ #: google-calendar-events/includes/gce-feed-cpt.php:29
251
  msgid "View Feed"
252
  msgstr "Afficher l'agenda"
253
 
254
+ #: google-calendar-events/includes/gce-feed-cpt.php:30
255
  msgid "All GCal Feeds"
256
  msgstr "Tous les agendas"
257
 
258
+ #: google-calendar-events/includes/gce-feed-cpt.php:31
259
  msgid "Search GCal Feeds"
260
  msgstr "Chercher dans les agendas"
261
 
262
+ #: google-calendar-events/includes/gce-feed-cpt.php:32
263
  msgid "No feeds found."
264
  msgstr "Aucun agenda trouvé."
265
 
266
+ #: google-calendar-events/includes/gce-feed-cpt.php:33
267
  msgid "No feeds found in Trash."
268
  msgstr "Aucun agenda trouvé dans la corbeille."
269
 
270
+ #: google-calendar-events/includes/gce-feed-cpt.php:70
271
  msgid "feed"
272
  msgstr "agenda"
273
 
274
+ #: google-calendar-events/includes/gce-feed-cpt.php:75
275
+ #: google-calendar-events/includes/gce-feed-cpt.php:76
276
  #, php-format
277
  msgid "%4$s updated. %1$sView %2$s%3$s"
278
  msgstr "%4$s mis à jour. %1$sVoir %2$s%3$s"
279
 
280
+ #: google-calendar-events/includes/gce-feed-cpt.php:77
281
  #, php-format
282
  msgid "%4$s published. %1$sView %2$s%3$s"
283
  msgstr "%4$s publié. %1$sVoir %2$s%3$s"
284
 
285
+ #: google-calendar-events/includes/gce-feed-cpt.php:78
286
  #, php-format
287
  msgid "%4$s saved. %1$sView %2$s%3$s"
288
  msgstr "%4$s enregistré. %1$sVoir %2$s%3$s"
289
 
290
+ #: google-calendar-events/includes/gce-feed-cpt.php:79
291
  #, php-format
292
  msgid "%4$s submitted. %1$sView %2$s%3$s"
293
  msgstr "%4$s soumis. %1$sVoir %2$s%3$s"
294
 
295
+ #: google-calendar-events/includes/gce-feed-cpt.php:80
296
  #, php-format
297
  msgid "%4$s draft updated. %1$sView %2$s%3$s"
298
  msgstr "%4$s brouillon mis à jour. %1$sVoir %2$s%3$s"
299
 
300
+ #: google-calendar-events/includes/gce-feed-cpt.php:95
301
  msgid "Feed Settings"
302
  msgstr "Paramètres du flux"
303
 
304
+ #: google-calendar-events/includes/gce-feed-cpt.php:97
305
+ msgid "Resources"
306
+ msgstr "Ressources"
307
 
308
+ #: google-calendar-events/includes/gce-feed-cpt.php:98
309
  msgid "Display Options"
310
  msgstr "Options d'affichage"
311
 
312
+ #: google-calendar-events/includes/gce-feed-cpt.php:242
313
  msgid "Feed ID"
314
  msgstr "ID de l'agenda"
315
 
316
+ #: google-calendar-events/includes/gce-feed-cpt.php:243
317
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:79
318
  msgid "Feed Shortcode"
319
  msgstr "Shortcode de l'agenda"
320
 
321
+ #: google-calendar-events/includes/gce-feed-cpt.php:244
322
  msgid "Display Type"
323
  msgstr "Type d'affichage"
324
 
325
+ #: google-calendar-events/includes/gce-feed-cpt.php:271
326
  msgid "Grid"
327
  msgstr "Tableau"
328
 
329
+ #: google-calendar-events/includes/gce-feed-cpt.php:273
330
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:129
331
+ #: google-calendar-events/views/widgets.php:295
332
  msgid "List"
333
  msgstr "Liste"
334
 
335
+ #: google-calendar-events/includes/gce-feed-cpt.php:275
336
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:130
337
+ #: google-calendar-events/views/widgets.php:296
338
  msgid "Grouped List"
339
  msgstr "Liste groupée"
340
 
341
+ #: google-calendar-events/includes/gce-feed-cpt.php:277
342
  msgid "Custom Date Range"
343
  msgstr "Utilisez une plage de dates spécifique"
344
 
345
+ #: google-calendar-events/includes/register-settings.php:29
346
  msgid "Google API Key"
347
  msgstr "Clé d'API Google"
348
 
349
+ #: google-calendar-events/includes/register-settings.php:30
350
  msgid ""
351
  "If left blank all displayed Google calendars will use a public Google API "
352
  "key shared across all plugin users."
354
  "Si aucune clé n'est indiquée tous les agendas Google utiliseront une seule "
355
  "et même clé d'API pour tous les utilisateurs de ce plugin."
356
 
357
+ #: google-calendar-events/includes/register-settings.php:31
358
  msgid ""
359
  "Currently the shared key is limited to 500,000 requests per day and 5 "
360
  "requests per second."
362
  "Actuellement, la clé partagée vous limite à 500&nbsp;000 requêtes par jour "
363
  "et 5 requêtes par seconde."
364
 
365
+ #: google-calendar-events/includes/register-settings.php:32
366
  #, php-format
367
  msgid ""
368
  "To avoid these limits <a href=\"%s\" target=\"_blank\">click here for "
372
  "obtenir des instructions afin de générer et utiliser votre propre clé d'API "
373
  "Google.</a>"
374
 
375
+ #: google-calendar-events/includes/register-settings.php:39
376
  msgid "Always Enqueue Scripts & Styles"
377
  msgstr "Toujours placer Scripts & Styles en file d'attente"
378
 
379
+ #: google-calendar-events/includes/register-settings.php:40
380
+ msgid "Enqueue this plugin's scripts and styles on every post and page."
381
+ msgstr ""
382
+ "Metttre les script du plugin et les feuilles de style sur le tampont de "
383
+ "chaque article et page."
384
+
385
+ #: google-calendar-events/includes/register-settings.php:41
386
+ msgid "Useful if using shortcodes in widgets or other non-standard locations."
387
+ msgstr ""
388
+ "Utile si vous utilisez les raccourcis dans les widgets ou d'autres "
389
+ "applicatifs non-standards"
390
+
391
+ #: google-calendar-events/includes/register-settings.php:46
392
  msgid "Disable Plugin CSS"
393
  msgstr "Désactiver le CSS du Plugin"
394
 
395
+ #: google-calendar-events/includes/register-settings.php:47
396
  msgid ""
397
  "If this option is checked, this plugin's CSS file will not be referenced."
398
  msgstr ""
399
  "Si cette option est cochée, le fichier CSS du Plugin ne sera pas référencé"
400
 
401
+ #: google-calendar-events/includes/register-settings.php:52
402
  msgid "Save Settings"
403
  msgstr "Enregistrer les paramètres"
404
 
405
+ #: google-calendar-events/includes/register-settings.php:53
406
+ msgid "Save your settings when uninstalling this plugin."
407
+ msgstr ""
408
+ "Enregistre vos modifications avant de désinstaller le plugin. Utile pour les "
409
+ "mises à jour ou réinstallations"
410
+
411
+ #: google-calendar-events/includes/register-settings.php:54
412
+ msgid "Useful when upgrading or re-installing."
413
  msgstr ""
414
  "Enregistre vos modifications avant de désinstaller le plugin. Utile pour les "
415
  "mises à jour ou réinstallations."
416
 
417
+ #: google-calendar-events/includes/register-settings.php:183
418
  #, php-format
419
  msgid ""
420
  "The callback function used for the <strong>%s</strong> setting is missing."
422
  "La fonction de rappel utilisée pour la configuration de <strong>%s</strong> "
423
  "est introuvable."
424
 
425
+ #: google-calendar-events/includes/shortcodes.php:95
426
  msgid ""
427
  "There was a problem with one or more of your feed IDs. Please check your "
428
  "shortcode settings and make sure they are correct."
431
  "Merci de vérifier la configuration de vos code et assurez-vous qu'ils soient "
432
  "corrects."
433
 
434
+ #: google-calendar-events/views/admin/display-options-meta.php:39
435
  msgid ""
436
  "Check this box to use the simple display options below instead of the Event "
437
  "Builder code on the left."
439
  "Cocher cette case pour utiliser les options d'affichage ci-dessous au lieu "
440
  "du code du constructeur d'évènements à gauche."
441
 
442
+ #: google-calendar-events/views/admin/display-options-meta.php:44
443
  msgid "Start date / time display"
444
  msgstr "Affichage date / heure de début"
445
 
446
+ #: google-calendar-events/views/admin/display-options-meta.php:45
447
  msgid "Select how to display the start date / time."
448
  msgstr "Définit comment afficher la date / heure de début."
449
 
450
+ #: google-calendar-events/views/admin/display-options-meta.php:47
451
+ #: google-calendar-events/views/admin/display-options-meta.php:61
452
  msgid "None"
453
  msgstr "Aucun"
454
 
455
+ #: google-calendar-events/views/admin/display-options-meta.php:48
456
  msgid "Start time"
457
  msgstr "Heure de début"
458
 
459
+ #: google-calendar-events/views/admin/display-options-meta.php:49
460
  msgid "Start date"
461
  msgstr "Date de début"
462
 
463
+ #: google-calendar-events/views/admin/display-options-meta.php:50
464
  msgid "Start time and date"
465
  msgstr "Heure et date de début"
466
 
467
+ #: google-calendar-events/views/admin/display-options-meta.php:51
468
  msgid "Start date and time"
469
  msgstr "Date et Heure de début"
470
 
471
+ #: google-calendar-events/views/admin/display-options-meta.php:53
472
  msgid "Text to display before the start time."
473
  msgstr "Texte à afficher avant l'heure de début."
474
 
475
+ #: google-calendar-events/views/admin/display-options-meta.php:58
476
  msgid "End time/date display"
477
  msgstr "Affichage de l'heure / date de fin"
478
 
479
+ #: google-calendar-events/views/admin/display-options-meta.php:59
480
  msgid "Select how to display the end date / time."
481
  msgstr "Définit comment afficher la date / heure de fin."
482
 
483
+ #: google-calendar-events/views/admin/display-options-meta.php:62
484
  msgid "End time"
485
  msgstr "Heure de fin"
486
 
487
+ #: google-calendar-events/views/admin/display-options-meta.php:63
488
  msgid "End date"
489
  msgstr "Date de fin"
490
 
491
+ #: google-calendar-events/views/admin/display-options-meta.php:64
492
  msgid "End time and date"
493
  msgstr "Heure et date de fin"
494
 
495
+ #: google-calendar-events/views/admin/display-options-meta.php:65
496
  msgid "End date and time"
497
  msgstr "Date et heure de fin"
498
 
499
+ #: google-calendar-events/views/admin/display-options-meta.php:67
500
  msgid "Text to display before the end time."
501
  msgstr "Texte à afficher avant l'heure de fin."
502
 
503
+ #: google-calendar-events/views/admin/display-options-meta.php:72
504
  msgid "Separator"
505
  msgstr "Séparateur"
506
 
507
+ #: google-calendar-events/views/admin/display-options-meta.php:74
508
  msgid ""
509
  "If you have chosen to display both the time and date above, enter the text / "
510
  "characters to display between the time and date here (including any spaces)."
513
  "indiquez le texte / les caractères à afficher entre la date et l'heure ici "
514
  "(avec les espaces)."
515
 
516
+ #: google-calendar-events/views/admin/display-options-meta.php:80
517
  msgid "Location"
518
  msgstr "Lieu"
519
 
520
+ #: google-calendar-events/views/admin/display-options-meta.php:82
521
  msgid "Show the location of events?"
522
  msgstr "Afficher le lieu des évènements ?"
523
 
524
+ #: google-calendar-events/views/admin/display-options-meta.php:83
525
  msgid "Text to display before the location."
526
  msgstr "Texte à afficher avant le lieu."
527
 
528
+ #: google-calendar-events/views/admin/display-options-meta.php:88
529
  msgid "Description"
530
  msgstr "Description"
531
 
532
+ #: google-calendar-events/views/admin/display-options-meta.php:91
533
  msgid ""
534
  "Show the description of events? (URLs in the description will be made into "
535
  "links)."
537
  "Afficher la description des évènements ? (les URL dans la description sont "
538
  "converties en liens)."
539
 
540
+ #: google-calendar-events/views/admin/display-options-meta.php:93
541
  msgid "Text to display before the description."
542
  msgstr "Texte à afficher avant la description."
543
 
544
+ #: google-calendar-events/views/admin/display-options-meta.php:95
545
  msgid ""
546
  "Maximum number of words to show from description. Leave blank for no limit."
547
  msgstr ""
548
  "Nombre maximum de mots de la description à afficher . Laisser ce champ vide "
549
  "si vous ne souhaitez aucune limite."
550
 
551
+ #: google-calendar-events/views/admin/display-options-meta.php:100
552
  msgid "Event Link"
553
  msgstr "Lien de l'évènement"
554
 
555
+ #: google-calendar-events/views/admin/display-options-meta.php:103
556
  msgid "Show a link to the Google Calendar page for an event?"
557
  msgstr "Afficher le lien vers la page de l'agenda Google pour un évènement ?"
558
 
559
+ #: google-calendar-events/views/admin/display-options-meta.php:107
560
  msgid "Links open in a new window / tab?"
561
  msgstr "Ouvrir les liens dans une nouvelle fenêtre / un nouvel onglet ?"
562
 
563
+ #: google-calendar-events/views/admin/display-options-meta.php:109
564
  msgid "The link text to be displayed."
565
  msgstr "Le texte du lien à afficher."
566
 
567
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:69
568
  msgid "Want to be in the know?"
569
  msgstr "Vous souhaitez être tenu informé ?"
570
 
571
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:72
572
  msgid "Get notified when new features are released"
573
  msgstr ""
574
  "Soyez informé lors de la mise à disposition de nouvelles fonctionnalités."
575
 
576
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:83
577
  msgid ""
578
  "Copy and paste this shortcode to display this Google Calendar feed on any "
579
  "post or page."
581
  "Copier / coller ce shortcode afin d'afficher l'agenda Google dans n'importe "
582
  "quel article ou page."
583
 
584
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:84
585
  msgid ""
586
  "To avoid display issues, make sure to paste the shortcode in the Text tab of "
587
  "the post editor."
589
  "Pour éviter des problèmes d'affichage, copier ce shortcode dans l'onglet "
590
  "«&nbsp;Texte&nbsp;» de l'éditeur d'article."
591
 
592
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:89
593
  msgid "Google Calendar ID"
594
  msgstr "ID de l'agenda Google"
595
 
596
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:93
597
  msgid "The Google Calendar ID."
598
  msgstr "l'ID de l'agenda Google."
599
 
600
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:93
601
  msgid "Example"
602
  msgstr "Exemple"
603
 
604
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:95
605
  msgid "How to find your Google Calendar ID"
606
  msgstr "Comment trouver l'ID de votre agenda GCal?"
607
 
608
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:101
609
  msgid "Search Query"
610
  msgstr "Requête de recherche"
611
 
612
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:104
613
  msgid "Find and show events based on a search query."
614
  msgstr ""
615
  "Trouver et afficher les évènements à partir de la requête indiquée dans ce "
616
  "champ."
617
 
618
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:109
619
  msgid "Expand Recurring Events?"
620
  msgstr "Évènements réccurents étendus ?"
621
 
622
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:111
623
  msgid "Yes"
624
  msgstr "Oui"
625
 
626
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:112
627
  msgid ""
628
  "Display recurring events each time they occur. If disabled, events will be "
629
  "displayed only the first time they occur."
632
  "produisent. Sinon ils ne sont affichés que pour la 1<sup>ère</sup> "
633
  "occurrence."
634
 
635
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:117
636
  msgid "Multiple Day Events"
637
  msgstr "Évènements sur plusieurs jours"
638
 
639
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:119
640
  msgid "Show on each day"
641
  msgstr "Afficher chaque jour"
642
 
643
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:120
644
  msgid ""
645
  "Display multiple day events on each day that they span. If disabled, "
646
  "multiple day events will be displayed only on the first day they occur."
649
  "couvrent. Si désactivé, les événements sur plusieurs jour seront affichés "
650
  "uniquement sur le premier jour qu'ils se produisent"
651
 
652
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:125
653
  msgid "Display Mode"
654
  msgstr "Mode d'affichage"
655
 
656
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:128
657
+ #: google-calendar-events/views/widgets.php:294
658
  msgid "Grid (Month view)"
659
  msgstr "Grille (vue mensuelle)"
660
 
661
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:131
662
+ #: google-calendar-events/views/widgets.php:297
663
  msgid "Custom Date Range (List)"
664
  msgstr "Plage de dates spécifique (Liste)"
665
 
666
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:132
667
+ #: google-calendar-events/views/widgets.php:298
668
  msgid "Custom Date Range (Grid)"
669
  msgstr "Plage de dates spécifique (Grille)"
670
 
671
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:134
672
  msgid "Select how to display this feed."
673
  msgstr "Définit comment afficher la date / heure de début."
674
 
675
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:139
676
  msgid "Events per Page"
677
  msgstr "Nombre d'évènements par page"
678
 
679
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:142
680
+ #: google-calendar-events/views/widgets.php:313
681
  msgid "Number of Days"
682
  msgstr "Nombre de jours"
683
 
684
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:143
685
+ #: google-calendar-events/views/widgets.php:314
686
  msgid "Number of Events"
687
  msgstr "Nombre d'évènements par page"
688
 
689
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:144
690
+ #: google-calendar-events/views/widgets.php:315
691
  msgid "One Week"
692
  msgstr "Une semaine"
693
 
694
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:145
695
+ #: google-calendar-events/views/widgets.php:316
696
  msgid "One Month"
697
  msgstr "Un Mois"
698
 
699
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:150
700
  msgid "How many events to display per page (List View only)."
701
  msgstr "Nombre d'évènements par page à afficher (uniquement pour les listes)"
702
 
703
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:155
704
  msgid "Display Start Date Offset"
705
  msgstr "Date de début d'affichage"
706
 
707
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:158
708
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:170
709
+ #: google-calendar-events/views/widgets.php:330
710
  msgid "Number of Days Back"
711
  msgstr "Nombre de jours en arrière"
712
 
713
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:159
714
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:189
715
+ #: google-calendar-events/views/widgets.php:331
716
  msgid "Number of Days Forward"
717
  msgstr "Nombre de jours en avant"
718
 
719
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:162
720
+ #: google-calendar-events/views/widgets.php:335
721
  msgid ""
722
  "Change to initially display events on a date other than today (List View "
723
  "only)."
725
  "A modifier si vous souhaitez afficher la date de début d'affichage à une "
726
  "autre date qu'aujourd'hui. (uniquement pour les listes)"
727
 
728
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:167
729
  msgid "Earliest Feed Event Date"
730
  msgstr "Date de début de l'agenda"
731
 
732
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:171
733
  msgid "Number of Months Back"
734
  msgstr "Nombre de mois en arrière"
735
 
736
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:172
737
  msgid "Number of Years Back"
738
  msgstr "Nombre d'années en arrière"
739
 
740
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:178
741
  msgid "Set how far back to retrieve events regardless of initial display."
742
  msgstr ""
743
  "Définir de combien de temps revenir en arrière pour retrouver les évènements "
744
  "passés quel que soit l'affichage (mois ou page)."
745
 
746
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:180
747
  msgid ""
748
  "<strong>Note:</strong> Total events are currently limited to 2,500 by the "
749
  "Google Calendar API."
751
  "<strong>Note:</strong> Le total des événements est actuellement limité à "
752
  "2500 par l'API Google Calendrier."
753
 
754
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:186
755
  msgid "Latest Feed Event Date"
756
  msgstr "Date de fin de l'agenda"
757
 
758
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:190
759
  msgid "Number of Months Forward"
760
  msgstr "Nombre de mois en avant"
761
 
762
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:191
763
  msgid "Number of Years Forward"
764
  msgstr "Nombre d'années en avant"
765
 
766
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:196
767
  msgid ""
768
  "Set how far in the future to retrieve events regardless of initial display."
769
  msgstr ""
770
  "Définir de combien de temps aller en avant pour retrouver les évènements "
771
  "quel que soit l'affichage (mois ou page)."
772
 
773
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:201
774
  msgid "Use Custom Date Range"
775
  msgstr "Utilisez une plage de dates spécifique"
776
 
777
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:207
778
+ msgid ""
779
+ "Set a specific range of events to retrieve. Leaving either field blank will "
780
+ "set the date to the current day."
781
+ msgstr ""
782
+ "Définir une plage d'événements spécifiques pour récupérer. Laissez le champ "
783
+ "vide donnera la date du jour en cours."
784
 
785
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:213
786
+ #: google-calendar-events/views/widgets.php:345
787
  msgid "Show Paging Links"
788
  msgstr "Afficher les liens de pagination"
789
 
790
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:216
791
  msgid "Display Next and Back navigation links."
792
  msgstr ""
793
  "Afficher les boutons «&nbsp;suiv.&nbsp;» et «&nbsp;préc.&nbsp;» afin de "
794
  "naviguer de mois en mois."
795
 
796
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:221
797
+ #: google-calendar-events/views/widgets.php:348
798
  msgid "Show Tooltips"
799
  msgstr "Montrer les infobulles"
800
 
801
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:224
802
  msgid "Display tooltips when hovering over events (Grid View only)."
803
  msgstr ""
804
  "Afficher les infobulles quand on passe la souris sur l'évènement (Vue Grille "
805
  "uniquement)"
806
 
807
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:229
808
  msgid "Date Format"
809
  msgstr "Format de date"
810
 
811
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:233
812
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:244
813
  #, php-format
814
  msgid "Use %sPHP date formatting%s."
815
  msgstr "Utiliser le %sformat de date PHP%s."
816
 
817
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:234
818
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:245
819
  msgid "Leave blank to use the default."
820
  msgstr "Laisser vide pour utiliser le paramètre par défaut."
821
 
822
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:240
823
  msgid "Time Format"
824
  msgstr "Format d'heure"
825
 
826
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:251
827
  msgid "Cache Duration"
828
  msgstr "Durée du cache"
829
 
830
+ #: google-calendar-events/views/admin/gce-feed-meta-display.php:254
831
  msgid ""
832
  "The length of time, in seconds, to cache the feed (43200 = 12 hours). If "
833
  "this feed changes regularly, you may want to reduce the cache duration."
835
  "La durée en secondes de conservation du flux en cache (43200 = 12 heures). "
836
  "Si ce flux change fréquemment, réduisez cette durée."
837
 
838
+ #: google-calendar-events/views/admin/gce-feed-sidebar-help.php:6
839
+ msgid "Documentation"
840
+ msgstr "Documentation"
841
 
842
+ #: google-calendar-events/views/admin/gce-feed-sidebar-help.php:11
843
  msgid "Community support forums"
844
  msgstr "Forum d'aide communautaire"
845
 
846
+ #: google-calendar-events/views/admin/gce-feed-sidebar-help.php:16
 
 
 
 
 
 
 
 
847
  msgid "Get notified of new features"
848
  msgstr "Être averti des nouvelles fonctionnalités"
849
 
850
+ #: google-calendar-events/views/admin/gce-feed-sidebar-help.php:21
851
+ msgid "Your review helps more folks find our plugin. Thanks so much!"
852
+ msgstr ""
853
+ "Votre revue aide plus de personnes à trouver notre plugin. Merci beaucoup !"
854
+
855
+ #: google-calendar-events/views/admin/gce-feed-sidebar-help.php:25
856
+ msgid "Review this Plugin Now"
857
+ msgstr "Noter ce plugin."
858
+
859
+ #: google-calendar-events/views/widgets.php:28
860
  msgid ""
861
  "Display a list or calendar grid of events from one or more Google Calendar "
862
  "feeds you have added"
864
  "Affiche une liste ou un tableau d'évènements à partir d'un ou plusieurs "
865
  "agendas Google ajoutés par vos soins."
866
 
867
+ #: google-calendar-events/views/widgets.php:167
868
  msgid ""
869
  "No valid Feed IDs have been entered for this widget. Please check that you "
870
  "have entered the IDs correctly in the widget settings (Appearance > "
874
  "que l'ID est correctement définie dans la configuration (Apparence > "
875
  "Widgets) et que les agendas n'ont pas été supprimés."
876
 
877
+ #: google-calendar-events/views/widgets.php:207
878
  msgid ""
879
  "There was a problem with one or more of your feed IDs. Please check your "
880
  "widget settings and make sure they are correct."
883
  "Merci de vérifier la configuration de vos code et assurez-vous qu'ils soient "
884
  "corrects."
885
 
886
+ #: google-calendar-events/views/widgets.php:213
887
  msgid "You have not added any feeds yet."
888
  msgstr "Vous n'avez pas encore ajouté d'agenda."
889
 
890
+ #: google-calendar-events/views/widgets.php:256
891
  msgid "There are no feeds created yet."
892
  msgstr "Aucun agenda n'a encore été créé."
893
 
894
+ #: google-calendar-events/views/widgets.php:257
895
  msgid "Add your first feed!"
896
  msgstr "Ajoutez votre premier agenda !"
897
 
898
+ #: google-calendar-events/views/widgets.php:267
899
  msgid "Events on"
900
  msgstr "Évènements le"
901
 
902
+ #: google-calendar-events/views/widgets.php:281
903
  msgid "Title:"
904
  msgstr "Titre :"
905
 
906
+ #: google-calendar-events/views/widgets.php:286
907
  msgid "Feeds to Display (comma separated list - i.e. 101,102,103):"
908
  msgstr ""
909
  "Agendas à afficher (liste séparée par une virgule - ex.&nbsp;: 101,102,103) :"
910
 
911
+ #: google-calendar-events/views/widgets.php:292
912
  msgid "Display Events as:"
913
  msgstr "Afficher les évènements comme&nbsp;:"
914
 
915
+ #: google-calendar-events/views/widgets.php:303
916
  msgid "Sort Order (List View only):"
917
  msgstr "Ordre de tri (uniquement pour les listes)&nbsp;:"
918
 
919
+ #: google-calendar-events/views/widgets.php:305
920
  msgid "Ascending"
921
  msgstr "Croissant"
922
 
923
+ #: google-calendar-events/views/widgets.php:306
924
  msgid "Descending"
925
  msgstr "Décroissant"
926
 
927
+ #: google-calendar-events/views/widgets.php:311
928
  msgid "Events per Page (List View only):"
929
  msgstr "Nombre d'évènements par page (uniquement pour les listes)&nbsp;:"
930
 
931
+ #: google-calendar-events/views/widgets.php:324
932
  msgid ""
933
  "This setting will pull from the custom date range set in the main feed "
934
  "settings and cannot be changed here."
936
  "Ce paramètre est issu de la plage de dates spécifique défini dans les "
937
  "paramètres principaux du flux et ne peut-être modifié ici."
938
 
939
+ #: google-calendar-events/views/widgets.php:328
940
  msgid "Display Start Date Offset (List View only):"
941
  msgstr "Date de début d'affichage (uniquement pour les listes)&nbsp;:"
942
 
943
+ #: google-calendar-events/views/widgets.php:339
944
  msgid ""
945
  "Display Title on Tooltip/List Item (e.g. 'Events on 7th March'). Grouped "
946
  "lists always have a title displayed."
948
  "Afficher le titre dans l'infobulle / l'élément de liste (ex.&nbsp;: "
949
  "'Évènements du 7 mars'). Les listes groupées affichent toujours un titre."
950
 
951
+ #~ msgid "Helpful Links"
952
+ #~ msgstr "Liens utiles"
953
+
954
+ #~ msgid "Set a specific range of events to retrieve."
955
+ #~ msgstr "Définir une plage d'évènements à retrouver"
956
+
957
+ #~ msgid "Documentation & getting started"
958
+ #~ msgstr "Documentation & guide de démarrage"
959
+
960
+ #~ msgid "View our roadmap & vote"
961
+ #~ msgstr "Afficher notre plan de route et votez"
962
+
963
  #~ msgid "Show Paging Links:"
964
  #~ msgstr "Afficher les liens de pagination&nbsp;:"
965
 
readme.txt CHANGED
@@ -3,9 +3,8 @@ Contributors: pderksen, nickyoung87, nekojira, rosshanney
3
  Tags: google calendar, google, calendar, events, gcal
4
  Requires at least: 3.9
5
  Tested up to: 4.3
6
- Stable tag: 2.2.6
7
  License: GPLv2 or later
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
11
 
@@ -90,6 +89,16 @@ There are three ways to install this plugin.
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
 
 
 
 
 
93
  = 2.2.6 - July 16, 2015 =
94
 
95
  * Plugin performs a requirements check to ensure users are running a recent version of WordPress.
@@ -445,4 +454,4 @@ There are three ways to install this plugin.
445
 
446
  = 2.1.0 =
447
 
448
- Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
3
  Tags: google calendar, google, calendar, events, gcal
4
  Requires at least: 3.9
5
  Tested up to: 4.3
6
+ Stable tag: 2.2.7
7
  License: GPLv2 or later
 
8
 
9
  Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.2.7 - July 31, 2015 =
93
+
94
+ * Feature: Added an 'Add Calendar' button to quickly add a shortcode in posts.
95
+ * Fix: Reverted register scripts hook to init.
96
+ * Translations: Updated French translations
97
+ * Tweak: Flush permalinks on plugin activation and deactivation.
98
+ * Tweak: Added `[if-not-location]` event builder conditional shortcode.
99
+ * Tweak: Added a 'gce_no_events_message_text' filter when no events are found.
100
+ * Tweak: Added a clear cache bulk action for clearing caches of multiple feeds.
101
+
102
  = 2.2.6 - July 16, 2015 =
103
 
104
  * Plugin performs a requirements check to ensure users are running a recent version of WordPress.
454
 
455
  = 2.1.0 =
456
 
457
+ Updated to use Google Calendar API version 3. Version 2 deprecated on Nov. 17, 2014.
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
screenshot-6.png ADDED
Binary file
screenshot-7.png ADDED
Binary file
views/admin/gce-feed-meta-display.php CHANGED
@@ -78,7 +78,14 @@
78
  <tr>
79
  <th scope="row"><?php _e( 'Feed Shortcode', 'gce' ); ?></th>
80
  <td>
81
- <code>[gcal id="<?php echo $post_id; ?>"]</code>
 
 
 
 
 
 
 
82
  <p class="description">
83
  <?php _e( 'Copy and paste this shortcode to display this Google Calendar feed on any post or page.', 'gce' ); ?>
84
  <?php _e( 'To avoid display issues, make sure to paste the shortcode in the Text tab of the post editor.', 'gce' ); ?>
78
  <tr>
79
  <th scope="row"><?php _e( 'Feed Shortcode', 'gce' ); ?></th>
80
  <td>
81
+ <input
82
+ name="gce_shortcode"
83
+ class="gce-shortcode"
84
+ readonly="readonly"
85
+ value='[gcal id="<?php echo $post_id; ?>"]'
86
+ onclick="this.select();"
87
+ />
88
+ <span class="gce-shortcode-copied"></span>
89
  <p class="description">
90
  <?php _e( 'Copy and paste this shortcode to display this Google Calendar feed on any post or page.', 'gce' ); ?>
91
  <?php _e( 'To avoid display issues, make sure to paste the shortcode in the Text tab of the post editor.', 'gce' ); ?>