Skip to content

Commit

Permalink
Prevent duplicated subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Aug 26, 2024
1 parent b9ba359 commit 79ffd90
Show file tree
Hide file tree
Showing 38 changed files with 339 additions and 234 deletions.
28 changes: 16 additions & 12 deletions lang/activities.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-25 14:51+0200\n"
"POT-Creation-Date: 2024-08-26 07:53+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -23,7 +23,7 @@ msgid "Activities management"
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/ActivitiesController.php:199
#: ../lib/GaletteActivities/Entity/Subscription.php:559
#: ../lib/GaletteActivities/Entity/Subscription.php:563
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:124
#: ../tempcache/subscription.html.twig:109
Expand Down Expand Up @@ -65,16 +65,16 @@ msgstr ""
msgid "Subscription has been modified."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:378
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:382
msgid "An error occurred while storing the subscription."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:388
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:391
msgid "Do not forget to store the subscription"
msgstr ""

#. TRANS: %1$s is the member name, %2$s the activity name.
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:491
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:494
#, php-format
msgid "Remove subscription for %1$s on %2$s"
msgstr ""
Expand Down Expand Up @@ -129,14 +129,14 @@ msgid "Group"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:428
#: ../lib/GaletteActivities/Entity/Subscription.php:579
#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../tempcache/activities.html.twig:100 ../tempcache/activities.html.twig:181
#: ../tempcache/subscription.html.twig:71
msgid "Creation date"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:432
#: ../lib/GaletteActivities/Entity/Subscription.php:591
#: ../lib/GaletteActivities/Entity/Subscription.php:595
#: ../tempcache/subscription.html.twig:121
msgid "Comment"
msgstr ""
Expand Down Expand Up @@ -169,26 +169,30 @@ msgstr ""
msgid "Subscription updated"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:563
msgid "Member"
#: ../lib/GaletteActivities/Entity/Subscription.php:328
msgid "Subscription already exists for this member and activity"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:567
msgid "Is paid"
msgid "Member"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:571
msgid "Is paid"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:448
#: ../tempcache/subscription.html.twig:138
msgid "Amount"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../lib/GaletteActivities/Entity/Subscription.php:579
msgid "Payment method"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../lib/GaletteActivities/Entity/Subscription.php:587
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:432
#: ../tempcache/subscription.html.twig:77
Expand Down
30 changes: 17 additions & 13 deletions lang/activities_ar.utf8.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-25 14:51+0200\n"
"PO-Revision-Date: 2024-08-25 14:53+0200\n"
"POT-Creation-Date: 2024-08-26 07:53+0200\n"
"PO-Revision-Date: 2024-08-26 07:54+0200\n"
"Last-Translator: Johan Cwiklinski <[email protected]>\n"
"Language-Team: Arabic <https://hosted.weblate.org/projects/galette/events-"
"plugin/ar/>\n"
Expand All @@ -23,7 +23,7 @@ msgid "Activities management"
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/ActivitiesController.php:199
#: ../lib/GaletteActivities/Entity/Subscription.php:559
#: ../lib/GaletteActivities/Entity/Subscription.php:563
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:124
#: ../tempcache/subscription.html.twig:109
Expand Down Expand Up @@ -65,16 +65,16 @@ msgstr ""
msgid "Subscription has been modified."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:378
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:382
msgid "An error occurred while storing the subscription."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:388
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:391
msgid "Do not forget to store the subscription"
msgstr ""

#. TRANS: %1$s is the member name, %2$s the activity name.
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:491
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:494
#, php-format
msgid "Remove subscription for %1$s on %2$s"
msgstr ""
Expand Down Expand Up @@ -129,14 +129,14 @@ msgid "Group"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:428
#: ../lib/GaletteActivities/Entity/Subscription.php:579
#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../tempcache/activities.html.twig:100 ../tempcache/activities.html.twig:181
#: ../tempcache/subscription.html.twig:71
msgid "Creation date"
msgstr "تاريخ الإنشاء"

#: ../lib/GaletteActivities/Entity/Activity.php:432
#: ../lib/GaletteActivities/Entity/Subscription.php:591
#: ../lib/GaletteActivities/Entity/Subscription.php:595
#: ../tempcache/subscription.html.twig:121
msgid "Comment"
msgstr ""
Expand Down Expand Up @@ -171,26 +171,30 @@ msgstr ""
msgid "Subscription updated"
msgstr "تاريخ الإنشاء"

