setup to start translation

This commit is contained in:
johanricher 2018-10-01 16:58:08 +02:00
parent 510bdefec2
commit a2da46ce5a
16 changed files with 637 additions and 1 deletions

View File

@ -52,7 +52,7 @@ return [
//'ewo' => ['name' => 'Ewondo', 'script' => 'Latn', 'native' => 'ewondo', 'regional' => ''],
//'ee' => ['name' => 'Ewe', 'script' => 'Latn', 'native' => 'eʋegbe', 'regional' => ''],
//'fil' => ['name' => 'Filipino', 'script' => 'Latn', 'native' => 'Filipino', 'regional' => 'fil_PH'],
//'fr' => ['name' => 'French', 'script' => 'Latn', 'native' => 'français', 'regional' => 'fr_FR'],
'fr' => ['name' => 'French', 'script' => 'Latn', 'native' => 'français', 'regional' => 'fr_FR'],
//'fr-CA' => ['name' => 'Canadian French', 'script' => 'Latn', 'native' => 'français canadien', 'regional' => 'fr_CA'],
//'fy' => ['name' => 'Western Frisian', 'script' => 'Latn', 'native' => 'frysk', 'regional' => 'fy_DE'],
//'fur' => ['name' => 'Friulian', 'script' => 'Latn', 'native' => 'furlan', 'regional' => 'fur_IT'],

View File

@ -0,0 +1,11 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<div>
Hello,<br><br>
To reset your password, complete this form: {{ route('showResetPassword', ['token' => $token]) }}.
<br><br><br>
Thank you,<br>
Team Attendize
</div>
@stop

View File

@ -0,0 +1,30 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<p>Hi {{$first_name}}</p>
<p>
Thank you for registering for {{ config('attendize.app_name') }}. We're thrilled to have you on board.
</p>
<p>
You can create you first event and confirm your email using the link below.
</p>
<div style="padding: 5px; border: 1px solid #ccc;">
{{route('confirmEmail', ['confirmation_code' => $confirmation_code])}}
</div>
<br><br>
<p>
If you have any questions, feedback or suggestions feel free to reply to this email.
</p>
<p>
Thank you
</p>
@stop
@section('footer')
@stop

View File

@ -0,0 +1,8 @@
<pre>
{{json_encode($data)}}
</pre>
<hr>
<pre>
{{json_encode($job)}}
</pre>

View File

@ -0,0 +1,71 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
@section('subject')
Attendize.com Email
@show
</title>
</head>
<body style="background-color: #f7f7f7;margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;-webkit-font-smoothing: antialiased;-webkit-text-size-adjust: none;width: 100% !important;height: 100%">
<!-- body -->
<table class="body-wrap" style="background-color: #f7f7f7;margin: 0;padding: 20px;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;width: 100%">
<tr style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<td style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6"></td>
<td class="container" bgcolor="#FFFFFF" style="margin: 0 auto !important;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;border: 1px solid #f0f0f0;display: block !important;max-width: 600px !important;clear: both !important">
<!-- content -->
<div class="content" style="color: #888;margin: 0 auto;padding: 20px;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;max-width: 600px;display: block">
<table style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;width: 100%">
<tr style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<td style="text-align: center;padding: 10px;margin: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<img style="max-width: 110px;margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6" src="{{url(asset(isset($email_logo) ? $email_logo : 'assets/images/logo-dark.png'))}}" />
</td>
</tr>
<tr style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<td style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
@yield('message_content')
</td>
</tr>
</table>
</div>
<!-- /content -->
</td>
<td style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6"></td>
</tr>
</table>
<!-- /body -->
<!-- footer -->
<table class="footer-wrap" style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;width: 100%;clear: both !important">
<tr style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<td style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6"></td>
<td class="container" style="margin: 0 auto !important;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;display: block !important;max-width: 600px !important;clear: both !important">
<!-- content -->
<div class="content" style="margin: 0 auto;padding: 20px;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;max-width: 600px;display: block">
<table style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;width: 100%">
<tr style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
<td align="center" style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6">
{{--Attendize is provided free of charge on the condition the below hyperlink is left in place.--}}
{{--See https://www.attendize.com/licence.html for more information.--}}
<p style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 1.6;color: #666;margin-bottom: 10px;font-weight: normal">Powered By <a href="https://www.attendize.com/?email_footer_powered_by" style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6;color: #999">Attendize.com</a>.
</p>
@yield('footer')
</td>
</tr>
</table>
</div><!-- /content -->
</td>
<td style="margin: 0;padding: 0;font-family: &quot;Helvetica Neue&quot;, &quot;Helvetica&quot;, Helvetica, Arial, sans-serif;font-size: 100%;line-height: 1.6"></td>
</tr>
</table>
<!-- /footer -->
</body>
</html>

View File

@ -0,0 +1,121 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
Hello,<br><br>
Your order for the event <b>{{$order->event->title}}</b> was successful.<br><br>
Your tickets are attached to this email. You can also view you order details and download your tickets at: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}}
<h3>Order Details</h3>
Order Reference: <b>{{$order->order_reference}}</b><br>
Order Name: <b>{{$order->full_name}}</b><br>
Order Date: <b>{{$order->created_at->toDayDateTimeString()}}</b><br>
Order Email: <b>{{$order->email}}</b><br>
<h3>Order Items</h3>
<div style="padding:10px; background: #F9F9F9; border: 1px solid #f1f1f1;">
<table style="width:100%; margin:10px;">
<tr>
<td>
<b>Ticket</b>
</td>
<td>
<b>Qty.</b>
</td>
<td>
<b>Price</b>
</td>
<td>
<b>Fee</b>
</td>
<td>
<b>Total</b>
</td>
</tr>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}}
@endif
</td>
</tr>
@endforeach
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Sub Total</b>
</td>
<td colspan="2">
{{$orderService->getOrderTotalWithBookingFee(true)}}
</td>
</tr>
@if($order->event->organiser->charge_tax == 1)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>{{$order->event->organiser->tax_name}}</b>
</td>
<td colspan="2">
{{$orderService->getTaxAmount(true)}}
</td>
</tr>
@endif
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Total</b>
</td>
<td colspan="2">
{{$orderService->getGrandTotal(true)}}
</td>
</tr>
</table>
<br><br>
</div>
<br><br>
Thank you
@stop

