From 920fbac64e1a6b2c263989cd5a34c696f19578c8 Mon Sep 17 00:00:00 2001 From: Jeremy Quinton Date: Sun, 9 Sep 2018 11:51:20 +0200 Subject: [PATCH] replace lang with trans and escape html correctly for various views --- resources/lang/en/ManageEvent.php | 4 ++-- resources/lang/pl/ManageEvent.php | 2 +- resources/views/Installer/AlreadyInstalled.blade.php | 2 +- resources/views/Installer/Installer.blade.php | 2 +- .../views/ManageAccount/Modals/EditAccount.blade.php | 9 ++++----- resources/views/ManageEvent/Customize.blade.php | 6 +++--- .../views/ManageEvent/Modals/CancelAttendee.blade.php | 8 ++++---- resources/views/ManageEvent/Modals/CancelOrder.blade.php | 4 ++-- .../views/ManageEvent/Modals/EditAttendee.blade.php | 2 +- resources/views/ManageEvent/Modals/EditOrder.blade.php | 2 +- .../views/ManageEvent/Modals/EditQuestion.blade.php | 2 +- resources/views/ManageEvent/Modals/ManageOrder.blade.php | 4 ++-- .../views/ManageEvent/Modals/MessageAttendee.blade.php | 2 +- .../views/ManageEvent/Modals/MessageOrder.blade.php | 2 +- .../ManageEvent/Modals/ResendTicketToAttendee.blade.php | 2 +- resources/views/ManageEvent/Orders.blade.php | 2 +- resources/views/ManageEvent/Partials/TopNav.blade.php | 2 +- resources/views/ManageEvent/PrintAttendees.blade.php | 3 ++- resources/views/ManageOrganiser/Dashboard.blade.php | 4 ++-- resources/views/Public/LoginAndRegister/Signup.blade.php | 2 +- .../ViewEvent/Partials/EventCreateOrderSection.blade.php | 2 +- .../ViewEvent/Partials/EventViewOrderSection.blade.php | 5 ++--- 22 files changed, 36 insertions(+), 37 deletions(-) diff --git a/resources/lang/en/ManageEvent.php b/resources/lang/en/ManageEvent.php index fc25af16..10b54ddc 100644 --- a/resources/lang/en/ManageEvent.php +++ b/resources/lang/en/ManageEvent.php @@ -13,7 +13,7 @@ return array ( 'attendee_cancelled_help' => 'This attendee has been cancelled', 'attendees_file_requirements' => 'File must be .csv and the first line must contain first_name,last_name,email', 'attendize_qrcode_check_in' => 'Attendize QRCode Check-in', - 'cancel_attendee_title' => 'Cancel :cancelb>', + 'cancel_attendee_title' => 'Cancel :cancel', 'cancel_description' => 'Cancelling Attendees will remove them from the attendee list.', 'cancel_notify' => 'Notify :name their ticket has been cancelled.', 'cancel_order_:ref' => 'Cancel Order: :ref', @@ -61,7 +61,7 @@ return array ( 'no_orders_yet_text' => 'New orders will appear here as they are created.', 'order_contact_will_receive_instructions' => 'The order contact will be instructed to send any reply to :email', 'order_details' => 'Order Details', - 'order_overwiev' => 'Order Overview', + 'order_overview' => 'Order Overview', 'order_ref' => 'Order: #:order_ref', 'order_refunded' => ':money of this order has been refunded.', 'price_placeholder' => 'E.g: 25.99', diff --git a/resources/lang/pl/ManageEvent.php b/resources/lang/pl/ManageEvent.php index 19a97ddd..82b74952 100644 --- a/resources/lang/pl/ManageEvent.php +++ b/resources/lang/pl/ManageEvent.php @@ -58,7 +58,7 @@ return array ( 'no_orders_yet_text' => 'Nowe zamówienia pojawią się, jak tylko zostaną złożone.', 'order_contact_will_receive_instructions' => 'Kontakt z zamówienia zostanie poinformowany o możliwości odpowiedzi na email :email', 'order_details' => 'Szczegóły Zamówienia', - 'order_overwiev' => 'Przegląd Zamówienia', + 'order_overview' => 'Przegląd Zamówienia', 'order_ref' => 'Zamówienie: #:order_ref', 'order_refunded' => ':money z tego zamówienia zostało zwróconych.', 'price_placeholder' => 'Np.: 25.99', diff --git a/resources/views/Installer/AlreadyInstalled.blade.php b/resources/views/Installer/AlreadyInstalled.blade.php index b27c180a..b77d77f3 100644 --- a/resources/views/Installer/AlreadyInstalled.blade.php +++ b/resources/views/Installer/AlreadyInstalled.blade.php @@ -13,7 +13,7 @@

@lang("Installer.setup_completed")

-

@lang("Installer.setup_completed_already_message")

+

{!! @trans("Installer.setup_completed_already_message") !!}

diff --git a/resources/views/Installer/Installer.blade.php b/resources/views/Installer/Installer.blade.php index 13880b61..6d4468e7 100644 --- a/resources/views/Installer/Installer.blade.php +++ b/resources/views/Installer/Installer.blade.php @@ -216,7 +216,7 @@ 'placeholder' => 'mail' )) !!}
- @lang("Installer.mail_from_help") + {!! @trans("Installer.mail_from_help") !!}
diff --git a/resources/views/ManageAccount/Modals/EditAccount.blade.php b/resources/views/ManageAccount/Modals/EditAccount.blade.php index 1e66157d..19e8366e 100644 --- a/resources/views/ManageAccount/Modals/EditAccount.blade.php +++ b/resources/views/ManageAccount/Modals/EditAccount.blade.php @@ -150,18 +150,17 @@ @lang("ManageAccount.version_up_to_date", ["installed" => $version_info['installed']]) @endif

