E:: to make it look after the extension's translation
authorALL IN APPLI admin <62597730+allinappliadmin@users.noreply.github.com>
Wed, 9 Aug 2023 14:44:57 +0000 (16:44 +0200)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 9 Aug 2023 15:19:47 +0000 (11:19 -0400)
ext/afform/core/Civi/Afform/Utils.php

index 2dc219cb757286e9ec3d0f53632dc08ca71627fc..613787f0c6ee271ac3b20eb25e5c1cab16b55381 100644 (file)
@@ -12,6 +12,8 @@
 
 namespace Civi\Afform;
 
+use CRM_Afform_ExtensionUtil as E;
+
 /**
  *
  * @package Civi\Afform
@@ -65,14 +67,14 @@ class Utils {
       '<' => '<',
       '>=' => '≥',
       '<=' => '≤',
-      'CONTAINS' => ts('Contains'),
-      'NOT CONTAINS' => ts("Doesn't Contain"),
-      'IN' => ts('Is One Of'),
-      'NOT IN' => ts('Not One Of'),
-      'LIKE' => ts('Is Like'),
-      'NOT LIKE' => ts('Not Like'),
-      'REGEXP' => ts('Matches Pattern'),
-      'NOT REGEXP' => ts("Doesn't Match Pattern"),
+      'CONTAINS' => E::ts('Contains'),
+      'NOT CONTAINS' => E::ts("Doesn't Contain"),
+      'IN' => E::ts('Is One Of'),
+      'NOT IN' => E::ts('Not One Of'),
+      'LIKE' => E::ts('Is Like'),
+      'NOT LIKE' => E::ts('Not Like'),
+      'REGEXP' => E::ts('Matches Pattern'),
+      'NOT REGEXP' => E::ts("Doesn't Match Pattern"),
     ];
   }