Skip to content

Commit

Permalink
Fix: Made the string "Switch to New View" translatable in three PHP f…
Browse files Browse the repository at this point in the history
…iles (#7373)
  • Loading branch information
DAnn2012 authored Apr 30, 2024
1 parent b7aae2e commit 139f59b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DonationForms/V2/DonationFormsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function showReactTable() {

jQuery(function () {
jQuery(jQuery(".wrap .page-title-action")[0]).after(
'<button class="page-title-action" onclick="showReactTable()">Switch to New View</button>',
'<button class="page-title-action" onclick="showReactTable()"><?php _e('Switch to New View', 'give') ?></button>',
);
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/Donors/DonorsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function showReactTable() {

jQuery(function () {
jQuery(jQuery(".wrap .wp-header-end")).before(
'<button class="page-title-action" onclick="showReactTable()">Switch to New View</button>',
'<button class="page-title-action" onclick="showReactTable()"><?php _e('Switch to New View', 'give') ?></button>',
);
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/Subscriptions/SubscriptionsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function showReactTable () {
}
jQuery( function() {
jQuery(jQuery(".wrap .wp-header-end")).before(
'<button class="page-title-action" onclick="showReactTable()">Switch to New View</button>'
'<button class="page-title-action" onclick="showReactTable()"><?php _e('Switch to New View', 'give') ?></button>'
);
});
</script>
Expand Down

0 comments on commit 139f59b

Please sign in to comment.