From: benjamin Date: Tue, 5 Dec 2023 10:45:08 +0000 (+0000) Subject: convert .aff.json to .aff.php and add ts() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8faeb9e5b1c842f2ff5b40c2d3118ecd0be9ab21;p=civicrm-core.git convert .aff.json to .aff.php and add ts() --- diff --git a/ext/afform/core/ang/afblockContactAddress.aff.json b/ext/afform/core/ang/afblockContactAddress.aff.json deleted file mode 100644 index 0a0e209345..0000000000 --- a/ext/afform/core/ang/afblockContactAddress.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "Contact Address(es)", - "type": "block", - "entity_type": "Contact", - "join_entity": "Address" -} diff --git a/ext/afform/core/ang/afblockContactAddress.aff.php b/ext/afform/core/ang/afblockContactAddress.aff.php new file mode 100644 index 0000000000..aa4c5957d4 --- /dev/null +++ b/ext/afform/core/ang/afblockContactAddress.aff.php @@ -0,0 +1,7 @@ + ts('Contact Address(es)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'Address', +]; diff --git a/ext/afform/core/ang/afblockContactEmail.aff.json b/ext/afform/core/ang/afblockContactEmail.aff.json deleted file mode 100644 index 6ddb66f259..0000000000 --- a/ext/afform/core/ang/afblockContactEmail.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "Contact Email(s)", - "type": "block", - "entity_type": "Contact", - "join_entity": "Email" -} diff --git a/ext/afform/core/ang/afblockContactEmail.aff.php b/ext/afform/core/ang/afblockContactEmail.aff.php new file mode 100644 index 0000000000..a299946658 --- /dev/null +++ b/ext/afform/core/ang/afblockContactEmail.aff.php @@ -0,0 +1,7 @@ + ts('Contact Email(s)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'Email', +]; diff --git a/ext/afform/core/ang/afblockContactIM.aff.json b/ext/afform/core/ang/afblockContactIM.aff.json deleted file mode 100644 index 953d1a09d1..0000000000 --- a/ext/afform/core/ang/afblockContactIM.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "Contact IM(s)", - "type": "block", - "entity_type": "Contact", - "join_entity": "IM" -} diff --git a/ext/afform/core/ang/afblockContactIM.aff.php b/ext/afform/core/ang/afblockContactIM.aff.php new file mode 100644 index 0000000000..1d91ae64cf --- /dev/null +++ b/ext/afform/core/ang/afblockContactIM.aff.php @@ -0,0 +1,7 @@ + ts('Contact IM(s)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'IM', +]; diff --git a/ext/afform/core/ang/afblockContactNote.aff.json b/ext/afform/core/ang/afblockContactNote.aff.json deleted file mode 100644 index b3412870a7..0000000000 --- a/ext/afform/core/ang/afblockContactNote.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "title": "Contact Note(s)", - "type": "block", - "entity_type": "Contact", - "join_entity": "Note" - } - \ No newline at end of file diff --git a/ext/afform/core/ang/afblockContactNote.aff.php b/ext/afform/core/ang/afblockContactNote.aff.php new file mode 100644 index 0000000000..6ad8421dc7 --- /dev/null +++ b/ext/afform/core/ang/afblockContactNote.aff.php @@ -0,0 +1,7 @@ + ts('Contact Note(s)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'Note', +]; diff --git a/ext/afform/core/ang/afblockContactPhone.aff.json b/ext/afform/core/ang/afblockContactPhone.aff.json deleted file mode 100644 index c66eae8b24..0000000000 --- a/ext/afform/core/ang/afblockContactPhone.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "Contact Phone(s)", - "type": "block", - "entity_type": "Contact", - "join_entity": "Phone" -} diff --git a/ext/afform/core/ang/afblockContactPhone.aff.php b/ext/afform/core/ang/afblockContactPhone.aff.php new file mode 100644 index 0000000000..62067e40ce --- /dev/null +++ b/ext/afform/core/ang/afblockContactPhone.aff.php @@ -0,0 +1,7 @@ + ts('Contact Phone(s)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'Phone', +]; diff --git a/ext/afform/core/ang/afblockContactWebsite.aff.json b/ext/afform/core/ang/afblockContactWebsite.aff.json deleted file mode 100644 index 89288fcfd0..0000000000 --- a/ext/afform/core/ang/afblockContactWebsite.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "Contact Website(s)", - "type": "block", - "entity_type": "Contact", - "join_entity": "Website" -} diff --git a/ext/afform/core/ang/afblockContactWebsite.aff.php b/ext/afform/core/ang/afblockContactWebsite.aff.php new file mode 100644 index 0000000000..5a01dd983a --- /dev/null +++ b/ext/afform/core/ang/afblockContactWebsite.aff.php @@ -0,0 +1,7 @@ + ts('Contact Website(s)'), + 'type' => 'block', + 'entity_type' => 'Contact', + 'join_entity' => 'Website', +]; diff --git a/ext/afform/core/ang/afblockNameHousehold.aff.json b/ext/afform/core/ang/afblockNameHousehold.aff.json deleted file mode 100644 index dd665a10cc..0000000000 --- a/ext/afform/core/ang/afblockNameHousehold.aff.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Household Name", - "type": "block", - "entity_type": "Household" -} diff --git a/ext/afform/core/ang/afblockNameHousehold.aff.php b/ext/afform/core/ang/afblockNameHousehold.aff.php new file mode 100644 index 0000000000..ab157bd6b7 --- /dev/null +++ b/ext/afform/core/ang/afblockNameHousehold.aff.php @@ -0,0 +1,6 @@ + ts('Household Name'), + 'type' => 'block', + 'entity_type' => 'Household', +]; diff --git a/ext/afform/core/ang/afblockNameIndividual.aff.json b/ext/afform/core/ang/afblockNameIndividual.aff.json deleted file mode 100644 index 1cafdc4be6..0000000000 --- a/ext/afform/core/ang/afblockNameIndividual.aff.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Individual Name", - "type": "block", - "entity_type": "Individual" -} diff --git a/ext/afform/core/ang/afblockNameIndividual.aff.php b/ext/afform/core/ang/afblockNameIndividual.aff.php new file mode 100644 index 0000000000..772e597a7a --- /dev/null +++ b/ext/afform/core/ang/afblockNameIndividual.aff.php @@ -0,0 +1,6 @@ + ts('Individual Name'), + 'type' => 'block', + 'entity_type' => 'Individual', +]; diff --git a/ext/afform/core/ang/afblockNameOrganization.aff.json b/ext/afform/core/ang/afblockNameOrganization.aff.json deleted file mode 100644 index ca44304b5d..0000000000 --- a/ext/afform/core/ang/afblockNameOrganization.aff.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Organization Name", - "type": "block", - "entity_type": "Organization" -} diff --git a/ext/afform/core/ang/afblockNameOrganization.aff.php b/ext/afform/core/ang/afblockNameOrganization.aff.php new file mode 100644 index 0000000000..9ed7f39a93 --- /dev/null +++ b/ext/afform/core/ang/afblockNameOrganization.aff.php @@ -0,0 +1,6 @@ + ts('Organization Name'), + 'type' => 'block', + 'entity_type' => 'Organization', +]; diff --git a/ext/afform/html/ang/afHtmlAdmin.aff.json b/ext/afform/html/ang/afHtmlAdmin.aff.json deleted file mode 100644 index 4feaa980aa..0000000000 --- a/ext/afform/html/ang/afHtmlAdmin.aff.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "Afform HTML Administration", - "server_route": "civicrm/admin/afform-html", - "permission": "administer CiviCRM" -} diff --git a/ext/afform/html/ang/afHtmlAdmin.aff.php b/ext/afform/html/ang/afHtmlAdmin.aff.php new file mode 100644 index 0000000000..9ca9fff78e --- /dev/null +++ b/ext/afform/html/ang/afHtmlAdmin.aff.php @@ -0,0 +1,6 @@ + ts('Afform HTML Administration'), + 'server_route' => 'civicrm/admin/afform-html', + 'permission' => 'administer CiviCRM', +]; diff --git a/ext/afform/mock/ang/afex.aff.json b/ext/afform/mock/ang/afex.aff.json deleted file mode 100644 index e0dc03664d..0000000000 --- a/ext/afform/mock/ang/afex.aff.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "server_route": "civicrm/afex", - "requires":["mockFoo", "mockBareFile", "af"] -} diff --git a/ext/afform/mock/ang/afex.aff.php b/ext/afform/mock/ang/afex.aff.php new file mode 100644 index 0000000000..4e3a8e3e00 --- /dev/null +++ b/ext/afform/mock/ang/afex.aff.php @@ -0,0 +1,5 @@ + 'civicrm/afex', + 'requires' => ['mockFoo', 'mockBareFile', 'af'], +]; diff --git a/ext/afform/mock/ang/mock-weird-name.aff.json b/ext/afform/mock/ang/mock-weird-name.aff.json deleted file mode 100644 index f047ea604f..0000000000 --- a/ext/afform/mock/ang/mock-weird-name.aff.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "title": "Weird Name" -} diff --git a/ext/afform/mock/ang/mock-weird-name.aff.php b/ext/afform/mock/ang/mock-weird-name.aff.php new file mode 100644 index 0000000000..744d2aa75d --- /dev/null +++ b/ext/afform/mock/ang/mock-weird-name.aff.php @@ -0,0 +1,4 @@ + ts('Weird Name'), +]; diff --git a/ext/afform/mock/ang/mockFoo.aff.json b/ext/afform/mock/ang/mockFoo.aff.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/ext/afform/mock/ang/mockFoo.aff.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/ext/afform/mock/ang/mockFoo.aff.php b/ext/afform/mock/ang/mockFoo.aff.php new file mode 100644 index 0000000000..881ab67d03 --- /dev/null +++ b/ext/afform/mock/ang/mockFoo.aff.php @@ -0,0 +1,2 @@ + 'civicrm/mock-page', + 'requires' => ['mockBespoke'], + 'permission' => 'access Foobar', + 'is_dashlet' => TRUE, +]; diff --git a/ext/afform/mock/ang/mockPublicForm.aff.json b/ext/afform/mock/ang/mockPublicForm.aff.json deleted file mode 100644 index eb221305ee..0000000000 --- a/ext/afform/mock/ang/mockPublicForm.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "form", - "title": "My public form", - "server_route": "civicrm/mock-public-form", - "permission": "*always allow*", - "is_token": true -} diff --git a/ext/afform/mock/ang/mockPublicForm.aff.php b/ext/afform/mock/ang/mockPublicForm.aff.php new file mode 100644 index 0000000000..533d45e701 --- /dev/null +++ b/ext/afform/mock/ang/mockPublicForm.aff.php @@ -0,0 +1,8 @@ + 'form', + 'title' => ts('My public form'), + 'server_route' => 'civicrm/mock-public-form', + 'permission' => '*always allow*', + 'is_token' => TRUE, +]; diff --git a/ext/afform/mock/ang/testAfform.aff.json b/ext/afform/mock/ang/testAfform.aff.json deleted file mode 100644 index 6c8684eee7..0000000000 --- a/ext/afform/mock/ang/testAfform.aff.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "server_route": "civicrm/test-afform", - "title": "This is a test" -} diff --git a/ext/afform/mock/ang/testAfform.aff.php b/ext/afform/mock/ang/testAfform.aff.php new file mode 100644 index 0000000000..906d9b68a4 --- /dev/null +++ b/ext/afform/mock/ang/testAfform.aff.php @@ -0,0 +1,5 @@ + 'civicrm/test-afform', + 'title' => ts('This is a test'), +]; diff --git a/ext/afform/mock/ang/testContactEmailSearchForm.aff.json b/ext/afform/mock/ang/testContactEmailSearchForm.aff.json deleted file mode 100644 index cefad3d1fd..0000000000 --- a/ext/afform/mock/ang/testContactEmailSearchForm.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "search", - "title": "TestContactEmailForm", - "server_route": "", - "permission": "access CiviCRM" -} diff --git a/ext/afform/mock/ang/testContactEmailSearchForm.aff.php b/ext/afform/mock/ang/testContactEmailSearchForm.aff.php new file mode 100644 index 0000000000..d0816ecb8f --- /dev/null +++ b/ext/afform/mock/ang/testContactEmailSearchForm.aff.php @@ -0,0 +1,7 @@ + 'search', + 'title' => ts('TestContactEmailForm'), + 'server_route' => '', + 'permission' => 'access CiviCRM', +]; diff --git a/ext/afform/mock/ang/testMultipleSearchForm.aff.json b/ext/afform/mock/ang/testMultipleSearchForm.aff.json deleted file mode 100644 index 609e0f5033..0000000000 --- a/ext/afform/mock/ang/testMultipleSearchForm.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "search", - "title": "TestMultipleSearchForm", - "server_route": "", - "permission": "access CiviCRM" -} diff --git a/ext/afform/mock/ang/testMultipleSearchForm.aff.php b/ext/afform/mock/ang/testMultipleSearchForm.aff.php new file mode 100644 index 0000000000..c997388130 --- /dev/null +++ b/ext/afform/mock/ang/testMultipleSearchForm.aff.php @@ -0,0 +1,7 @@ + 'search', + 'title' => ts('TestMultipleSearchForm'), + 'server_route' => '', + 'permission' => 'access CiviCRM', +]; diff --git a/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.json b/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.json deleted file mode 100644 index fc0020cc18..0000000000 --- a/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "search", - "title": "Email Bounce History", - "icon": "fa-list-alt", - "server_route": "civicrm/contact/view/bounces", - "permission": "access CiviCRM" -} diff --git a/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.php b/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.php new file mode 100644 index 0000000000..c77aa044a2 --- /dev/null +++ b/ext/civi_mail/ang/afsearchEmailBounceHistory.aff.php @@ -0,0 +1,8 @@ + 'search', + 'title' => ts('Email Bounce History'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/contact/view/bounces', + 'permission' => 'access CiviCRM', +];