Skip to content

Commit cfcd6bb

Browse files
committed
Merge branch 'hotfix' into develop
2 parents 43e5568 + 232b93c commit cfcd6bb

File tree

7 files changed

+58
-4
lines changed

7 files changed

+58
-4
lines changed

CRM/Contribute/Form/ContributionView.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public function preProcess() {
6565
$instrument_options = CRM_Core_OptionGroup::values('payment_instrument', FALSE);
6666
$no_expire_date = array(ts('Convenient Store'), ts('Convenient Store code'), ts('ATM'));
6767
$instrument = $instrument_options[$values['payment_instrument_id']];
68+
if ($instrument == ts('Check')) {
69+
$this->assign('payment_instrument_name', 'Check');
70+
}
6871
if($values['payment_instrument_id'] != 1 && $instrument != 'Web ATM'){
6972
$this->assign('has_expire_date', TRUE);
7073
$this->assign('expire_date', $values['expire_date']);

js/contribution_page.d9.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,19 @@
279279
$('.contrib-step-'+exec_step)
280280
.append(this.createStepBtnBlock(['last-step']).addClass('hide-as-show-all').addClass('crm-section'))
281281
.append($('.crm-submit-buttons'));
282+
283+
const $recaptchaSection = $('.crm-section.recaptcha-section');
284+
if ($recaptchaSection.length) {
285+
const $submitContainer = $('.crm-container .contrib-step:has(.crm-submit-buttons)');
286+
const $actionWrapper = $submitContainer.find('.step-action-wrapper');
287+
288+
if ($actionWrapper.length) {
289+
$actionWrapper.before($recaptchaSection);
290+
} else {
291+
$submitContainer.before($recaptchaSection);
292+
}
293+
}
294+
282295
$('.crm-contribution-main-form-block').hide();
283296

284297
if($("#billing-payment-block").length == 0){

js/contribution_page.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,19 @@
281281
$('.contrib-step-'+exec_step)
282282
.append(this.createStepBtnBlock(['last-step']).addClass('hide-as-show-all').addClass('crm-section'))
283283
.append($('.crm-submit-buttons'));
284+
285+
const $recaptchaSection = $('.crm-section.recaptcha-section');
286+
if ($recaptchaSection.length) {
287+
const $submitContainer = $('.crm-container .contrib-step:has(.crm-submit-buttons)');
288+
const $actionWrapper = $submitContainer.find('.step-action-wrapper');
289+
290+
if ($actionWrapper.length) {
291+
$actionWrapper.before($recaptchaSection);
292+
} else {
293+
$submitContainer.before($recaptchaSection);
294+
}
295+
}
296+
284297
$('.crm-contribution-main-form-block').hide();
285298

286299
if($("#billing-payment-block").length == 0){

l10n/pot/civicrm.pot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49699,6 +49699,18 @@ msgstr ""
4969949699
msgid "Please enter a default name for anonymous donors."
4970049700
msgstr ""
4970149701

49702+
#: CRM/Core/SelectValues.php
49703+
msgid "Do not notify"
49704+
msgstr ""
49705+
49706+
#: templates/CRM/Contribute/Form/Contribution.tpl
49707+
msgid "Contact labelled as do not notification."
49708+
msgstr ""
49709+
49710+
#: CRM/Event/BAO/Event.php
49711+
msgid "Email has NOT been sent to %1 contact(s) - communication preferences specify DO NOT NOTIFY OR valid Email is NOT present."
49712+
msgstr ""
49713+
4970249714
#: templates/CRM/Admin/Form/Setting/Receipt.tpl
4970349715
msgid "Please upload the logo image to be displayed on the receipt."
4970449716
msgstr ""

l10n/zh_TW/LC_MESSAGES/civicrm.mo

517 Bytes
Binary file not shown.

l10n/zh_TW/civicrm.po

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Harry Lin <[email protected]>, 2023
99
# IreneLin, 2013
1010
# IreneLin, 2013
11-
# jimyhuang <[email protected]>, 2013,2015-2024
11+
# jimyhuang <[email protected]>, 2013,2015-2025
1212
# Chang Shu-huai <[email protected]>, 2015-2016
1313
# peggy chiu, 2024
1414
# Seal Shen, 2025
@@ -22,7 +22,7 @@ msgid ""
2222
msgstr ""
2323
"Project-Id-Version: netiCRM\n"
2424
"PO-Revision-Date: 2013-07-25 09:19+0000\n"
25-
"Last-Translator: 馮 佳今, 2022-2025\n"
25+
"Last-Translator: jimyhuang <[email protected]>, 2013,2015-2025\n"
2626
"Language-Team: Chinese (Taiwan) (http://app.transifex.com/netivism-tw/neticrm/language/zh_TW/)\n"
2727
"MIME-Version: 1.0\n"
2828
"Content-Type: text/plain; charset=UTF-8\n"
@@ -50272,6 +50272,20 @@ msgstr "可自訂一個預設名稱,如「善心人士」、「OO之友」等
5027250272
msgid "Please enter a default name for anonymous donors."
5027350273
msgstr "請輸入匿名捐款人的預設名稱。"
5027450274

50275+
#: CRM/Core/SelectValues.php
50276+
msgid "Do not notify"
50277+
msgstr "不要收到系統流程信件"
50278+
50279+
#: templates/CRM/Contribute/Form/Contribution.tpl
50280+
msgid "Contact labelled as do not notification."
50281+
msgstr "聯絡人標示為不要收到系統流程信件"
50282+
50283+
#: CRM/Event/BAO/Event.php
50284+
msgid ""
50285+
"Email has NOT been sent to %1 contact(s) - communication preferences specify"
50286+
" DO NOT NOTIFY OR valid Email is NOT present."
50287+
msgstr "Email 無法寄送給 %1 位聯絡人,因為聯絡人的偏好選項設定為「不要收到系統流程信件」、或是未設定有效的 Email。"
50288+
5027550289
#: templates/CRM/Admin/Form/Setting/Receipt.tpl
5027650290
msgid "Please upload the logo image to be displayed on the receipt."
5027750291
msgstr "請上傳將顯示在收據上的 Logo 圖片。"

templates/CRM/Contribute/Form/ContributionView.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@
205205
</td>
206206
</tr>
207207
{/if}
208-
{$payment_instrument}
209-
{if $payment_instrument_id eq '4'} // If payment_instrument is check
208+
{if $payment_instrument_name eq 'Check'}
210209
<tr>
211210
<td class="label">{ts}Check Number{/ts}</td>
212211
<td>{$check_number}</td>

0 commit comments

Comments
 (0)