Skip to content

Commit

Permalink
Add fifth option to weekdays
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbelletre committed Feb 14, 2024
1 parent fced94c commit 1b8665c
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 89 deletions.
4 changes: 2 additions & 2 deletions acf-rrule.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: ACF RRule Field
Plugin URI: https://github.com/marcbelletre/acf-rrule
Description: Create recurring rules with a single ACF field
Version: 1.4.2
Version: 1.5.0
Author: Marc Bellêtre
Author URI: https://pixelparfait.fr
License: MIT
Expand Down Expand Up @@ -44,7 +44,7 @@ public function __construct()
// Settings
// - these will be passed into the field class.
$this->settings = [
'version' => '1.4.2',
'version' => '1.5.0',
'url' => plugin_dir_url(__FILE__),
'path' => plugin_dir_path(__FILE__),
];
Expand Down
4 changes: 2 additions & 2 deletions assets/js/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
});

field.$el.find('.monthly-by-options').on('change', 'input[type=radio]', function () {
selectMonthlyBy(($(this)));
selectMonthlyBy($(this));
});

selectFrequency(field.$el.find('.frequency-select'));
selectEndType(field.$el.find('.end-type-select'));
selectMonthlyBy(field.$el.find('.monthly-by-options'));
selectMonthlyBy(field.$el.find('.monthly-by-options input[type=radio]:checked'));
}

if (typeof acf.addAction !== 'undefined') {
Expand Down
63 changes: 43 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions include/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,12 @@
<ul class="acf-checkbox-list">
<?php
$bysetpos = [
'1' => 'First',
'2' => 'Second',
'3' => 'Third',
'4' => 'Fourth',
'-1' => 'Last',
'1' => __('First', 'acf-rrule-field'),
'2' => __('Second', 'acf-rrule-field'),
'3' => __('Third', 'acf-rrule-field'),
'4' => __('Fourth', 'acf-rrule-field'),
'5' => __('Fifth', 'acf-rrule-field'),
'-1' => __('Last', 'acf-rrule-field'),
];
?>

Expand Down
Binary file modified lang/acf-rrule-field-fr_FR.mo
Binary file not shown.
83 changes: 46 additions & 37 deletions lang/acf-rrule-field-fr_FR.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: ACF RRule Field\n"
"POT-Creation-Date: 2024-01-18 11:51+0100\n"
"PO-Revision-Date: 2024-01-18 11:55+0100\n"
"POT-Creation-Date: 2024-02-14 11:28+0100\n"
"PO-Revision-Date: 2024-02-14 11:28+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -221,83 +221,107 @@ msgstr "Jours du mois"
msgid "Weekdays"
msgstr "Jours de la semaine"

#: include/render.php:256
#: include/render.php:207
msgid "First"
msgstr "Premier"

#: include/render.php:208
msgid "Second"
msgstr "Deuxième"

#: include/render.php:209
msgid "Third"
msgstr "Troisième"

#: include/render.php:210
msgid "Fourth"
msgstr "Quatrième"

#: include/render.php:211
msgid "Fifth"
msgstr "Cinquième"

#: include/render.php:212
msgid "Last"
msgstr "Dernier"

#: include/render.php:257
msgid "Month"
msgstr "Mois"

#: include/render.php:262
#: include/render.php:263
msgid "January"
msgstr "Janvier"

#: include/render.php:263
#: include/render.php:264
msgid "February"
msgstr "Février"

#: include/render.php:264
#: include/render.php:265
msgid "March"
msgstr "Mars"

#: include/render.php:265
#: include/render.php:266
msgid "April"
msgstr "Avril"

#: include/render.php:266
#: include/render.php:267
msgid "May"
msgstr "Mai"

#: include/render.php:267
#: include/render.php:268
msgid "June"
msgstr "Juin"

#: include/render.php:268
#: include/render.php:269
msgid "July"
msgstr "Juillet"

#: include/render.php:269
#: include/render.php:270
msgid "August"
msgstr "Août"

#: include/render.php:270
#: include/render.php:271
msgid "September"
msgstr "Septembre"

#: include/render.php:271
#: include/render.php:272
msgid "October"
msgstr "Octobre"

#: include/render.php:272
#: include/render.php:273
msgid "November"
msgstr "Novembre"

#: include/render.php:273
#: include/render.php:274
msgid "December"
msgstr "Décembre"

#: include/render.php:297
#: include/render.php:298
msgid "End date"
msgstr "Date de fin"

#: include/render.php:307
#: include/render.php:308
msgid "At a specific date"
msgstr "À une date précise"

#: include/render.php:308
#: include/render.php:309
msgid "After a number of occurrences"
msgstr "Après un certain nombre d’occurrences"

#: include/render.php:309
#: include/render.php:310
msgid "Never"
msgstr "Jamais"

#: include/render.php:330
#: include/render.php:331
msgid "After"
msgstr "Après"

#: include/render.php:333
#: include/render.php:334
msgid "occurrence(s)"
msgstr "occurrence(s)"

#: include/render.php:356
#: include/render.php:357
msgid "Until"
msgstr "Jusqu'à"

Expand All @@ -323,18 +347,3 @@ msgstr "https://pixelparfait.fr"

#~ msgid "Days of the week"
#~ msgstr "Jours de la semaine"

#~ msgid "First"
#~ msgstr "Premier"

#~ msgid "Second"
#~ msgstr "Deuxième"

#~ msgid "Third"
#~ msgstr "Troisième"

#~ msgid "Fourth"
#~ msgstr "Quatrième"

#~ msgid "Last"
#~ msgstr "Dernier"
Loading

0 comments on commit 1b8665c

Please sign in to comment.