Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19802 - Fix more translated strings in tpls #9587

Merged
merged 1 commit into from
Jan 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CRM/Event/Form/EventFees.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public static function buildQuickForm(&$form) {
&& !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) {
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Campaign/Form/Task/Interview.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
7 changes: 0 additions & 7 deletions templates/CRM/Event/Form/EventFees.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
+--------------------------------------------------------------------+
*}
{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}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Event/Form/SelfSvcUpdate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
});
Expand Down