diff --git a/doc/translations.xls b/doc/translations.xls index 1711ceab..552dc5a7 100644 Binary files a/doc/translations.xls and b/doc/translations.xls differ diff --git a/src/application/config/autoload.php b/src/application/config/autoload.php index 8846a11a..521ab1c7 100644 --- a/src/application/config/autoload.php +++ b/src/application/config/autoload.php @@ -96,7 +96,7 @@ $autoload['config'] = array(); | */ -$autoload['language'] = array('frontend', 'backend'); +$autoload['language'] = array('translations'); /* diff --git a/src/application/controllers/appointments.php b/src/application/controllers/appointments.php index a6f18ca5..133fb6fb 100644 --- a/src/application/controllers/appointments.php +++ b/src/application/controllers/appointments.php @@ -38,8 +38,8 @@ class Appointments extends CI_Controller { // The requested appointment doesn't exist in the database. Display // a message to the customer. $view = array( - 'message_title' => $this->lang->line('fe_appointment_not_found'), - 'message_text' => $this->lang->line('fe_appointment_does_not_exist_in_db'), + 'message_title' => $this->lang->line('appointment_not_found'), + 'message_text' => $this->lang->line('appointment_does_not_exist_in_db'), 'message_icon' => $this->config->item('base_url') . 'assets/images/error.png', 'company_name' => $company_name @@ -147,22 +147,22 @@ class Appointments extends CI_Controller { ->get_setting('notifications', $provider['id']); if (!$post_data['manage_mode']) { - $customer_title = $this->lang->line('fe_appointment_booked'); - $customer_message = $this->lang->line('fe_thank_your_for_appointment'); + $customer_title = $this->lang->line('appointment_booked'); + $customer_message = $this->lang->line('thank_your_for_appointment'); $customer_link = $this->config->item('base_url') . 'appointments/index/' . $appointment['hash']; - $provider_title = $this->lang->line('fe_appointment_added_to_your_plan'); - $provider_message = $this->lang->line('fe_appointment_link_description'); + $provider_title = $this->lang->line('appointment_added_to_your_plan'); + $provider_message = $this->lang->line('appointment_link_description'); $provider_link = $this->config->item('base_url') . 'backend/index/' . $appointment['hash']; } else { - $customer_title = $this->lang->line('be_appointment_changes_saved'); + $customer_title = $this->lang->line('appointment_changes_saved'); $customer_message = ''; $customer_link = $this->config->item('base_url') . 'appointments/index/' . $appointment['hash']; - $provider_title = $this->lang->line('be_appointment_details_changed'); + $provider_title = $this->lang->line('appointment_details_changed'); $provider_message = ''; $provider_link = $this->config->item('base_url') . 'backend/index/' . $appointment['hash']; diff --git a/src/application/language/english/backend_lang.php b/src/application/language/english/backend_lang.php deleted file mode 100644 index 2f7f2d18..00000000 --- a/src/application/language/english/backend_lang.php +++ /dev/null @@ -1,190 +0,0 @@ - $customer_data['address'], // Translations - 'Appointment Details' => $this->ci->lang->line('fe_appointment_details_title'), - 'Service' => $this->ci->lang->line('fe_service'), - 'Provider' => $this->ci->lang->line('fe_provider'), - 'Start' => $this->ci->lang->line('fe_start'), - 'End' => $this->ci->lang->line('fe_end'), - 'Customer Details' => $this->ci->lang->line('fe_customer_details_title'), - 'Name' => $this->ci->lang->line('fe_name'), - 'Email' => $this->ci->lang->line('fe_email'), - 'Phone' => $this->ci->lang->line('fe_phone'), - 'Address' => $this->ci->lang->line('fe_address'), - 'Appointment Link' => $this->ci->lang->line('fe_appointment_link_title') + 'Appointment Details' => $this->ci->lang->line('appointment_details_title'), + 'Service' => $this->ci->lang->line('service'), + 'Provider' => $this->ci->lang->line('provider'), + 'Start' => $this->ci->lang->line('start'), + 'End' => $this->ci->lang->line('end'), + 'Customer Details' => $this->ci->lang->line('customer_details_title'), + 'Name' => $this->ci->lang->line('name'), + 'Email' => $this->ci->lang->line('email'), + 'Phone' => $this->ci->lang->line('phone'), + 'Address' => $this->ci->lang->line('address'), + 'Appointment Link' => $this->ci->lang->line('appointment_link_title') ); $email_html = file_get_contents(dirname(dirname(__FILE__)) @@ -142,8 +142,8 @@ class Notifications { $service_data, $customer_data, $company_settings, $to_address, $reason) { // :: PREPARE EMAIL REPLACE ARRAY $replace_array = array( - '$email_title' => $this->ci->lang->line('fe_appointment_cancelled_title'), - '$email_message' => $this->ci->lang->line('fe_appointment_removed_from_schedule'), + '$email_title' => $this->ci->lang->line('appointment_cancelled_title'), + '$email_message' => $this->ci->lang->line('appointment_removed_from_schedule'), '$appointment_service' => $service_data['name'], '$appointment_provider' => $provider_data['first_name'] . ' ' . $provider_data['last_name'], '$appointment_date' => date('d/m/Y H:i', strtotime($appointment_data['start_datetime'])), @@ -157,17 +157,17 @@ class Notifications { '$reason' => $reason, // Translations - 'Appointment Details' => $this->ci->lang->line('fe_appointment_details_title'), - 'Service' => $this->ci->lang->line('fe_service'), - 'Provider' => $this->ci->lang->line('fe_provider'), - 'Date' => $this->ci->lang->line('fe_start'), - 'Duration' => $this->ci->lang->line('fe_duration'), - 'Customer Details' => $this->ci->lang->line('fe_customer_details_title'), - 'Name' => $this->ci->lang->line('fe_name'), - 'Email' => $this->ci->lang->line('fe_email'), - 'Phone' => $this->ci->lang->line('fe_phone'), - 'Address' => $this->ci->lang->line('fe_address'), - 'Reason' => $this->ci->lang->line('fe_reason') + 'Appointment Details' => $this->ci->lang->line('appointment_details_title'), + 'Service' => $this->ci->lang->line('service'), + 'Provider' => $this->ci->lang->line('provider'), + 'Date' => $this->ci->lang->line('start'), + 'Duration' => $this->ci->lang->line('duration'), + 'Customer Details' => $this->ci->lang->line('customer_details_title'), + 'Name' => $this->ci->lang->line('name'), + 'Email' => $this->ci->lang->line('email'), + 'Phone' => $this->ci->lang->line('phone'), + 'Address' => $this->ci->lang->line('address'), + 'Reason' => $this->ci->lang->line('reason') ); $email_html = file_get_contents(dirname(dirname(__FILE__)) @@ -181,7 +181,7 @@ class Notifications { $mail->AddAddress($to_address); // "Name" argument crushes the phpmailer class. $mail->IsHTML(true); $mail->CharSet = 'UTF-8'; - $mail->Subject = $this->ci->lang->line('fe_appointment_cancelled_title'); + $mail->Subject = $this->ci->lang->line('appointment_cancelled_title'); $mail->Body = $email_html; if (!$mail->Send()) { @@ -200,8 +200,8 @@ class Notifications { */ public function send_password($password, $email, $company_settings) { $replace_array = array( - '$email_title' => $this->ci->lang->line('be_new_account_password'), - '$email_message' => $this->ci->lang->line('be_new_password_is'), + '$email_title' => $this->ci->lang->line('new_account_password'), + '$email_message' => $this->ci->lang->line('new_password_is'), '$company_name' => $company_settings['company_name'], '$company_email' => $company_settings['company_email'], '$company_link' => $company_settings['company_link'], @@ -219,7 +219,7 @@ class Notifications { $mail->AddAddress($email); // "Name" argument crushes the phpmailer class. $mail->IsHTML(true); $mail->CharSet = 'UTF-8'; - $mail->Subject = $this->ci->lang->line('be_new_account_password'); + $mail->Subject = $this->ci->lang->line('new_account_password'); $mail->Body = $email_html; if (!$mail->Send()) { diff --git a/src/application/views/appointments/book.php b/src/application/views/appointments/book.php index 8eabd293..b208ab16 100644 --- a/src/application/views/appointments/book.php +++ b/src/application/views/appointments/book.php @@ -1,7 +1,7 @@
-' . - $this->lang->line('fe_cancel_appointment_hint') . + $this->lang->line('cancel_appointment_hint') . '