CRM-19802 - Fix more translated strings in tpls
authorColeman Watts <coleman@civicrm.org>
Wed, 28 Dec 2016 21:56:52 +0000 (16:56 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 28 Dec 2016 21:56:52 +0000 (16:56 -0500)
CRM/Event/Form/EventFees.php
templates/CRM/Campaign/Form/Task/Interview.tpl
templates/CRM/Event/Form/EventFees.tpl
templates/CRM/Event/Form/SelfSvcUpdate.tpl

index a607057c7bc0be1c0a8865825afdd778c33411cf..1fec0fbdbf04399be75704a5347b57605c1f3cad 100644 (file)
@@ -407,7 +407,7 @@ SELECT  id, html_type
         && !CRM_Utils_Array::value('fee', $form->_values)
         && CRM_Utils_Array::value('snippet', $_REQUEST) == CRM_Core_Smarty::PRINT_NOFORM
       ) {
-        $form->assign('isFTPermissionDenied', TRUE);
+        CRM_Core_Session::setStatus(ts('You do not have all the permissions needed for this page.'), 'Permission Denied', 'error');
         return FALSE;
       }
       if ($form->_mode) {
index 9e81ae503561339889161179c6320d4c50e6e42b..604ca70dbc9ebc35927282aa4d14e0017b125421 100644 (file)
@@ -328,7 +328,7 @@ var surveyActivityIds = {/literal}{$surveyActivityIds}{literal};
         if (interview.errors[error]) errorList =  errorList + '<li>' + interview.errors[error] + '</li>';
       }
       if ( errorList ) {
-        var allErrors = '<i class="crm-i fa-exclamation-triangle crm-i-red"></i> ' + ts('Please correct the following errors in the survey fields below:') + '<ul>' + errorList + '</ul>';
+        var allErrors = '<i class="crm-i fa-exclamation-triangle crm-i-red"></i> {/literal}{ts}Please correct the following errors in the survey fields below:{/ts}{literal}<ul>' + errorList + '</ul>';
         CRM.$('#responseErrors').show( ).html(allErrors);
       }
     }
index 2926ef215f0ca97afd233ed03060110635b02e21..ac5ce599754f59e9a383d9427350aff28802cea5 100644 (file)
  +--------------------------------------------------------------------+
 *}
 {assign var=isRecordPayment value=1 }
-{if $isFTPermissionDenied}
-  <script>
-  {literal}
-    CRM.alert(ts('You do not have all the permissions needed for this page.'), 'Permission Denied', 'error');
-  {/literal}
-  </script>
-{/if}
 {if $paid} {* We retrieve this tpl when event is selected - keep it empty if event is not paid *}
     <table class="form-layout">
     {if $priceSet}
index 0bb958bdf9c0cb8f0b5acd6b660444cb60ee2678..3ad6699f56318be04a164fef64fef00ed265c121 100644 (file)
@@ -56,7 +56,7 @@
     $('#action').on('change', function() {
       selected = $(this).find("option:selected").text();
       if (selected == 'Cancel' && contributionID) {
-        CRM.alert(ts('Cancellations are not refundable.'), 'Warning', 'alert');
+        CRM.alert('{/literal}{ts}Cancellations are not refundable.{/ts}{literal}', 'Warning', 'alert');
       }
     });
   });