-

- @lang("ManageAccount.licence_info") + {!! @trans("ManageAccount.licence_info") !!}

- @lang("ManageAccount.licence_info_description") + {!! @trans("ManageAccount.licence_info_description") !!}

- @lang("ManageAccount.open_source_soft")Open-source Software + {!! @trans("ManageAccount.open_source_soft") !!} Open-source Software

- @lang("ManageAccount.open_source_soft_description") + {!! @trans("ManageAccount.open_source_soft_description") !!}

diff --git a/resources/views/ManageEvent/Customize.blade.php b/resources/views/ManageEvent/Customize.blade.php index f18f9ec0..8855f0d0 100644 --- a/resources/views/ManageEvent/Customize.blade.php +++ b/resources/views/ManageEvent/Customize.blade.php @@ -422,7 +422,7 @@

@lang("Fees.organiser_fees")

- @lang("Fees.organiser_fees_text") + {!! @trans("Fees.organiser_fees_text") !!}
@@ -432,7 +432,7 @@ 'placeholder' => trans("Fees.service_fee_percentage_placeholder") ]) !!}
- @lang("Fees.service_fee_percentage_help") + {!! @trans("Fees.service_fee_percentage_help") !!}
@@ -442,7 +442,7 @@ 'placeholder' => trans("Fees.service_fee_fixed_price_placeholder") ]) !!}
- @lang("Fees.service_fee_fixed_price_help", ["cur"=>$event->currency_symbol]) + {!! @trans("Fees.service_fee_fixed_price_help", ["cur"=>$event->currency_symbol]) !!}
@else
- @lang("ManageEvent.cant_refund_here", ["gateway"=>$order->payment_gateway->provider_name]) + {!! @trans("ManageEvent.cant_refund_here", ["gateway"=>$order->payment_gateway->provider_name]) !!}
@endif diff --git a/resources/views/ManageEvent/Modals/EditAttendee.blade.php b/resources/views/ManageEvent/Modals/EditAttendee.blade.php index 52905839..f31750b3 100644 --- a/resources/views/ManageEvent/Modals/EditAttendee.blade.php +++ b/resources/views/ManageEvent/Modals/EditAttendee.blade.php @@ -6,7 +6,7 @@