Restaurant Reservations - Version 1.1.4

Version Description

This updated fixes an error with the format of the date in notification emails. Now it will show you the date formatted however you have chosen for it to be formatted in your WordPress installation. It also now displays the correct start of the week depending on the language selected for the datepicker. A .pot file is now included for easier translations.

Download this release

Release Info

Developer NateWr
Plugin Icon 128x128 Restaurant Reservations
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

assets/js/booking-form.js CHANGED
@@ -32,14 +32,7 @@ jQuery(document).ready(function ($) {
32
hiddenName: true,
33
min: true,
34
container: 'body',
35
- // this prevents translations from overwriting the start of the
36
- // week. ideally, in the future, support for this can be added, but
37
- // at the moment I can't figure out how to check the datepicker's
38
- // firstDay setting and update my disabled dates values
39
- // accordingly.
40
- // @todo support start of the week based on language file
41
- firstDay: 0,
42
-
43
// Select the value when loaded if a value has been set
44
onStart: function() {
45
if ( $( '#rtb-date' ).val() !== '' ) {
@@ -65,9 +58,24 @@ jQuery(document).ready(function ($) {
65
66
// Pass conditional configuration parameters
67
if ( rtb_pickadate.disable_dates.length ) {
68
datepicker.set( 'disable', rtb_pickadate.disable_dates );
69
}
70
-
71
if ( rtb_pickadate.late_bookings === '1440' ) {
72
datepicker.set( 'min', 1 );
73
}
32
hiddenName: true,
33
min: true,
34
container: 'body',
35
+
36
// Select the value when loaded if a value has been set
37
onStart: function() {
38
if ( $( '#rtb-date' ).val() !== '' ) {
58
59
// Pass conditional configuration parameters
60
if ( rtb_pickadate.disable_dates.length ) {
61
+
62
+ // Update weekday dates if start of the week has been modified
63
+ if ( typeof datepicker.component.settings.firstDay == 'number' ) {
64
+ var weekday_num = 0;
65
+ for ( var disable_key in rtb_pickadate.disable_dates ) {
66
+ if ( typeof rtb_pickadate.disable_dates[disable_key] == 'number' ) {
67
+ weekday_num = rtb_pickadate.disable_dates[disable_key] - datepicker.component.settings.firstDay;
68
+ if ( weekday_num < 1 ) {
69
+ weekday_num = 7;
70
+ }
71
+ rtb_pickadate.disable_dates[disable_key] = weekday_num;
72
+ }
73
+ }
74
+ }
75
+
76
datepicker.set( 'disable', rtb_pickadate.disable_dates );
77
}
78
+
79
if ( rtb_pickadate.late_bookings === '1440' ) {
80
datepicker.set( 'min', 1 );
81
}
includes/Booking.class.php CHANGED
@@ -59,7 +59,7 @@ class rtbBooking {
59
60
$this->ID = $post->ID;
61
$this->name = $post->post_title;
62
- $this->date = $this->format_date( $post->post_date );
63
$this->message = apply_filters( 'the_content', $post->post_content );
64
$this->post_status = $post->post_status;
65
59
60
$this->ID = $post->ID;
61
$this->name = $post->post_title;
62
+ $this->date = $post->post_date;
63
$this->message = apply_filters( 'the_content', $post->post_content );
64
$this->post_status = $post->post_status;
65
includes/Notification.class.php CHANGED
@@ -81,7 +81,7 @@ abstract class rtbNotification {
81
$template_tags = array(
82
'{user_name}' => $this->booking->name,
83
'{party}' => $this->booking->party,
84
- '{date}' => $this->booking->date,
85
'{bookings_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&status=pending' ) . '">' . __( 'View pending bookings', RTB_TEXTDOMAIN ) . '</a>',
86
'{confirm_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=confirm&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Confirm this booking', RTB_TEXTDOMAIN ) . '</a>',
87
'{close_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=close&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Reject this booking', RTB_TEXTDOMAIN ) . '</a>',
81
$template_tags = array(
82
'{user_name}' => $this->booking->name,
83
'{party}' => $this->booking->party,
84
+ '{date}' => $this->booking->format_date( $this->booking->date ),
85
'{bookings_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&status=pending' ) . '">' . __( 'View pending bookings', RTB_TEXTDOMAIN ) . '</a>',
86
'{confirm_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=confirm&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Confirm this booking', RTB_TEXTDOMAIN ) . '</a>',
87
'{close_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=close&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Reject this booking', RTB_TEXTDOMAIN ) . '</a>',
includes/WP_List_Table.BookingsTable.class.php CHANGED
@@ -295,7 +295,7 @@ class rtbBookingsTable extends WP_List_Table {
295
public function column_default( $booking, $column_name ) {
296
switch ( $column_name ) {
297
case 'date' :
298
- $value = $booking->date;
299
break;
300
case 'party' :
301
$value = $booking->party;
295
public function column_default( $booking, $column_name ) {
296
switch ( $column_name ) {
297
case 'date' :
298
+ $value = $booking->format_date( $booking->date );
299
break;
300
case 'party' :
301
$value = $booking->party;
languages/restaurant-reservations.pot ADDED
@@ -0,0 +1,914 @@
1
+ # Copyright (C) 2014 Restaurant Reservations
2
+ # This file is distributed under the same license as the Restaurant Reservations package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Restaurant Reservations 1.1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/restaurant-reservations\n"
7
+ "POT-Creation-Date: 2014-07-03 12:29:35+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: includes/Booking.class.php:154
16
+ msgid "Please enter the date you would like to book."
17
+ msgstr ""
18
+
19
+ #: includes/Booking.class.php:164
20
+ msgid "The date you entered is not valid. Please select from one of the dates in the calendar."
21
+ msgstr ""
22
+
23
+ #: includes/Booking.class.php:175
24
+ msgid "Please enter the time you would like to book."
25
+ msgstr ""
26
+
27
+ #: includes/Booking.class.php:185
28
+ msgid "The time you entered is not valid. Please select from one of the times provided."
29
+ msgstr ""
30
+
31
+ #: includes/Booking.class.php:204
32
+ msgid "Sorry, bookings can not be made more than %s days in advance."
33
+ msgstr ""
34
+
35
+ #: includes/Booking.class.php:215
36
+ msgid "Sorry, bookings can not be made in the past."
37
+ msgstr ""
38
+
39
+ #: includes/Booking.class.php:223
40
+ msgid "Sorry, bookings must be made more than %s days in advance."
41
+ msgstr ""
42
+
43
+ #: includes/Booking.class.php:225
44
+ msgid "Sorry, bookings must be made more than %s hours in advance."
45
+ msgstr ""
46
+
47
+ #: includes/Booking.class.php:227
48
+ msgid "Sorry, bookings must be made more than %s mings in advance."
49
+ msgstr ""
50
+
51
+ #: includes/Booking.class.php:266
52
+ msgid "Sorry, no bookings are being accepted then."
53
+ msgstr ""
54
+
55
+ #: includes/Booking.class.php:318
56
+ msgid "Sorry, no bookings are being accepted on that date."
57
+ msgstr ""
58
+
59
+ #: includes/Booking.class.php:324
60
+ msgid "Sorry, no bookings are being accepted at that time."
61
+ msgstr ""
62
+
63
+ #: includes/Booking.class.php:346
64
+ msgid "Please enter a name for this booking."
65
+ msgstr ""
66
+
67
+ #: includes/Booking.class.php:356
68
+ msgid "Please let us know how many people will be in your party."
69
+ msgstr ""
70
+
71
+ #: includes/Booking.class.php:366
72
+ msgid "Please enter an email address so we can confirm your booking."
73
+ msgstr ""
74
+
75
+ #: includes/CustomPostTypes.class.php:38 includes/CustomPostTypes.class.php:40
76
+ #: includes/CustomPostTypes.class.php:41
77
+ #: includes/WP_List_Table.BookingsTable.class.php:76
78
+ msgid "Bookings"
79
+ msgstr ""
80
+
81
+ #: includes/CustomPostTypes.class.php:39
82
+ #: includes/WP_List_Table.BookingsTable.class.php:75
83
+ msgid "Booking"
84
+ msgstr ""
85
+
86
+ #: includes/CustomPostTypes.class.php:42
87
+ msgid "Add New"
88
+ msgstr ""
89
+
90
+ #: includes/CustomPostTypes.class.php:43
91
+ msgid "Add New Booking"
92
+ msgstr ""
93
+
94
+ #: includes/CustomPostTypes.class.php:44
95
+ msgid "Edit Booking"
96
+ msgstr ""
97
+
98
+ #: includes/CustomPostTypes.class.php:45
99
+ msgid "New Booking"
100
+ msgstr ""
101
+
102
+ #: includes/CustomPostTypes.class.php:46
103
+ msgid "View Booking"
104
+ msgstr ""
105
+
106
+ #: includes/CustomPostTypes.class.php:47
107
+ msgid "Search Bookings"
108
+ msgstr ""
109
+
110
+ #: includes/CustomPostTypes.class.php:48
111
+ msgid "No bookings found"
112
+ msgstr ""
113
+
114
+ #: includes/CustomPostTypes.class.php:49
115
+ msgid "No bookings found in trash"
116
+ msgstr ""
117
+
118
+ #: includes/CustomPostTypes.class.php:50
119
+ msgid "All Bookings"
120
+ msgstr ""
121
+
122
+ #: includes/CustomPostTypes.class.php:80
123
+ msgctxt "Booking status when it is pending review"
124
+ msgid "Pending"
125
+ msgstr ""
126
+
127
+ #: includes/CustomPostTypes.class.php:86
128
+ msgctxt "Booking status for a confirmed booking"
129
+ msgid "Confirmed"
130
+ msgstr ""
131
+
132
+ #: includes/CustomPostTypes.class.php:93
133
+ msgid "Confirmed <span class=\"count\">(%s)</span>"
134
+ msgid_plural "Confirmed <span class=\"count\">(%s)</span>"
135
+ msgstr[0] ""
136
+ msgstr[1] ""
137
+
138
+ #: includes/CustomPostTypes.class.php:97
139
+ msgctxt "Booking status for a closed booking"
140
+ msgid "Closed"
141
+ msgstr ""
142
+
143
+ #: includes/CustomPostTypes.class.php:104
144
+ msgid "Closed <span class=\"count\">(%s)</span>"
145
+ msgid_plural "Closed <span class=\"count\">(%s)</span>"
146
+ msgstr[0] ""
147
+ msgstr[1] ""
148
+
149
+ #: includes/Notification.class.php:85
150
+ msgid "View pending bookings"
151
+ msgstr ""
152
+
153
+ #: includes/Notification.class.php:86
154
+ msgid "Confirm this booking"
155
+ msgstr ""
156
+
157
+ #: includes/Notification.class.php:87
158
+ msgid "Reject this booking"
159
+ msgstr ""
160
+
161
+ #: includes/Settings.class.php:84
162
+ msgctxt "Default date format for display. Must match formatting rules at http://amsul.ca/pickadate.js/date.htm#formatting-rules"
163
+ msgid "mmmm d, yyyy"
164
+ msgstr ""
165
+
166
+ #: includes/Settings.class.php:85
167
+ msgctxt "Default time format for display. Must match formatting rules at http://amsul.ca/pickadate.js/time.htm#formats"
168
+ msgid "h:i A"
169
+ msgstr ""
170
+
171
+ #: includes/Settings.class.php:95
172
+ msgctxt "Default email subject for admin notifications of new bookings"
173
+ msgid "New Booking Request"
174
+ msgstr ""
175
+
176
+ #: includes/Settings.class.php:96
177
+ msgctxt "Default email sent to the admin when a new booking request is made. The tags in {brackets} will be replaced by the appropriate content and should be left in place. HTML is allowed, but be aware that many email clients do not handle HTML very well."
178
+ msgid ""
179
+ "A new booking request has been made at {site_name}:\n"
180
+ "\n"
181
+ "{user_name}\n"
182
+ "{party} people\n"
183
+ "{date}\n"
184
+ "\n"
185
+ "{bookings_link}\n"
186
+ "{confirm_link}\n"
187
+ "{close_link}\n"
188
+ "\n"
189
+ "&nbsp;\n"
190
+ "\n"
191
+ "<em>This message was sent by {site_link} on {current_time}.</em>"
192
+ msgstr ""
193
+
194
+ #: includes/Settings.class.php:114
195
+ msgctxt "Default email subject sent to user when they request a booking. %s will be replaced by the website name"
196
+ msgid "Your booking at %s is pending"
197
+ msgstr ""
198
+
199
+ #: includes/Settings.class.php:115
200
+ msgctxt "Default email sent to users when they make a new booking request. The tags in {brackets} will be replaced by the appropriate content and should be left in place. HTML is allowed, but be aware that many email clients do not handle HTML very well."
201
+ msgid ""
202
+ "Thanks {user_name},\n"
203
+ "\n"
204
+ "Your booking request is <strong>waiting to be confirmed</strong>.\n"
205
+ "\n"
206
+ "Give us a few moments to make sure that we've got space for you. You will receive another email from us soon. If this request was made outside of our normal working hours, we may not be able to confirm it until we're open again.\n"
207
+ "\n"
208
+ "<strong>Your request details:</strong>\n"
209
+ "{user_name}\n"
210
+ "{party} people\n"
211
+ "{date}\n"
212
+ "\n"
213
+ "&nbsp;\n"
214
+ "\n"
215
+ "<em>This message was sent by {site_link} on {current_time}.</em>"
216
+ msgstr ""
217
+
218
+ #: includes/Settings.class.php:134
219
+ msgctxt "Default email subject sent to user when their booking is confirmed. %s will be replaced by the website name"
220
+ msgid "Your booking at %s is confirmed"
221
+ msgstr ""
222
+
223
+ #: includes/Settings.class.php:135
224
+ msgctxt "Default email sent to users when they make a new booking request. The tags in {brackets} will be replaced by the appropriate content and should be left in place. HTML is allowed, but be aware that many email clients do not handle HTML very well."
225
+ msgid ""
226
+ "Hi {user_name},\n"
227
+ "\n"
228
+ "Your booking request has been <strong>confirmed</strong>. We look forward to seeing you soon.\n"
229
+ "\n"
230
+ "<strong>Your booking:</strong>\n"
231
+ "{user_name}\n"
232
+ "{party} people\n"
233
+ "{date}\n"
234
+ "\n"
235
+ "&nbsp;\n"
236
+ "\n"
237
+ "<em>This message was sent by {site_link} on {current_time}.</em>"
238
+ msgstr ""
239
+
240
+ #: includes/Settings.class.php:152
241
+ msgctxt "Default email subject sent to user when their booking is rejected. %s will be replaced by the website name"
242
+ msgid "Your booking at %s was not accepted"
243
+ msgstr ""
244
+
245
+ #: includes/Settings.class.php:153
246
+ msgctxt "Default email sent to users when they make a new booking request. The tags in {brackets} will be replaced by the appropriate content and should be left in place. HTML is allowed, but be aware that many email clients do not handle HTML very well."
247
+ msgid ""
248
+ "Hi {user_name},\n"
249
+ "\n"
250
+ "Sorry, we could not accomodate your booking request. We're full or not open at the time you requested:\n"
251
+ "\n"
252
+ "{user_name}\n"
253
+ "{party} people\n"
254
+ "{date}\n"
255
+ "\n"
256
+ "&nbsp;\n"
257
+ "\n"
258
+ "<em>This message was sent by {site_link} on {current_time}.</em>"
259
+ msgstr ""
260
+
261
+ #: includes/Settings.class.php:217 includes/Settings.class.php:218
262
+ msgid "Settings"
263
+ msgstr ""
264
+
265
+ #: includes/Settings.class.php:230
266
+ msgid "General"
267
+ msgstr ""
268
+
269
+ #: includes/Settings.class.php:241
270
+ msgid "Booking Page"
271
+ msgstr ""
272
+
273
+ #: includes/Settings.class.php:242
274
+ msgid "Select a page on your site to automatically display the booking form and confirmation message."
275
+ msgstr ""
276
+
277
+ #: includes/Settings.class.php:258
278
+ msgid "Success Message"
279
+ msgstr ""
280
+
281
+ #: includes/Settings.class.php:259
282
+ msgid "Enter the message to display when a booking request is made."
283
+ msgstr ""
284
+
285
+ #: includes/Settings.class.php:270
286
+ msgid "Date Format"
287
+ msgstr ""
288
+
289
+ #: includes/Settings.class.php:271
290
+ msgid "Define how the date should appear after it has been selected. <a href=\"http://amsul.ca/pickadate.js/date.htm#formatting-rules\">Formatting rules</a>"
291
+ msgstr ""
292
+
293
+ #: includes/Settings.class.php:282
294
+ msgid "Time Format"
295
+ msgstr ""
296
+
297
+ #: includes/Settings.class.php:283
298
+ msgid "Define how the time should appear after it has been selected. <a href=\"http://amsul.ca/pickadate.js/time.htm#formatting-rules\">Formatting rules</a>"
299
+ msgstr ""
300
+
301
+ #: includes/Settings.class.php:296
302
+ msgid "Language"
303
+ msgstr ""
304
+
305
+ #: includes/Settings.class.php:297
306
+ msgid "Select a language to use for the booking form datepicker if it is different than your WordPress language setting."
307
+ msgstr ""
308
+
309
+ #: includes/Settings.class.php:307
310
+ msgid "Booking Schedule"
311
+ msgstr ""
312
+
313
+ #: includes/Settings.class.php:318
314
+ msgid "Schedule"
315
+ msgstr ""
316
+
317
+ #: includes/Settings.class.php:319
318
+ msgid "Define the weekly schedule during which you accept bookings."
319
+ msgstr ""
320
+
321
+ #: includes/Settings.class.php:321
322
+ msgctxt "Monday abbreviation"
323
+ msgid "Mo"
324
+ msgstr ""
325
+
326
+ #: includes/Settings.class.php:322
327
+ msgctxt "Tuesday abbreviation"
328
+ msgid "Tu"
329
+ msgstr ""
330
+
331
+ #: includes/Settings.class.php:323
332
+ msgctxt "Wednesday abbreviation"
333
+ msgid "We"
334
+ msgstr ""
335
+
336
+ #: includes/Settings.class.php:324
337
+ msgctxt "Thursday abbreviation"
338
+ msgid "Th"
339
+ msgstr ""
340
+
341
+ #: includes/Settings.class.php:325
342
+ msgctxt "Friday abbreviation"
343
+ msgid "Fr"
344
+ msgstr ""
345
+
346
+ #: includes/Settings.class.php:326
347
+ msgctxt "Saturday abbreviation"
348
+ msgid "Sa"
349
+ msgstr ""
350
+
351
+ #: includes/Settings.class.php:327
352
+ msgctxt "Sunday abbreviation"
353
+ msgid "Su"
354
+ msgstr ""
355
+
356
+ #: includes/Settings.class.php:342
357
+ msgid "Exceptions"
358
+ msgstr ""
359
+
360
+ #: includes/Settings.class.php:343
361
+ msgid "Define special opening hours for holidays, events or other needs. Leave the time empty if you're closed all day."
362
+ msgstr ""
363
+
364
+ #: includes/Settings.class.php:349
365
+ msgctxt "Brief description of a scheduling exception when no times are set"
366
+ msgid "Closed all day"
367
+ msgstr ""
368
+
369
+ #: includes/Settings.class.php:360
370
+ msgid "Early Bookings"
371
+ msgstr ""
372
+
373
+ #: includes/Settings.class.php:361
374
+ msgid "Select how early customers can make their booking."
375
+ msgstr ""
376
+
377
+ #: includes/Settings.class.php:364
378
+ msgid "Any time"
379
+ msgstr ""
380
+
381
+ #: includes/Settings.class.php:365
382
+ msgid "Up to 1 day in advance"
383
+ msgstr ""
384
+
385
+ #: includes/Settings.class.php:366
386
+ msgid "Up to 1 week in advance"
387
+ msgstr ""
388
+
389
+ #: includes/Settings.class.php:367
390
+ msgid "Up to 2 weeks in advance"
391
+ msgstr ""
392
+
393
+ #: includes/Settings.class.php:368
394
+ msgid "Up to 30 days in advance"
395
+ msgstr ""
396
+
397
+ #: includes/Settings.class.php:369
398
+ msgid "Up to 90 days in advance"
399
+ msgstr ""
400
+
401
+ #: includes/Settings.class.php:380
402
+ msgid "Late Bookings"
403
+ msgstr ""
404
+
405
+ #: includes/Settings.class.php:381
406
+ msgid "Select how late customers can make their booking."
407
+ msgstr ""
408
+
409
+ #: includes/Settings.class.php:384
410
+ msgid "Up to the last minute"
411
+ msgstr ""
412
+
413
+ #: includes/Settings.class.php:385
414
+ msgid "At least 15 minutes in advance"
415
+ msgstr ""
416
+
417
+ #: includes/Settings.class.php:386
418
+ msgid "At least 30 minutes in advance"
419
+ msgstr ""
420
+
421
+ #: includes/Settings.class.php:387
422
+ msgid "At least 45 minutes in advance"
423
+ msgstr ""
424
+
425
+ #: includes/Settings.class.php:388
426
+ msgid "At least 1 hour in advance"
427
+ msgstr ""
428
+
429
+ #: includes/Settings.class.php:389
430
+ msgid "At least 4 hours in advance"
431
+ msgstr ""
432
+
433
+ #: includes/Settings.class.php:390
434
+ msgid "At least 1 day in advance"
435
+ msgstr ""
436
+
437
+ #: includes/Settings.class.php:399
438
+ msgid "Notifications"
439
+ msgstr ""
440
+
441
+ #: includes/Settings.class.php:410
442
+ msgid "Reply-To Name"
443
+ msgstr ""
444
+
445
+ #: includes/Settings.class.php:411
446
+ msgid "The name which should appear in the Reply-To field of a notification email"
447
+ msgstr ""
448
+
449
+ #: includes/Settings.class.php:422
450
+ msgid "Reply-To Email Address"
451
+ msgstr ""
452
+
453
+ #: includes/Settings.class.php:423
454
+ msgid "The email address which should appear in the Reply-To field of a notification email."
455
+ msgstr ""
456
+
457
+ #: includes/Settings.class.php:434
458
+ msgid "Admin Notification"
459
+ msgstr ""
460
+
461
+ #: includes/Settings.class.php:435
462
+ msgid "Send an email notification to an administrator when a new booking is requested."
463
+ msgstr ""
464
+
465
+ #: includes/Settings.class.php:445
466
+ msgid "Admin Email Address"
467
+ msgstr ""
468
+
469
+ #: includes/Settings.class.php:446
470
+ msgid "The email address where admin notifications should be sent."
471
+ msgstr ""
472
+
473
+ #: includes/Settings.class.php:455
474
+ msgid "Email Templates"
475
+ msgstr ""
476
+
477
+ #: includes/Settings.class.php:469
478
+ msgid "Template Tags"
479
+ msgstr ""
480
+
481
+ #: includes/Settings.class.php:471
482
+ msgid "Use the following tags to automatically add booking information to the emails."
483
+ msgstr ""
484
+
485
+ #: includes/Settings.class.php:473
486
+ msgid "Name of the user who made the booking"
487
+ msgstr ""
488
+
489
+ #: includes/Settings.class.php:476
490
+ msgid "Number of people booked"
491
+ msgstr ""
492
+
493
+ #: includes/Settings.class.php:479
494
+ msgid "Date and time of the booking"
495
+ msgstr ""
496
+
497
+ #: includes/Settings.class.php:482
498
+ msgid "A link to the admin panel showing pending bookings"
499
+ msgstr ""
500
+
501
+ #: includes/Settings.class.php:485
502
+ msgid "A link to confirm this booking. Only include this in admin notifications"
503
+ msgstr ""
504
+
505
+ #: includes/Settings.class.php:488
506
+ msgid "A link to reject this booking. Only include this in admin notifications"
507
+ msgstr ""
508
+
509
+ #: includes/Settings.class.php:491
510
+ msgid "The name of this website"
511
+ msgstr ""
512
+
513
+ #: includes/Settings.class.php:494
514
+ msgid "A link to this website"
515
+ msgstr ""
516
+
517
+ #: includes/Settings.class.php:497
518
+ msgid "Current date and time"
519
+ msgstr ""
520
+
521
+ #: includes/Settings.class.php:508
522
+ msgid "Admin Notification Subject"
523
+ msgstr ""
524
+
525
+ #: includes/Settings.class.php:509
526
+ msgid "The email subject for admin notifications."
527
+ msgstr ""
528
+
529
+ #: includes/Settings.class.php:520
530
+ msgid "Admin Notification Email"
531
+ msgstr ""
532
+
533
+ #: includes/Settings.class.php:521
534
+ msgid "Enter the email an admin should receive when an initial booking request is made."
535
+ msgstr ""
536
+
537
+ #: includes/Settings.class.php:532
538
+ msgid "New Request Email Subject"
539
+ msgstr ""
540
+
541
+ #: includes/Settings.class.php:533
542
+ msgid "The email subject a user should receive when they make an initial booking request."
543
+ msgstr ""
544
+
545
+ #: includes/Settings.class.php:544
546
+ msgid "New Request Email"
547
+ msgstr ""
548
+
549
+ #: includes/Settings.class.php:545
550
+ msgid "Enter the email a user should receive when they make an initial booking request."
551
+ msgstr ""
552
+
553
+ #: includes/Settings.class.php:556
554
+ msgid "Confirmed Email Subject"
555
+ msgstr ""
556
+
557
+ #: includes/Settings.class.php:557
558
+ msgid "The email subject a user should receive when their booking has been confirmed."
559
+ msgstr ""
560
+
561
+ #: includes/Settings.class.php:568
562
+ msgid "Confirmed Email"
563
+ msgstr ""
564
+
565
+ #: includes/Settings.class.php:569
566
+ msgid "Enter the email a user should receive when their booking has been confirmed."
567
+ msgstr ""
568
+
569
+ #: includes/Settings.class.php:580
570
+ msgid "Rejected Email Subject"
571
+ msgstr ""
572
+
573
+ #: includes/Settings.class.php:581
574
+ msgid "The email subject a user should receive when their booking has been rejected."
575
+ msgstr ""
576
+
577
+ #: includes/Settings.class.php:592
578
+ msgid "Rejected Email"
579
+ msgstr ""
580
+
581
+ #: includes/Settings.class.php:593
582
+ msgid "Enter the email a user should receive when their booking has been rejected."
583
+ msgstr ""
584
+
585
+ #: includes/WP_List_Table.BookingsTable.class.php:172
586
+ #: includes/WP_List_Table.BookingsTable.class.php:235
587
+ msgid "All"
588
+ msgstr ""
589
+
590
+ #: includes/WP_List_Table.BookingsTable.class.php:173
591
+ msgid "Today"
592
+ msgstr ""
593
+
594
+ #: includes/WP_List_Table.BookingsTable.class.php:174
595
+ msgid "Upcoming"
596
+ msgstr ""
597
+
598
+ #: includes/WP_List_Table.BookingsTable.class.php:180
599
+ msgctxt "Separator between two dates in a date range"
600
+ msgid "&mdash;"
601
+ msgstr ""
602
+
603
+ #: includes/WP_List_Table.BookingsTable.class.php:192
604
+ msgid "Start Date:"
605
+ msgstr ""
606
+
607
+ #: includes/WP_List_Table.BookingsTable.class.php:193
608
+ msgid "Start Date"
609
+ msgstr ""
610
+
611
+ #: includes/WP_List_Table.BookingsTable.class.php:194
612
+ msgid "End Date:"
613
+ msgstr ""
614
+
615
+ #: includes/WP_List_Table.BookingsTable.class.php:195
616
+ msgid "End Date"
617
+ msgstr ""
618
+
619
+ #: includes/WP_List_Table.BookingsTable.class.php:196
620
+ msgid "Apply"
621
+ msgstr ""
622
+
623
+ #: includes/WP_List_Table.BookingsTable.class.php:198
624
+ msgid "Clear Filter"
625
+ msgstr ""
626
+
627
+ #: includes/WP_List_Table.BookingsTable.class.php:236
628
+ msgid "Pending"
629
+ msgstr ""
630
+
631
+ #: includes/WP_List_Table.BookingsTable.class.php:237
632
+ msgid "Confirmed"
633
+ msgstr ""
634
+
635
+ #: includes/WP_List_Table.BookingsTable.class.php:238
636
+ msgid "Closed"
637
+ msgstr ""
638
+
639
+ #: includes/WP_List_Table.BookingsTable.class.php:239
640
+ msgid "Trash"
641
+ msgstr ""
642
+
643
+ #: includes/WP_List_Table.BookingsTable.class.php:267
644
+ #: includes/template-functions.php:89
645
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:365
646
+ msgid "Date"
647
+ msgstr ""
648
+
649
+ #: includes/WP_List_Table.BookingsTable.class.php:268
650
+ #: includes/template-functions.php:103
651
+ msgid "Party"
652
+ msgstr ""
653
+
654
+ #: includes/WP_List_Table.BookingsTable.class.php:269
655
+ #: includes/template-functions.php:115
656
+ msgid "Name"
657
+ msgstr ""
658
+
659
+ #: includes/WP_List_Table.BookingsTable.class.php:270
660
+ #: includes/template-functions.php:122
661
+ msgid "Email"
662
+ msgstr ""
663
+
664
+ #: includes/WP_List_Table.BookingsTable.class.php:271
665
+ #: includes/template-functions.php:129
666
+ msgid "Phone"
667
+ msgstr ""
668
+
669
+ #: includes/WP_List_Table.BookingsTable.class.php:272
670
+ #: includes/template-functions.php:141
671
+ msgid "Message"
672
+ msgstr ""
673
+
674
+ #: includes/WP_List_Table.BookingsTable.class.php:273
675
+ msgid "Status"
676
+ msgstr ""
677
+
678
+ #: includes/WP_List_Table.BookingsTable.class.php:324
679
+ msgctxt "Status label for bookings put in the trash"
680
+ msgid "Trash"
681
+ msgstr ""
682
+
683
+ #: includes/WP_List_Table.BookingsTable.class.php:356
684
+ msgid "Delete"
685
+ msgstr ""
686
+
687
+ #: includes/WP_List_Table.BookingsTable.class.php:357
688
+ msgid "Set To Confirmed"
689
+ msgstr ""
690
+
691
+ #: includes/WP_List_Table.BookingsTable.class.php:358
692
+ msgid "Set To Pending Review"
693
+ msgstr ""
694
+
695
+ #: includes/WP_List_Table.BookingsTable.class.php:359
696
+ msgid "Set To Closed"
697
+ msgstr ""
698
+
699
+ #: includes/WP_List_Table.BookingsTable.class.php:471
700
+ msgid "%d booking deleted successfully."
701
+ msgid_plural "%d bookings deleted successfully."
702
+ msgstr[0] ""
703
+ msgstr[1] ""
704
+
705
+ #: includes/WP_List_Table.BookingsTable.class.php:474
706
+ msgid "%d booking confirmed."
707
+ msgid_plural "%d bookings confirmed."
708
+ msgstr[0] ""
709
+ msgstr[1] ""
710
+
711
+ #: includes/WP_List_Table.BookingsTable.class.php:477
712
+ msgid "%d booking set to pending."
713
+ msgid_plural "%d bookings set to pending."
714
+ msgstr[0] ""
715
+ msgstr[1] ""
716
+
717
+ #: includes/WP_List_Table.BookingsTable.class.php:480
718
+ msgid "%d booking closed."
719
+ msgid_plural "%d bookings closed."
720
+ msgstr[0] ""
721
+ msgstr[1] ""
722
+
723
+ #: includes/WP_List_Table.BookingsTable.class.php:492
724
+ msgid "%d booking had errors and could not be processed."
725
+ msgid_plural "%d bookings had errors and could not be processed."
726
+ msgstr[0] ""
727
+ msgstr[1] ""
728
+
729
+ #: includes/WP_Widget.BookingFormWidget.class.php:25
730
+ msgid "Booking Form"
731
+ msgstr ""
732
+
733
+ #: includes/WP_Widget.BookingFormWidget.class.php:26
734
+ msgid "Display a form to accept bookings."
735
+ msgstr ""
736
+
737
+ #: includes/WP_Widget.BookingFormWidget.class.php:64
738
+ msgid "Title"
739
+ msgstr ""
740
+
741
+ #: includes/template-functions.php:84
742
+ msgid "Book a table"
743
+ msgstr ""
744
+
745
+ #: includes/template-functions.php:96
746
+ msgid "Time"
747
+ msgstr ""
748
+
749
+ #: includes/template-functions.php:110
750
+ msgid "Contact Details"
751
+ msgstr ""
752
+
753
+ #: includes/template-functions.php:135
754
+ msgid "Add a Message"
755
+ msgstr ""
756
+
757
+ #: includes/template-functions.php:146
758
+ msgid "Request Booking"
759
+ msgstr ""
760
+
761
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:266
762
+ msgid "Add new scheduling rule"
763
+ msgstr ""
764
+
765
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:293
766
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:306
767
+ msgctxt "Format of a scheduling rule"
768
+ msgid "Weekly"
769
+ msgstr ""
770
+
771
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:295
772
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:314
773
+ msgctxt "Format of a scheduling rule"
774
+ msgid "Monthly"
775
+ msgstr ""
776
+
777
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:297
778
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:322
779
+ msgctxt "Format of a scheduling rule"
780
+ msgid "Date"
781
+ msgstr ""
782
+
783
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:333
784
+ msgctxt "Label for selecting days of the week in a scheduling rule"
785
+ msgid "Days of the week"
786
+ msgstr ""
787
+
788
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:349
789
+ msgctxt "Label for selecting weeks of the month in a scheduling rule"
790
+ msgid "Weeks of the month"
791
+ msgstr ""
792
+
793
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:380
794
+ msgctxt "Label to select time slot for a scheduling rule"
795
+ msgid "Time"
796
+ msgstr ""
797
+
798
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:385
799
+ msgctxt "Label to set a scheduling rule to last all day"
800
+ msgid "All day"
801
+ msgstr ""
802
+
803
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:394
804
+ msgctxt "Label for the starting time of a scheduling rule"
805
+ msgid "Start"
806
+ msgstr ""
807
+
808
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:402
809
+ msgctxt "Label for the ending time of a scheduling rule"
810
+ msgid "End"
811
+ msgstr ""
812
+
813
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:411
814
+ msgctxt "Prompt displayed when a scheduling rule is set without any time restrictions."
815
+ msgid "All day long. Want to <a href=\"#\" data-format=\"time-slot\">set a time slot</a>?"
816
+ msgstr ""
817
+
818
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:430
819
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:433
820
+ msgid "Open and close this rule"
821
+ msgstr ""
822
+
823
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:436
824
+ msgid "Delete rule"
825
+ msgstr ""
826
+
827
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:439
828
+ msgid "Delete scheduling rule"
829
+ msgstr ""
830
+
831
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:523
832
+ msgctxt "Brief default description of a scheduling rule when no weekdays or weeks are included in the rule."
833
+ msgid "Never"
834
+ msgstr ""
835
+
836
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:524
837
+ msgctxt "Brief default description of a scheduling rule when all the weekdays/weeks are included in the rule."
838
+ msgid "Every day"
839
+ msgstr ""
840
+
841
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:525
842
+ msgctxt "Brief default description of a scheduling rule when some weekdays are included on only some weeks of the month. The {days} and {weeks} bits should be left alone and will be replaced by a comma-separated list of days (the first one) and weeks (the second one) in the following format: M, T, W on the first, second week of the month"
843
+ msgid "{days} on the {weeks} week of the month"
844
+ msgstr ""
845
+
846
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:526
847
+ msgctxt "Brief description of a scheduling rule when some weeks of the month are included but all or no weekdays are selected. {weeks} should be left alone and will be replaced by a comma-separated list of weeks (the second one) in the following format: First, second week of the month"
848
+ msgid "{weeks} week of the month"
849
+ msgstr ""
850
+
851
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:527
852
+ msgctxt "Brief default description of a scheduling rule when no times are set"
853
+ msgid "All day"
854
+ msgstr ""
855
+
856
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:528
857
+ msgctxt "Brief default description of a scheduling rule when an end time is set but no start time. If the end time is 6pm, it will read: Ends at 6pm."
858
+ msgid "Ends at"
859
+ msgstr ""
860
+
861
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:529
862
+ msgctxt "Brief default description of a scheduling rule when a start time is set but no end time. If the start time is 6pm, it will read: Starts at 6pm."
863
+ msgid "Starts at"
864
+ msgstr ""
865
+
866
+ #: lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:530
867
+ msgctxt "Default separator between times of a scheduling rule."
868
+ msgid "&mdash;"
869
+ msgstr ""
870
+
871
+ #: restaurant-reservations.php:127
872
+ msgid "Booking Manager"
873
+ msgstr ""
874
+
875
+ #: restaurant-reservations.php:155
876
+ msgctxt "Title of admin page that lists bookings"
877
+ msgid "Bookings"
878
+ msgstr ""
879
+
880
+ #: restaurant-reservations.php:156
881
+ msgctxt "Title of bookings admin menu item"
882
+ msgid "Bookings"
883
+ msgstr ""
884
+
885
+ #: restaurant-reservations.php:178
886
+ msgid "Restaurant Bookings"
887
+ msgstr ""
888
+
889
+ #: restaurant-reservations.php:279
890
+ msgid "View the help documentation for Restaurant Reservations"
891
+ msgstr ""
892
+
893
+ #: restaurant-reservations.php:279
894
+ msgid "Help"
895
+ msgstr ""
896
+ #. Plugin Name of the plugin/theme
897
+ msgid "Restaurant Reservations"
898
+ msgstr ""
899
+
900
+ #. Plugin URI of the plugin/theme
901
+ msgid "http://themeofthecrop.com"
902
+ msgstr ""
903
+
904
+ #. Description of the plugin/theme
905
+ msgid "Accept restaurant reservations and bookings online."
906
+ msgstr ""
907
+
908
+ #. Author of the plugin/theme
909
+ msgid "Theme of the Crop"
910
+ msgstr ""
911
+
912
+ #. Author URI of the plugin/theme
913
+ msgid "http://themeofthecrop.com"
914
+ msgstr ""
lib/simple-admin-pages/lib/pickadate/translations/ar.js CHANGED
@@ -1 +1 @@
1
- $.extend($.fn.pickadate.defaults,{monthsFull:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"],monthsShort:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"],weekdaysFull:["الاحد","الاثنين","الثلاثاء","الاربعاء","الخميس","الجمعة","السبت"],weekdaysShort:["الاحد","الاثنين","الثلاثاء","الاربعاء","الخميس","الجمعة","السبت"],today:"اليوم",clear:"مسح",format:"yyyy mmmm dd",formatSubmit:"yyyy/mm/dd"});
1
+ jQuery.extend(jQuery.fn.pickadate.defaults,{monthsFull:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"],monthsShort:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"],weekdaysFull:["الاحد","الاثنين","الثلاثاء","الاربعاء","الخميس","الجمعة","السبت"],weekdaysShort:["الاحد","الاثنين","الثلاثاء","الاربعاء","الخميس","الجمعة","السبت"],today:"اليوم",clear:"مسح",format:"yyyy mmmm dd",formatSubmit:"yyyy/mm/dd"});
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URL: http://themeofthecrop.com
5
Requires at Least: 3.8
6
Tested Up To: 3.9.1
7
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
8
- Stable tag: 1.1.3
9
License: GPLv2 or later
10
Donate link: http://themeofthecrop.com
11
@@ -25,7 +25,7 @@ Accept restaurant reservations and table bookings online. Quickly confirm or rej
25
26
More features will be added to this plugin and addons will be created which extend the functionality or integrate with third-party services. Follow future developments at [Theme of the Crop](http://themeofthecrop.com/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Restaurant%20Reservations) or read the Upgrade Notices when you see updates for this plugin in your WordPress admin panel.
27
28
- This plugin is part of a group of plugins in development for restaurants. Check out the [Food and Drink Menu](http://wordpress.org/plugins/food-and-drink-menu/) plugin as well.
29
30
= How to use =
31
@@ -56,6 +56,12 @@ This plugin is packed with hooks so you can extend it, customize it and rebrand
56
57
== Changelog ==
58
59
= 1.1.3 (2014-05-22) =
60
* Fix an error where the wrong date would be selected when a form was reloaded with validation errors
61
@@ -82,6 +88,9 @@ This plugin is packed with hooks so you can extend it, customize it and rebrand
82
83
== Upgrade Notice ==
84
85
= 1.1.3 =
86
This update fixes an error when the form had validation errors (missing fields or wrong date/time selected). Instead of loading the selected date it would load today's date. This update ensures the selected date is reloaded properly.
87
5
Requires at Least: 3.8
6
Tested Up To: 3.9.1
7
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
8
+ Stable tag: 1.1.4
9
License: GPLv2 or later
10
Donate link: http://themeofthecrop.com
11
25
26
More features will be added to this plugin and addons will be created which extend the functionality or integrate with third-party services. Follow future developments at [Theme of the Crop](http://themeofthecrop.com/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Restaurant%20Reservations) or read the Upgrade Notices when you see updates for this plugin in your WordPress admin panel.
27
28
+ This plugin is part of a group of plugins for restaurants. Check out the [Food and Drink Menu](http://wordpress.org/plugins/food-and-drink-menu/), [Good Reviews for WordPress](http://wordpress.org/plugins/good-reviews-wp/) and [Business Profile](http://wordpress.org/plugins/business-profile/) plugins as well.
29
30
= How to use =
31
56
57
== Changelog ==
58
59
+ = 1.1.4 (2014-07-03) =
60
+ * Add a .pot file for easier translations
61
+ * Fix notifications that showed MySQL date format instead of user-selected format
62
+ * Fix Arabic translation of pickadate component
63
+ * Add support for the correct start of the week depending on language
64
+
65
= 1.1.3 (2014-05-22) =
66
* Fix an error where the wrong date would be selected when a form was reloaded with validation errors
67
88
89
== Upgrade Notice ==
90
91
+ = 1.1.4 =
92
+ This updated fixes an error with the format of the date in notification emails. Now it will show you the date formatted however you have chosen for it to be formatted in your WordPress installation. It also now displays the correct start of the week depending on the language selected for the datepicker. A .pot file is now included for easier translations.
93
+
94
= 1.1.3 =
95
This update fixes an error when the form had validation errors (missing fields or wrong date/time selected). Instead of loading the selected date it would load today's date. This update ensures the selected date is reloaded properly.
96
restaurant-reservations.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: Restaurant Reservations
4
* Plugin URI: http://themeofthecrop.com
5
* Description: Accept restaurant reservations and bookings online.
6
- * Version: 1.1.3
7
* Author: Theme of the Crop
8
* Author URI: http://themeofthecrop.com
9
* License: GNU General Public License v2.0 or later
3
* Plugin Name: Restaurant Reservations
4
* Plugin URI: http://themeofthecrop.com
5
* Description: Accept restaurant reservations and bookings online.
6
+ * Version: 1.1.4
7
* Author: Theme of the Crop
8
* Author URI: http://themeofthecrop.com
9
* License: GNU General Public License v2.0 or later