mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 06:32:24 +03:00
Use the shorthand method for translations
This commit is contained in:
parent
238c480837
commit
77d8d4e5ab
2 changed files with 5 additions and 5 deletions
|
@ -137,8 +137,8 @@ class Appointments extends EA_Controller {
|
|||
$minutes = ($book_advance_timeout % 60);
|
||||
|
||||
$view = [
|
||||
'message_title' => $this->lang->line('appointment_locked'),
|
||||
'message_text' => strtr($this->lang->line('appointment_locked_message'), [
|
||||
'message_title' => lang('appointment_locked'),
|
||||
'message_text' => strtr(lang('appointment_locked_message'), [
|
||||
'{$limit}' => sprintf('%02d:%02d', $hours, $minutes)
|
||||
]),
|
||||
'message_icon' => base_url('assets/img/error.png')
|
||||
|
|
|
@ -242,7 +242,7 @@ class Email {
|
|||
'appointment_service' => $service['name'],
|
||||
'appointment_provider' => $provider['first_name'] . ' ' . $provider['last_name'],
|
||||
'appointment_date' => $appointment_start->format($date_format . ' ' . $time_format),
|
||||
'appointment_duration' => $service['duration'] . ' ' . $this->CI->lang->line('minutes'),
|
||||
'appointment_duration' => $service['duration'] . ' ' . lang('minutes'),
|
||||
'appointment_timezone' => $timezones[empty($timezone) ? $provider['timezone'] : $timezone],
|
||||
'company_link' => $settings['company_link'],
|
||||
'company_name' => $settings['company_name'],
|
||||
|
@ -259,7 +259,7 @@ class Email {
|
|||
$mailer->From = $settings['company_email'];
|
||||
$mailer->FromName = $settings['company_name'];
|
||||
$mailer->AddAddress($recipient_email->get()); // "Name" argument crushes the phpmailer class.
|
||||
$mailer->Subject = $this->CI->lang->line('appointment_cancelled_title');
|
||||
$mailer->Subject = lang('appointment_cancelled_title');
|
||||
$mailer->Body = $html;
|
||||
|
||||
if ( ! $mailer->Send())
|
||||
|
@ -293,7 +293,7 @@ class Email {
|
|||
$mailer->From = $settings['company_email'];
|
||||
$mailer->FromName = $settings['company_name'];
|
||||
$mailer->AddAddress($recipientEmail->get()); // "Name" argument crushes the phpmailer class.
|
||||
$mailer->Subject = $this->CI->lang->line('new_account_password');
|
||||
$mailer->Subject = lang('new_account_password');
|
||||
$mailer->Body = $html;
|
||||
|
||||
if ( ! $mailer->Send())
|
||||
|
|
Loading…
Reference in a new issue