convert .aff.json to .aff.php and add ts()
authorbenjamin <benjamin>
Tue, 5 Dec 2023 10:45:08 +0000 (10:45 +0000)
committerbenjamin <benjamin>
Tue, 5 Dec 2023 11:29:44 +0000 (11:29 +0000)
38 files changed:
ext/afform/core/ang/afblockContactAddress.aff.json [deleted file]
ext/afform/core/ang/afblockContactAddress.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockContactEmail.aff.json [deleted file]
ext/afform/core/ang/afblockContactEmail.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockContactIM.aff.json [deleted file]
ext/afform/core/ang/afblockContactIM.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockContactNote.aff.json [deleted file]
ext/afform/core/ang/afblockContactNote.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockContactPhone.aff.json [deleted file]
ext/afform/core/ang/afblockContactPhone.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockContactWebsite.aff.json [deleted file]
ext/afform/core/ang/afblockContactWebsite.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockNameHousehold.aff.json [deleted file]
ext/afform/core/ang/afblockNameHousehold.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockNameIndividual.aff.json [deleted file]
ext/afform/core/ang/afblockNameIndividual.aff.php [new file with mode: 0644]
ext/afform/core/ang/afblockNameOrganization.aff.json [deleted file]
ext/afform/core/ang/afblockNameOrganization.aff.php [new file with mode: 0644]
ext/afform/html/ang/afHtmlAdmin.aff.json [deleted file]
ext/afform/html/ang/afHtmlAdmin.aff.php [new file with mode: 0644]
ext/afform/mock/ang/afex.aff.json [deleted file]
ext/afform/mock/ang/afex.aff.php [new file with mode: 0644]
ext/afform/mock/ang/mock-weird-name.aff.json [deleted file]
ext/afform/mock/ang/mock-weird-name.aff.php [new file with mode: 0644]
ext/afform/mock/ang/mockFoo.aff.json [deleted file]
ext/afform/mock/ang/mockFoo.aff.php [new file with mode: 0644]
ext/afform/mock/ang/mockPage.aff.json [deleted file]
ext/afform/mock/ang/mockPage.aff.php [new file with mode: 0644]
ext/afform/mock/ang/mockPublicForm.aff.json [deleted file]
ext/afform/mock/ang/mockPublicForm.aff.php [new file with mode: 0644]
ext/afform/mock/ang/testAfform.aff.json [deleted file]
ext/afform/mock/ang/testAfform.aff.php [new file with mode: 0644]
ext/afform/mock/ang/testContactEmailSearchForm.aff.json [deleted file]
ext/afform/mock/ang/testContactEmailSearchForm.aff.php [new file with mode: 0644]
ext/afform/mock/ang/testMultipleSearchForm.aff.json [deleted file]
ext/afform/mock/ang/testMultipleSearchForm.aff.php [new file with mode: 0644]
ext/civi_mail/ang/afsearchEmailBounceHistory.aff.json [deleted file]
ext/civi_mail/ang/afsearchEmailBounceHistory.aff.php [new file with mode: 0644]

diff --git a/ext/afform/core/ang/afblockContactAddress.aff.json b/ext/afform/core/ang/afblockContactAddress.aff.json
deleted file mode 100644 (file)
index 0a0e209..0000000
+++ /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 (file)
index 0000000..aa4c595
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index 6ddb66f..0000000
+++ /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 (file)
index 0000000..a299946
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index 953d1a0..0000000
+++ /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 (file)
index 0000000..1d91ae6
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index b341287..0000000
+++ /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 (file)
index 0000000..6ad8421
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index c66eae8..0000000
+++ /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 (file)
index 0000000..62067e4
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index 89288fc..0000000
+++ /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 (file)
index 0000000..5a01dd9
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'title' => 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 (file)
index dd665a1..0000000
+++ /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 (file)
index 0000000..ab157bd
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+return [
+  'title' => 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 (file)
index 1cafdc4..0000000
+++ /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 (file)
index 0000000..772e597
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+return [
+  'title' => 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 (file)
index ca44304..0000000
+++ /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 (file)
index 0000000..9ed7f39
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+return [
+  'title' => 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 (file)
index 4feaa98..0000000
+++ /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 (file)
index 0000000..9ca9fff
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+return [
+  'title' => 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 (file)
index e0dc036..0000000
+++ /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 (file)
index 0000000..4e3a8e3
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+return [
+  'server_route' => '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 (file)
index f047ea6..0000000
+++ /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 (file)
index 0000000..744d2aa
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+return [
+  'title' => 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 (file)
index 0967ef4..0000000
+++ /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 (file)
index 0000000..881ab67
--- /dev/null
@@ -0,0 +1,2 @@
+<?php
+return [];
diff --git a/ext/afform/mock/ang/mockPage.aff.json b/ext/afform/mock/ang/mockPage.aff.json
deleted file mode 100644 (file)
index b8ba11b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  "server_route": "civicrm/mock-page",
-  "requires": ["mockBespoke"],
-  "permission": "access Foobar",
-  "is_dashlet": true
-}
diff --git a/ext/afform/mock/ang/mockPage.aff.php b/ext/afform/mock/ang/mockPage.aff.php
new file mode 100644 (file)
index 0000000..bca133b
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'server_route' => '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 (file)
index eb22130..0000000
+++ /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 (file)
index 0000000..533d45e
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+return [
+  'type' => '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 (file)
index 6c8684e..0000000
+++ /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 (file)
index 0000000..906d9b6
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+return [
+  'server_route' => '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 (file)
index cefad3d..0000000
+++ /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 (file)
index 0000000..d0816ec
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'type' => '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 (file)
index 609e0f5..0000000
+++ /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 (file)
index 0000000..c997388
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+return [
+  'type' => '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 (file)
index fc0020c..0000000
+++ /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 (file)
index 0000000..c77aa04
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+return [
+  'type' => 'search',
+  'title' => ts('Email Bounce History'),
+  'icon' => 'fa-list-alt',
+  'server_route' => 'civicrm/contact/view/bounces',
+  'permission' => 'access CiviCRM',
+];