Make admin test email translatable

This commit is contained in:
Florian Dupret
2020-05-25 13:13:33 +02:00
parent 2c9ac0982a
commit b54bb20617
7 changed files with 19 additions and 11 deletions

View File

@@ -1621,6 +1621,15 @@ return [
'box_net_worth_in_currency' => 'Net worth (:currency)',
'box_spend_per_day' => 'Left to spend per day: :amount',
// emails
'email_greeting' => 'Hi there,',
'email_closing' => 'Beep boop,',
'email_signature' => 'The Firefly III Mail Robot',
'email_footer_ps' => 'PS: This message was sent because a request from IP :ip:userIp:ipAddress triggered it.',
'email_admin_test_subject' => 'A test message from your Firefly III installation',
'email_admin_test_body' => 'This is a test message from your Firefly III instance. It was sent to :email.',
// telemetry
'telemetry_admin_index' => 'Telemetry',
'telemetry_intro' => 'Firefly III supports the collection and sending of usage telemetry. This means that Firefly III will try to collect info on how you use Firefly III, and send it to the developer of Firefly III. This is always opt-in, and is disabled by default. Firefly III will never collect or send financial information. Firefly III will also never collect or send financial meta-information, like sums or calculations. The collected data will never be made publicly accessible.',

View File

@@ -1,5 +1,5 @@
{% include 'emails.header-html' %}
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
This is a test message from your Firefly III instance. It was sent to {{ email }}.
{{ trans('firefly.email_admin_test_body', {email: email })}}
</p>
{% include 'emails.footer-html' %}

View File

@@ -1,3 +1,3 @@
{% include 'emails.header-text' %}
This is a test message from your Firefly III instance. It was sent to {{ email }}.
{{ trans('firefly.email_admin_test_body', {email: email })}}
{% include 'emails.footer-text' %}

View File

@@ -1,12 +1,12 @@
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
Beep boop,
{{ trans('firefly.email_closing') }}
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
The Firefly III Mail Robot
{{ trans('firefly.email_signature') }}
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:11px;color:#aaa;">
PS: This message was sent because a request from IP {{ ip }}{{ userIp }}{{ ipAddress }} triggered it.
{{ trans('firefly.email_footer_ps', {ip: ip, userIp: userIp, ipAddress: ipAddress}) }}
</p>
</body>

View File

@@ -1,6 +1,6 @@
Beep boop,
{{ trans('firefly.email_closing') }}
The Firefly III Mail Robot
{{ trans('firefly.email_signature') }}
PS: This message was sent because a request from IP {{ ip }}{{ userIp }}{{ ipAddress }} triggered it.
{{ trans('firefly.email_footer_ps', {ip: ip, userIp: userIp, ipAddress: ipAddress}) }}

View File

@@ -6,5 +6,5 @@
</head>
<body>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
Hi there,
{{ trans('firefly.email_greeting') }}
</p>

View File

@@ -1,2 +1 @@
Hi there,
{{ trans('firefly.email_greeting') }}