View File

@ -0,0 +1,130 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
Hello,<br><br>
You have received a new order for the event <b>{{$order->event->title}}</b>.<br><br>
@if(!$order->is_payment_received)
<b>Please note: This order still requires payment.</b>
<br><br>
@endif
Order Summary:
<br><br>
Order Reference: <b>{{$order->order_reference}}</b><br>
Order Name: <b>{{$order->full_name}}</b><br>
Order Date: <b>{{$order->created_at->toDayDateTimeString()}}</b><br>
Order Email: <b>{{$order->email}}</b><br>
<h3>Order Items</h3>
<div style="padding:10px; background: #F9F9F9; border: 1px solid #f1f1f1;">
<table style="width:100%; margin:10px;">
<tr>
<th>
Ticket
</th>
<th>
Quantity
</th>
<th>
Price
</th>
<th>
Booking Fee
</th>
<th>
Total
</th>
</tr>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}}
@endif
</td>
</tr>
@endforeach
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Sub Total</b>
</td>
<td colspan="2">
{{$orderService->getOrderTotalWithBookingFee(true)}}
</td>
</tr>
@if($order->event->organiser->charge_tax == 1)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>{{$order->event->organiser->tax_name}}</b>
</td>
<td colspan="2">
{{$orderService->getTaxAmount(true)}}
</td>
</tr>
@endif
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Total</b>
</td>
<td colspan="2">
{{$orderService->getGrandTotal(true)}}
</td>
</tr>
</table>
<br><br>
You can manage this order at: {{route('showEventOrders', ['event_id' => $order->event->id, 'q'=>$order->order_reference])}}
<br><br>
</div>
<br><br>
Thank you
@stop

View File

@ -0,0 +1,10 @@
Hi {{{$attendee->first_name}}},<br><br>
We've attached your tickets to this email.<br><br>
You can view your order info and download your tickets at {{route('showOrderDetails', ['order_reference' => $attendee->order->order_reference])}} anytime.<br><br>
Your order reference is <b>{{$attendee->order->order_reference}}</b>.<br>
Thank you<br>

View File

@ -0,0 +1,37 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<p>Hello</p>
<p>
You have been added to an {{ config('attendize.app_name') }} account by {{$inviter->first_name.' '.$inviter->last_name}}.
</p>
<p>
You can log in using the following details.<br><br>
Username: <b>{{$user->email}}</b> <br>
Password: <b>{{$temp_password}}</b>
</p>
<p>
You can change your temporary password once you have logged.
</p>
<div style="padding: 5px; border: 1px solid #ccc;" >
{{route('login')}}
</div>
<br><br>
<p>
If you have any questions please reply to this email.
</p>
<p>
Thank you
</p>
@stop
@section('footer')
@stop

View File

@ -0,0 +1,19 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<p>Hi there,</p>
<p>You have received a message from <b>{{ (isset($sender_name) ? $sender_name : $event->organiser->name) }}</b> in relation to the event <b>{{ $event->title }}</b>.</p>
<p style="padding: 10px; margin:10px; border: 1px solid #f3f3f3;">
{{nl2br($message_content)}}
</p>
<p>
You can contact <b>{{ (isset($sender_name) ? $sender_name : $event->organiser->name) }}</b> directly at <a href='mailto:{{ (isset($sender_email) ? $sender_email : $event->organiser->email) }}'>{{ (isset($sender_email) ? $sender_email : $event->organiser->email) }}</a>, or by replying to this email.
</p>
@stop
@section('footer')
@stop