#: ../lib/GaletteActivities/Entity/Subscription.php:563
msgid "Member"
#: ../lib/GaletteActivities/Entity/Subscription.php:328
msgid "Subscription already exists for this member and activity"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:567
msgid "Is paid"
msgid "Member"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:571
msgid "Is paid"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:448
#: ../tempcache/subscription.html.twig:138
msgid "Amount"
msgstr "المَبلغ"

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../lib/GaletteActivities/Entity/Subscription.php:579
msgid "Payment method"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../lib/GaletteActivities/Entity/Subscription.php:587
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:432
#: ../tempcache/subscription.html.twig:77
Expand Down
30 changes: 17 additions & 13 deletions lang/activities_br.utf8.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-25 14:51+0200\n"
"PO-Revision-Date: 2024-08-25 14:55+0200\n"
"POT-Creation-Date: 2024-08-26 07:53+0200\n"
"PO-Revision-Date: 2024-08-26 07:55+0200\n"
"Last-Translator: Johan Cwiklinski <[email protected]>\n"
"Language-Team: none\n"
"Language: br\n"
Expand All @@ -21,7 +21,7 @@ msgid "Activities management"
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/ActivitiesController.php:199
#: ../lib/GaletteActivities/Entity/Subscription.php:559
#: ../lib/GaletteActivities/Entity/Subscription.php:563
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:124
#: ../tempcache/subscription.html.twig:109
Expand Down Expand Up @@ -63,16 +63,16 @@ msgstr ""
msgid "Subscription has been modified."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:378
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:382
msgid "An error occurred while storing the subscription."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:388
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:391
msgid "Do not forget to store the subscription"
msgstr ""

#. TRANS: %1$s is the member name, %2$s the activity name.
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:491
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:494
#, php-format
msgid "Remove subscription for %1$s on %2$s"
msgstr ""
Expand Down Expand Up @@ -127,14 +127,14 @@ msgid "Group"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:428
#: ../lib/GaletteActivities/Entity/Subscription.php:579
#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../tempcache/activities.html.twig:100 ../tempcache/activities.html.twig:181
#: ../tempcache/subscription.html.twig:71
msgid "Creation date"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:432
#: ../lib/GaletteActivities/Entity/Subscription.php:591
#: ../lib/GaletteActivities/Entity/Subscription.php:595
#: ../tempcache/subscription.html.twig:121
msgid "Comment"
msgstr ""
Expand Down Expand Up @@ -167,26 +167,30 @@ msgstr ""
msgid "Subscription updated"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:563
msgid "Member"
#: ../lib/GaletteActivities/Entity/Subscription.php:328
msgid "Subscription already exists for this member and activity"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:567
msgid "Is paid"
msgid "Member"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:571
msgid "Is paid"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:448
#: ../tempcache/subscription.html.twig:138
msgid "Amount"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../lib/GaletteActivities/Entity/Subscription.php:579
msgid "Payment method"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../lib/GaletteActivities/Entity/Subscription.php:587
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:432
#: ../tempcache/subscription.html.twig:77
Expand Down
30 changes: 17 additions & 13 deletions lang/activities_ca.utf8.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-25 14:51+0200\n"
"PO-Revision-Date: 2024-08-25 14:55+0200\n"
"POT-Creation-Date: 2024-08-26 07:53+0200\n"
"PO-Revision-Date: 2024-08-26 07:55+0200\n"
"Last-Translator: Johan Cwiklinski <[email protected]>\n"
"Language-Team: Catalan <https://hosted.weblate.org/projects/galette/events-"
"plugin/ca/>\n"
Expand All @@ -21,7 +21,7 @@ msgid "Activities management"
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/ActivitiesController.php:199
#: ../lib/GaletteActivities/Entity/Subscription.php:559
#: ../lib/GaletteActivities/Entity/Subscription.php:563
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:124
#: ../tempcache/subscription.html.twig:109
Expand Down Expand Up @@ -63,16 +63,16 @@ msgstr ""
msgid "Subscription has been modified."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:378
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:382
msgid "An error occurred while storing the subscription."
msgstr ""

#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:388
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:391
msgid "Do not forget to store the subscription"
msgstr ""

#. TRANS: %1$s is the member name, %2$s the activity name.
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:491
#: ../lib/GaletteActivities/Controllers/Crud/SubscriptionsController.php:494
#, php-format
msgid "Remove subscription for %1$s on %2$s"
msgstr ""
Expand Down Expand Up @@ -127,14 +127,14 @@ msgid "Group"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:428
#: ../lib/GaletteActivities/Entity/Subscription.php:579
#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../tempcache/activities.html.twig:100 ../tempcache/activities.html.twig:181
#: ../tempcache/subscription.html.twig:71
msgid "Creation date"
msgstr ""

#: ../lib/GaletteActivities/Entity/Activity.php:432
#: ../lib/GaletteActivities/Entity/Subscription.php:591
#: ../lib/GaletteActivities/Entity/Subscription.php:595
#: ../tempcache/subscription.html.twig:121
msgid "Comment"
msgstr "Comentari"
Expand Down Expand Up @@ -167,26 +167,30 @@ msgstr ""
msgid "Subscription updated"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:563
msgid "Member"
#: ../lib/GaletteActivities/Entity/Subscription.php:328
msgid "Subscription already exists for this member and activity"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:567
msgid "Is paid"
msgid "Member"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:571
msgid "Is paid"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:448
#: ../tempcache/subscription.html.twig:138
msgid "Amount"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:575
#: ../lib/GaletteActivities/Entity/Subscription.php:579
msgid "Payment method"
msgstr ""

#: ../lib/GaletteActivities/Entity/Subscription.php:583
#: ../lib/GaletteActivities/Entity/Subscription.php:587
#: ../tempcache/subscriptions.html.twig:102
#: ../tempcache/subscriptions.html.twig:432
#: ../tempcache/subscription.html.twig:77
Expand Down
Loading

0 comments on commit 79ffd90

Please sign in to comment.