From d7ff69480acfa985c6069c4286ba417d64548807 Mon Sep 17 00:00:00 2001 From: asandikci Date: Mon, 1 Jan 2024 19:53:24 +0300 Subject: [PATCH] update languages and branding --- application/config/config.php | 4 ++-- application/controllers/Installation.php | 24 +++++++++---------- .../language/english/translations_lang.php | 14 +++++------ .../language/turkish/translations_lang.php | 14 +++++------ application/libraries/Api.php | 2 +- application/libraries/Captcha_builder.php | 2 +- application/libraries/Instance.php | 19 +++++++-------- .../views/components/backend_footer.php | 2 +- .../views/errors/html/error_general.php | 4 ++-- application/views/layouts/backend_layout.php | 2 +- application/views/layouts/booking_layout.php | 4 ++-- application/views/layouts/message_layout.php | 2 +- application/views/pages/about.php | 2 +- application/views/pages/installation.php | 20 ++++++++-------- 14 files changed, 57 insertions(+), 58 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index 1a7106e5..1ae3dac5 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -94,13 +94,13 @@ $languages = [ $config['language_codes'] = $languages; -$language_code = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : 'en'; +$language_code = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : 'tr'; $config['language'] = isset($_SERVER['HTTP_ACCEPT_LANGUAGE'], $languages[$language_code]) ? $languages[$language_code] : Config::LANGUAGE; -$config['language_code'] = array_search($config['language'], $languages) ?: 'en'; +$config['language_code'] = array_search($config['language'], $languages) ?: 'tr'; /* |-------------------------------------------------------------------------- diff --git a/application/controllers/Installation.php b/application/controllers/Installation.php index 4a643193..31f86de0 100644 --- a/application/controllers/Installation.php +++ b/application/controllers/Installation.php @@ -52,7 +52,7 @@ class Installation extends EA_Controller } /** - * Installs Easy!Appointments on the server. + * Installs MAKET Randevu on the server. */ public function perform() { @@ -92,8 +92,8 @@ class Installation extends EA_Controller // Service $service_id = $this->services_model->save([ - 'name' => 'Service', - 'duration' => '30', + 'name' => 'Hizmet İsmini Buraya Girin', + 'duration' => '60', 'price' => '0', 'currency' => '', 'availabilities_type' => 'flexible', @@ -102,13 +102,13 @@ class Installation extends EA_Controller // Provider $this->providers_model->save([ - 'first_name' => 'Jane', - 'last_name' => 'Doe', - 'email' => 'jane@example.org', - 'phone_number' => '+1 (000) 000-0000', + 'first_name' => 'Hizmet Sağlayıcı İsmini Buraya Girin', + 'last_name' => 'Hizmet Sağlayıcı Soyismini Buraya Girin', + 'email' => 'hizmet_saglayici_mail@example.org', + 'phone_number' => '+90 (000) 000-0000', 'services' => [$service_id], 'settings' => [ - 'username' => 'janedoe', + 'username' => 'ilkhizmetsaglayici', 'password' => random_string(), 'working_plan' => setting('company_working_plan'), 'notifications' => true, @@ -121,10 +121,10 @@ class Installation extends EA_Controller // Customer $this->customers_model->save([ - 'first_name' => 'James', - 'last_name' => 'Doe', - 'email' => 'james@example.org', - 'phone_number' => '+1 (000) 000-0000', + 'first_name' => 'Örnek Müşteri İsmi', + 'last_name' => 'Örnek Müşteri Soyismi', + 'email' => 'ornek_musteri@example.org', + 'phone_number' => '+90 (000) 000-0000', ]); json_response([ diff --git a/application/language/english/translations_lang.php b/application/language/english/translations_lang.php index d721dffd..28972668 100755 --- a/application/language/english/translations_lang.php +++ b/application/language/english/translations_lang.php @@ -175,22 +175,22 @@ $lang['visible'] = 'Visible'; $lang['hidden'] = 'Hidden'; $lang['business_logic'] = 'Business Logic'; $lang['current_user'] = 'Current User'; -$lang['about_app'] = 'About Easy!Appointments'; +$lang['about_app'] = 'About MAKET Randevu'; $lang['edit_working_plan_hint'] = 'Mark below the days and hours that your company will accept appointments. You will be able to adjust appointments in non-working hours but the customers will not be able to book appointments by themselves in non-working periods. This working plan will be the default for every new provider record, but you will be able to change each provider\'s plan separately by editing his record. After that you can add break periods.'; $lang['edit_breaks_hint'] = 'Add the working breaks during each day. These breaks will be applied for all new providers.'; $lang['book_advance_timeout'] = 'Book Advance Timeout'; $lang['book_advance_timeout_hint'] = 'Define the timeout (in minutes) before the customers can book or re-arrange appointments with the company.'; $lang['timeout_minutes'] = 'Timeout (Minutes)'; -$lang['about_app_info'] = 'Easy!Appointments is a highly customizable web application that allows your customers to book appointments with you via the web. Moreover, it provides the ability to sync your data with Google Calendar, so you can use them with other services.'; +$lang['about_app_info'] = 'MAKET Randevu is a highly customizable web application that allows your customers to book appointments with you via the web. Moreover, it provides the ability to sync your data with Google Calendar, so you can use them with other services.'; $lang['current_version'] = 'Current Version'; $lang['support'] = 'Support'; -$lang['about_app_support'] = 'If you encounter any problems when using Easy!Appointments you can search the official Google Group for answers. You might also need to create a new issue on the Google Code page in order to help the development progress.'; +$lang['about_app_support'] = 'If you encounter any problems when using MAKET Randevu you can search the official Google Group for answers. You might also need to create a new issue on the Google Code page in order to help the development progress.'; $lang['official_website'] = 'Official Website'; $lang['google_plus_community'] = 'Google+ Community'; $lang['support_group'] = 'Support Group'; $lang['project_issues'] = 'Project Issues'; $lang['license'] = 'License'; -$lang['about_app_license'] = 'Easy!Appointments is licensed under the GPLv3 license. By using the code of Easy!Appointments in any way you are agreeing to the terms described in the following url:'; +$lang['about_app_license'] = 'MAKET Randevu is licensed under the GPLv3 license. By using the code of MAKET Randevu in any way you are agreeing to the terms described in the following url:'; $lang['logout_success'] = 'You have been successfully logged out! Click on one of the following buttons to navigate to a different page.'; $lang['book_appointment_title'] = 'Book Appointment'; $lang['backend_section'] = 'Backend Section'; @@ -272,7 +272,7 @@ $lang['select_google_calendar_prompt'] = 'Select the calendar that you want to s $lang['google_calendar_selected'] = 'Google calendar has been successfully selected.'; $lang['oops_something_went_wrong'] = 'Oops! Something Went Wrong.'; $lang['could_not_add_to_google_calendar'] = 'Your appointment could not be added to your Google Calendar account.'; -$lang['ea_update_success'] = 'Easy!Appointments has been successfully updated.'; +$lang['ea_update_success'] = 'MAKET Randevu has been successfully updated.'; $lang['require_captcha'] = 'Require CAPTCHA'; $lang['require_captcha_hint'] = 'When enabled, the customers will have to type a random generated CAPTCHA string before booking/updating an appointment.'; $lang['captcha_is_wrong'] = 'CAPTCHA verification failed, please try again.'; @@ -320,7 +320,7 @@ $lang['add_working_plan_exception'] = 'Add Working Plan Exception'; $lang['require_phone_number'] = 'Require phone number'; $lang['require_phone_number_hint'] = 'When enabled, customers and users will need to enter the customer\'s phone number when booking an appointment'; $lang['check_spam_folder'] = 'Please check your spam folder if the email does not arrive within a few minutes.'; -$lang['api_token_hint'] = 'Set a secret token in order to enable the token based authentication of the Easy!Appointments API.'; +$lang['api_token_hint'] = 'Set a secret token in order to enable the token based authentication of the MAKET Randevu API.'; $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; @@ -396,7 +396,7 @@ $lang['google_analytics_info'] = 'Google Analytics enable you to automatically a $lang['matomo_analytics'] = 'Matomo Analytics'; $lang['matomo_analytics_info'] = 'Matomo Analytics enable you to automatically add the tracking code and HTML markup to the public page and track all the public booking sessions.'; $lang['api'] = 'API'; -$lang['api_info'] = 'API enable you to interact with all the Easy!Appointments data via the HTTP protocol and the available API endpoints and create your own integrations.'; +$lang['api_info'] = 'API enable you to interact with all the MAKET Randevu data via the HTTP protocol and the available API endpoints and create your own integrations.'; $lang['google_analytics_code'] = 'Google Analytics Code'; $lang['matomo_analytics_url'] = 'Matomo Analytics URL'; $lang['future_booking_limit'] = 'Future Booking Limit'; diff --git a/application/language/turkish/translations_lang.php b/application/language/turkish/translations_lang.php index bab9307a..572673c4 100755 --- a/application/language/turkish/translations_lang.php +++ b/application/language/turkish/translations_lang.php @@ -175,22 +175,22 @@ $lang['visible'] = 'Gözle görülür'; $lang['hidden'] = 'Gizli'; $lang['business_logic'] = 'İş Mantığı'; $lang['current_user'] = 'Mevcut Kullanıcı'; -$lang['about_app'] = 'Easy!Appointments Hakkında'; +$lang['about_app'] = 'MAKET Randevu Hakkında'; $lang['edit_working_plan_hint'] = 'Aağıda şirketinizin kabul edeceği günleri ve saatleri işaretleyin. Çalışma saatleri dışında randevuları ayarlayabilirsiniz, ancak bu saatlere müşterilerin kendileri randevu kaydedemeyecektir. Bu çalışma planı tüm sağlayıcılar için varsayılan değer olup, daha sonra her biri için ayrıca özel plan da girebilir ve araları ekleyebilirsiniz.'; $lang['edit_breaks_hint'] = 'Gün içindeki çalışma aralarını ekleyin. Bu aralar tüm yeni hizmet sağlayıcılar için geçerli olacaktır.'; $lang['book_advance_timeout'] = 'Erken Randevu Zamanaşımı Değeri'; $lang['book_advance_timeout_hint'] = 'Müşterilerin en az ne kadar önceden randevu alması veya randevu düzenlemesi gerektiğini girin (dakika cinsinden).'; $lang['timeout_minutes'] = 'Zamanaşımı (Dakika)'; -$lang['about_app_info'] = 'Easy!Appointments yüksek ölçüde özelleştirilebilen, müşterilerinizin web üzerinden randevu almasını sağlayan bir uygulamadır. Ayrıca, bilgilerinizi Google Takvim ile eşitleyerek diğer uygulamalarla da entegre olmasını sağlar. '; +$lang['about_app_info'] = 'MAKET Randevu yüksek ölçüde özelleştirilebilen, müşterilerinizin web üzerinden randevu almasını sağlayan bir uygulamadır. Ayrıca, bilgilerinizi Google Takvim ile eşitleyerek diğer uygulamalarla da entegre olmasını sağlar. '; $lang['current_version'] = 'Mevcut Versiyon'; $lang['support'] = 'Destek'; -$lang['about_app_support'] = 'Easy!Appointments kullanımı sırasında sorun yaşamanız halinde resmi Google Group üzerinde arama yapabilirsiniz. Ayrıca geliştirmeye destek olmak için Google Code sayfasında yeni sorun girişi de yapabilirsiniz.'; +$lang['about_app_support'] = 'MAKET Randevu kullanımı sırasında sorun yaşamanız halinde resmi Google Group üzerinde arama yapabilirsiniz. Ayrıca geliştirmeye destek olmak için Google Code sayfasında yeni sorun girişi de yapabilirsiniz.'; $lang['official_website'] = 'Resmi Web Sitesi'; $lang['google_plus_community'] = 'Google+ Çevresi'; $lang['support_group'] = 'Destek Grubu'; $lang['project_issues'] = 'Proje Sorunları'; $lang['license'] = 'Lisans'; -$lang['about_app_license'] = 'Easy!Appointments GPLv3 kapsamında lisanslıdır. Bu yazılımı herhangi bir biçimde kullanarak aşağıdaki adreste belirtilen koşulları kabul etmiş olursunuz:'; +$lang['about_app_license'] = 'MAKET Randevu GPLv3 kapsamında lisanslıdır. Bu yazılımı herhangi bir biçimde kullanarak aşağıdaki adreste belirtilen koşulları kabul etmiş olursunuz:'; $lang['logout_success'] = 'Başarı ile sistemden çıkış yaptınız! Aşağıdaki butonlara tıklayarak diğer sayfalara geçebilirsiniz.'; $lang['book_appointment_title'] = 'Randevu Al'; $lang['backend_section'] = 'Yönetim Paneli'; @@ -272,7 +272,7 @@ $lang['select_google_calendar_prompt'] = 'Randevularınızı eşitlemek istediğ $lang['google_calendar_selected'] = 'Google Takvimi başarıyla seçildi.'; $lang['oops_something_went_wrong'] = 'Oops! Bir Sorun Oluştu.'; $lang['could_not_add_to_google_calendar'] = 'Randevunuz Google Takvim hesabınıza eklenemedi.'; -$lang['ea_update_success'] = 'Easy!Appointments başarı ile güncellendi.'; +$lang['ea_update_success'] = 'MAKET Randevu başarı ile güncellendi.'; $lang['require_captcha'] = 'CAPTCHA gereklidir'; $lang['require_captcha_hint'] = 'When enabled, the customers will have to type a random generated CAPTCHA string before booking/updating an appointment.'; $lang['captcha_is_wrong'] = 'CAPTCHA verification failed, please try again.'; @@ -320,7 +320,7 @@ $lang['add_working_plan_exception'] = 'İstisna ekle'; $lang['require_phone_number'] = 'Telefon num. gerekli'; $lang['require_phone_number_hint'] = 'Etkinleştirildiğinde, müşterilerin ve kullanıcıların randevu alırken müşterinin telefon numarasını girmeleri gerekir.'; $lang['check_spam_folder'] = 'E-posta birkaç dakika içinde gelmezse lütfen spam klasörünüzü kontrol edin.'; -$lang['api_token_hint'] = 'Easy!Appointments Api sinin belirteç tabanlı kimlik doğrulamasını etkinleştirmek için gizli bir belirteç ayarlayın.'; +$lang['api_token_hint'] = 'MAKET Randevu Api sinin belirteç tabanlı kimlik doğrulamasını etkinleştirmek için gizli bir belirteç ayarlayın.'; $lang['timezone'] = 'Saat Dilimi'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'Tüm çalışma planları güncellendi.'; @@ -396,7 +396,7 @@ $lang['google_analytics_info'] = 'Google Analytics enable you to automatically a $lang['matomo_analytics'] = 'Matomo Analytics'; $lang['matomo_analytics_info'] = 'Matomo Analytics enable you to automatically add the tracking code and HTML markup to the public page and track all the public booking sessions.'; $lang['api'] = 'API'; -$lang['api_info'] = 'API enable you to interact with all the Easy!Appointments data via the HTTP protocol and the available API endpoints and create your own integrations.'; +$lang['api_info'] = 'API enable you to interact with all the MAKET Randevu data via the HTTP protocol and the available API endpoints and create your own integrations.'; $lang['google_analytics_code'] = 'Google Analytics Code'; $lang['matomo_analytics_url'] = 'Matomo Analytics URL'; $lang['future_booking_limit'] = 'Future Booking Limit'; diff --git a/application/libraries/Api.php b/application/libraries/Api.php index 1796d2e4..5e22194c 100644 --- a/application/libraries/Api.php +++ b/application/libraries/Api.php @@ -151,7 +151,7 @@ class Api #[NoReturn] public function request_authentication(): void { - header('WWW-Authenticate: Basic realm="Easy!Appointments"'); + header('WWW-Authenticate: Basic realm="MAKET Randevu"'); header('HTTP/1.0 401 Unauthorized'); exit('You are not authorized to use the API.'); } diff --git a/application/libraries/Captcha_builder.php b/application/libraries/Captcha_builder.php index d06f2aeb..884439d8 100644 --- a/application/libraries/Captcha_builder.php +++ b/application/libraries/Captcha_builder.php @@ -1,7 +1,7 @@ diff --git a/application/libraries/Instance.php b/application/libraries/Instance.php index 8d672816..5bf4804b 100644 --- a/application/libraries/Instance.php +++ b/application/libraries/Instance.php @@ -125,16 +125,15 @@ class Instance // Provider $this->CI->providers_model->save([ - 'first_name' => 'Jane', - 'last_name' => 'Doe', - 'email' => 'jane@example.org', - 'phone_number' => '+10000000000', + 'first_name' => 'Hizmet Sağlayıcı İsmini Buraya Girin', + 'last_name' => 'Hizmet Sağlayıcı Soyismini Buraya Girin', + 'email' => 'hizmet_saglayici_mail@example.org', + 'phone_number' => '+90 (000) 000-0000', 'services' => [$service_id], 'settings' => [ - 'username' => 'janedoe', + 'username' => 'ilkhizmetsaglayici', 'password' => random_string(), 'working_plan' => setting('company_working_plan'), - 'working_plan_exceptions' => '{}', 'notifications' => true, 'google_sync' => false, 'sync_past_days' => 30, @@ -146,10 +145,10 @@ class Instance // Customer $this->CI->customers_model->save([ - 'first_name' => 'James', - 'last_name' => 'Doe', - 'email' => 'james@example.org', - 'phone_number' => '+10000000000', + 'first_name' => 'Örnek Müşteri İsmi', + 'last_name' => 'Örnek Müşteri Soyismi', + 'email' => 'ornek_musteri@example.org', + 'phone_number' => '+90 (000) 000-0000', ]); return $password; diff --git a/application/views/components/backend_footer.php b/application/views/components/backend_footer.php index 221fc9e2..278b7bb0 100644 --- a/application/views/components/backend_footer.php +++ b/application/views/components/backend_footer.php @@ -7,7 +7,7 @@ ?>