View File

@ -0,0 +1,17 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<p>Hi there,</p>
<p>
Your ticket for the event <b>{{{$attendee->event->title}}}</b> has been cancelled.
</p>
<p>
You can contact <b>{{{$attendee->event->organiser->name}}}</b> directly at <a href='mailto:{{{$attendee->event->organiser->email}}}'>{{{$attendee->event->organiser->email}}}</a> or by replying to this email should you require any more information.
</p>
@stop
@section('footer')
@stop

View File

@ -0,0 +1,18 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
<p>Hi there,</p>
<p>
You have received a refund on behalf of your cancelled ticket for <b>{{{$attendee->event->title}}}</b>.
<b>{{{ $refund_amount }}} has been refunded to the original payee, you should see the payment in a few days.</b>
</p>
<p>
You can contact <b>{{{ $attendee->event->organiser->name }}}</b> directly at <a href='mailto:{{{$attendee->event->organiser->email}}}'>{{{$attendee->event->organiser->email}}}</a> or by replying to this email should you require any more information.
</p>
@stop
@section('footer')
@stop

View File

@ -0,0 +1,18 @@
<div class="well">
<p>
Installation may make take several minutes to complete. Once you click '<b>Install Attendize</b>' the config settings will be written to this file: <b>{{base_path('.env')}}</b>. You can manually change these settings in the future by editing this file.
</p>
<p>
If the install fails be sure to check the log file in <b>{{storage_path('logs')}}</b>. If there are no errors in the log files also <b>check other log files on your server</b>.
</p>
<p>
If you are using shared hosting please ask your host if they support the Attendize requirements before requesting support.
</p>
<p>
If you still need help you can <a href="https://github.com/Attendize/Attendize/issues">raise an issue</a>. Please include as much detail as possible, including any errors in the log file.
Also take a look at the <a href="http://www.attendize.com/troubleshooting.html">troubleshooting guide</a>
</p>
<p>
Please also <a style="text-decoration: underline;" target="_blank" href="http://www.attendize.com/license.html">read the licence</a> before installing Attendize.
</p>
</div>

View File

@ -0,0 +1,11 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
Hello {{$attendee->first_name}},<br><br>
You have been invited to the event <b>{{$attendee->order->event->title}}</b>.<br/>
Your ticket for the event is attached to this email.
<br><br>
Regards
@stop

View File

@ -0,0 +1,10 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
Hello {{$attendee->first_name}},<br><br>
Your ticket for the event <b>{{$attendee->order->event->title}}</b> is attached to this email.
<br><br>
Thank you
@stop

View File

@ -0,0 +1,125 @@
@extends('en.Emails.Layouts.Master')
@section('message_content')
Hello,<br><br>
Your order for the event <b>{{$order->event->title}}</b> was successful.<br><br>
Your tickets are attached to this email. You can also view you order details and download your tickets at: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}}
@if(!$order->is_payment_received)
<br><br>
<b>Please note: This order still requires payment. Instructions on how to make payment can be found on your order page: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}}</b>
<br><br>
@endif
<h3>Order Details</h3>
Order Reference: <b>{{$order->order_reference}}</b><br>
Order Name: <b>{{$order->full_name}}</b><br>
Order Date: <b>{{$order->created_at->toDayDateTimeString()}}</b><br>
Order Email: <b>{{$order->email}}</b><br>
<a href="{!! route('downloadCalendarIcs', ['event_id' => $order->event->id]) !!}">Add To Calendar</a>
<h3>Order Items</h3>
<div style="padding:10px; background: #F9F9F9; border: 1px solid #f1f1f1;">
<table style="width:100%; margin:10px;">
<tr>
<td>
<b>Ticket</b>
</td>
<td>
<b>Qty.</b>
</td>
<td>
<b>Price</b>
</td>
<td>
<b>Fee</b>
</td>
<td>
<b>Total</b>
</td>
</tr>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
FREE
@else
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}}
@endif
</td>
</tr>
@endforeach
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Sub Total</b>
</td>
<td colspan="2">
{{$orderService->getOrderTotalWithBookingFee(true)}}
</td>
</tr>
@if($order->event->organiser->charge_tax == 1)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>{{$order->event->organiser->tax_name}}</b>
</td>
<td colspan="2">
{{$orderService->getTaxAmount(true)}}
</td>
</tr>
@endif
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Total</b>
</td>
<td colspan="2">
{{$orderService->getGrandTotal(true)}}
</td>
</tr>
</table>
<br><br>
</div>
<br><br>
Thank you
@stop