add default settings for language and timezone

This commit is contained in:
tm8544 2024-03-27 17:09:15 +02:00
parent e7a757e124
commit f84eecf7e8
47 changed files with 269 additions and 11 deletions

View file

@ -64,6 +64,8 @@ class Admins extends EA_Controller
'role_slug' => $role_slug,
'timezones' => $this->timezones->to_array(),
'min_password_length' => MIN_PASSWORD_LENGTH,
'default_language' => setting('default_language'),
'default_timezone' => setting('default_timezone'),
]);
html_vars([

View file

@ -233,6 +233,8 @@ class Booking extends EA_Controller
'appointment_data' => $appointment,
'provider_data' => $provider,
'customer_data' => $customer,
'default_language' => setting('default_language'),
'default_timezone' => setting('default_timezone'),
]);
html_vars([

View file

@ -87,6 +87,8 @@ class Customers extends EA_Controller
'time_format' => $time_format,
'timezones' => $this->timezones->to_array(),
'secretary_providers' => $secretary_providers,
'default_language' => setting('default_language'),
'default_timezone' => setting('default_timezone'),
]);
html_vars([

View file

@ -30,6 +30,7 @@ class General_settings extends EA_Controller
$this->load->model('settings_model');
$this->load->library('accounts');
$this->load->library('timezones');
}
/**
@ -62,6 +63,7 @@ class General_settings extends EA_Controller
script_vars([
'user_id' => $user_id,
'role_slug' => $role_slug,
'timezones' => $this->timezones->to_array(),
'general_settings' => $this->settings_model->get(),
]);
@ -69,6 +71,7 @@ class General_settings extends EA_Controller
'page_title' => lang('settings'),
'active_menu' => PRIV_SYSTEM_SETTINGS,
'user_display_name' => $this->accounts->get_user_display_name($user_id),
'grouped_timezones' => $this->timezones->to_grouped_array(),
'available_themes' => $available_themes,
]);

View file

@ -76,6 +76,8 @@ class Providers extends EA_Controller
'min_password_length' => MIN_PASSWORD_LENGTH,
'timezones' => $this->timezones->to_array(),
'services' => $services,
'default_language' => setting('default_language'),
'default_timezone' => setting('default_timezone'),
]);
html_vars([

View file

@ -72,6 +72,8 @@ class Secretaries extends EA_Controller
'timezones' => $this->timezones->to_array(),
'min_password_length' => MIN_PASSWORD_LENGTH,
'providers' => $providers,
'default_language' => setting('default_language'),
'default_timezone' => setting('default_timezone'),
]);
html_vars([

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Quan està activat, els clients i els usua
$lang['check_spam_folder'] = 'Comproveu la vostra carpeta de correu brossa si el correu no arriba en uns minuts.';
$lang['api_token_hint'] = 'Establiu un token secret per permetre l\'autenticació basada en tokens de l\'API d\'Easy!Appointments.';
$lang['timezone'] = 'Zona horària';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Això sobreescriurà els plans de treball existents del proveïdor, esteu segur que voleu continuar?';
$lang['working_plans_got_updated'] = 'S\'han actualitzat tots els plans de treball.';
$lang['apply_to_all_providers'] = 'Aplica-ho a tots els proveïdors';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Kada je omogućeno, klijenti i korisnici
$lang['check_spam_folder'] = 'Provjerite svoju spam mapu ako e-mail ne stigne unutar nekoliko minuta.';
$lang['api_token_hint'] = 'Postavite tajni token kako biste omogućili autentifikaciju temeljenu na tokenima za Easy!Appointments API.';
$lang['timezone'] = 'Vremenska Zona';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Ovo će prebrisati postojeće radne planove pružatelja, jeste li sigurni da želite nastaviti?';
$lang['working_plans_got_updated'] = 'Svi radni planovi su ažurirani.';
$lang['apply_to_all_providers'] = 'Primijeni na sve pružatelje';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Pokud je zapnuto, uživatelé a zákazníc
$lang['check_spam_folder'] = 'Zkontrolujte prosím svou SPAM schránku, pokud email v několika minutách nedorazí.';
$lang['api_token_hint'] = 'Nastavte bezpečnostní token, abyste povolili autentizaci tokenem v API Easy!Appointments.';
$lang['timezone'] = 'Časová zóna';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Tímto nahradíte současné pracovní plány. Opravdu jste si jisti, že chcete pokračovat?';
$lang['working_plans_got_updated'] = 'Všechny pracovní plány byly aktualizovány.';
$lang['apply_to_all_providers'] = 'Použít pro všechny poskytovatele';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$lang['check_spam_folder'] = 'Tjek venligst din uønsket mail (spam) mappe hvis du ikke har modtaget mailen inden for et par minutter.';
$lang['api_token_hint'] = 'Set a secret token in order to enable the token based authentication of the Easy!Appointments API.';
$lang['timezone'] = 'Tidszone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Kui see on sisse lülitatud, siis klient p
$lang['check_spam_folder'] = 'Kui e-maili mõne minuti jooksul ei saabu, siis palun kontrolli enda meili rämpspostikausta.';
$lang['api_token_hint'] = 'Sea sisse juurdepääsuluba et võimaldada pääsuloaga autentimine Easy!Appointments API kasutamiseks.';
$lang['timezone'] = 'Ajavöönd';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'See kirjutab eksisteerivad tööplaanid üle. Oled kindel, et soovid jätkata?';
$lang['working_plans_got_updated'] = 'Kõik tööplaanid uuendatud.';
$lang['apply_to_all_providers'] = 'Rakenda kõikidele teenusepakkujatele';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Jos valittu, asiakkaiden ja käyttäjien o
$lang['check_spam_folder'] = 'Tarkista roskapostikansio mikäli viestiä ei näy muutaman minuutin kuluessa.';
$lang['api_token_hint'] = 'Aseta secret token aktivoidaksesi token-pohjaisen autentikoinnin Easy!Appointments API:lle.';
$lang['timezone'] = 'Aikavyöhyke';
$lang['default_timezone'] = 'Oletusaikavyöhyke';
$lang['default_timezone_hint'] = 'Tämä tulee uusien käyttäjien ja varausten oletusaikavyöhykkeeksi';
$lang['default_language'] = 'Oletuskieli';
$lang['default_language_hint'] = 'Tämä tulee uusien käyttäjien oletuskieleksi';
$lang['overwrite_existing_working_plans'] = 'Tämä korvaa aiemmat työsuunnitelmat, haluatko varmasti jatkaa?';
$lang['working_plans_got_updated'] = 'Kaikki työsuunnitelmat päivitettiin.';
$lang['apply_to_all_providers'] = 'Aseta kaikille palveluntarjoajille';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Lorsque activé, les clients et les utilis
$lang['check_spam_folder'] = 'Veuillez vérifier votre dossier de courrier indésirable si l\'email n\'arrive pas dans les minutes qui suivent.';
$lang['api_token_hint'] = 'Définissez un jeton secret afin d\'activer l\'authentification basée sur le jeton de l\'API Easy!Appointments. ';
$lang['timezone'] = 'Fuseau horaire';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Cela écrasera les plannings existants du fournisseur. Êtes-vous sûr de vouloir continuer ?';
$lang['working_plans_got_updated'] = 'Tous les plannings ont été mis à jour.';
$lang['apply_to_all_providers'] = 'Appliquer à tous les fournisseurs';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Wenn aktiviert, müssen Kunden und Benutze
$lang['check_spam_folder'] = 'Bitte kontrollieren Sie Ihren Spam-Ordner, falls die E-Mail nicht innerhalb weniger Minuten eintrifft.';
$lang['api_token_hint'] = 'Setze einen geheimen Token um die tokenbasierte Authentifizierung für die Easy!Appointments API zu aktivieren.';
$lang['timezone'] = 'Zeitzone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Dies wird bestehende Arbeitspläne von Anbietern überschreiben. Sind sie sicher?';
$lang['working_plans_got_updated'] = 'Alle Arbeitspläne wurden aktualisiert.';
$lang['apply_to_all_providers'] = 'Auf alle Anbieter anwenden';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Όταν ενεργοποιημένο, ο
$lang['check_spam_folder'] = 'Παρακαλώ ελέγξτε τον φάκελο spam εφόσον το ηλεκτρονικό μήνυμα δεν έχει ληφθεί.';
$lang['api_token_hint'] = 'Καταχωρήστε εναν μυστικό κωδικό για να μπορέσετε να ενεργοποιήσετε την token-based πιστοποίηση του Easy!Appointments API.';
$lang['timezone'] = 'Ζώνη Ώρας';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Αυτό θα αντικαταστήσει το υπάρχον πλάνο εργασίας του παρόχου, είστε σίγουρος ότι θέλετε να συνεχίσετε;';
$lang['working_plans_got_updated'] = 'Όλα τα πλάνα εργασίας έχουν ενημερωθεί.';
$lang['apply_to_all_providers'] = 'Εφαρμογή σε όλους τος παρόχους';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'כאשר אפשרות זו מופעלת,
$lang['check_spam_folder'] = 'אם הדוא"ל אינו מגיע תוך מספר דקות יש לבדוק את תיקיית הספאם שלך .';
$lang['api_token_hint'] = 'הגדר טוקן סודי על מנת לאפשר אימות מבוסס טוקן בממשק ה- API של Easy! Appointments.';
$lang['timezone'] = 'אזור זמן';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'פעולה זו תחליף את כל תוכניות העבודה של הספקים הקיימים, האם את/ה בטוח/ה שברצונך להמשיך?';
$lang['working_plans_got_updated'] = 'כל תוכניות העבודה עודכנו.';
$lang['apply_to_all_providers'] = 'החל על כל הספקים';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Quando abilitato i clienti e gli utenti ne
$lang['check_spam_folder'] = 'Controlla la cartella SPAM se non ricevi l\'email di conferma entro pochi minuti.';
$lang['api_token_hint'] = 'Imposta un token segreto per abilitare l\'autenticazione basata su token nelle API di Easy!Appointments.';
$lang['timezone'] = 'Fuso Orario';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Questa operazione sovrascrive il Piano di Lavoro del fornitore esistente, sei sicuro di voler continuare?';
$lang['working_plans_got_updated'] = 'Tutti i Piani di Lavoro sono stati aggiornati.';
$lang['apply_to_all_providers'] = 'Applica a tutti i Fornitori';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'در صورت فعال بودن ، هنگ
$lang['check_spam_folder'] = 'اگر تا دقایقی دیگر ایمیل را دریافت نکردید ، لطفاً پوشه هرزنامه خود را بررسی کنید.';
$lang['api_token_hint'] = 'برای فعال سازی احراز هویت مبتنی بر token برای دسترسی به API برنامه، یک رمز مخفی تنظیم کنید.';
$lang['timezone'] = 'منطقه زمانی';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'این کار باعث بازنویسی برنامه های کاری موجود می شود. آیا از این کار اطمینان دارید؟';
$lang['working_plans_got_updated'] = 'تمامی برنامه های کاری به روز رسانی شدند';
$lang['apply_to_all_providers'] = 'اعمال کردن به همه ارائه دهنده ها';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Quando ativado, os clientes e usuários pr
$lang['check_spam_folder'] = 'Verifique sua pasta de spam se o e-mail não chegar em alguns minutos.';
$lang['api_token_hint'] = 'Defina um token secreto para habilitar a autenticação baseada em token da API Easy!Appointments.';
$lang['timezone'] = 'Fuso horário';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Isso substituirá os planos de trabalho dos fornecedores existentes. Tem certeza de que deseja continuar?';
$lang['working_plans_got_updated'] = 'Todos os planos de trabalho foram atualizados.';
$lang['apply_to_all_providers'] = 'Aplicar a todos os fornecedores';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Когда эта функция вклю
$lang['check_spam_folder'] = 'Пожалуйста, проверьте папку спама, если письмо не пришло в течение нескольких минут.';
$lang['api_token_hint'] = 'Установите секретный токен, чтобы включить аутентификацию на основе токена в Easy!Appointments API.';
$lang['timezone'] = 'Часовой пояс';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Это перезапишет существующие рабочие планы поставщика - Вы уверены что хотите продолжить?';
$lang['working_plans_got_updated'] = 'Все рабочие планы были обновлены.';
$lang['apply_to_all_providers'] = 'Применяется ко всем поставщикам услуг';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Kada je omogućeno, klijenti i korisnici t
$lang['check_spam_folder'] = 'Proverite svoju neželjenu poštu (spam) ako E-mail nije stigao u roku od nekoliko minuta.';
$lang['api_token_hint'] = 'Postavite tajni token kako biste omogućili pristup Easy!Appointments API.';
$lang['timezone'] = 'Vremenska zona';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Ovo će prepisati postojeći plan rada izvršioca, da li ste sigurni da želite da nastavite?';
$lang['working_plans_got_updated'] = 'Svi planovi rada su aktualizovani.';
$lang['apply_to_all_providers'] = 'Primeni na sve izvršioce';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'When enabled, customers and users will nee
$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['timezone'] = 'Timezone';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Apply To All Providers';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Cuando está habilitado, clientes y usuari
$lang['check_spam_folder'] = 'Por favor, verifique su carpeta de correo no deseado si el correo no llega dentro de unos minutos.';
$lang['api_token_hint'] = 'Defina un token secreto para habilitar la autentificación por token mediante la API de Easy!Appointments.';
$lang['timezone'] = 'Zona horaria';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Esto sobreescribirá los planes de trabajo existentes del proveedor. ¿Seguro que desea continuar?';
$lang['working_plans_got_updated'] = 'Todos los planes de trabajo fueron actualizados.';
$lang['apply_to_all_providers'] = 'Aplicar a todos los proveedores';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'När denna är aktiv måste kunderna ange
$lang['check_spam_folder'] = 'Om eposten inte kommit fram inom några minuter; kolla skräpposten.';
$lang['api_token_hint'] = 'Ställ in en hemlig token för att aktivera tokenbaserad autentisering av Easy!Appointments API.';
$lang['timezone'] = 'Tidszon';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'Detta kommer skriva över befintliga leverantörsscheman. Är du säker på att du vill det?';
$lang['working_plans_got_updated'] = 'Alla scheman uppdaterades.';
$lang['apply_to_all_providers'] = 'Tilldela till alla leverantörer';

View file

@ -319,6 +319,10 @@ $lang['require_phone_number_hint'] = 'เมื่อเปิดใช้งา
$lang['check_spam_folder'] = 'โปรดตรวจสอบโฟลเดอร์สแปมของคุณ หากคุณไม่ได้รับอีเมลภายในไม่กี่นาที';
$lang['api_token_hint'] = 'ตั้งค่าโทเค็นลับเพื่อเปิดใช้งานการตรวจสอบสิทธิ์โดยใช้โทเค็นของ Easy!Appointments API';
$lang['timezone'] = 'เขตเวลา';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$lang['overwrite_existing_working_plans'] = 'การดำเนินการนี้จะเขียนทับแผนการทำงานของผู้ให้บริการที่มีอยู่ คุณแน่ใจหรือไม่ว่าต้องการดำเนินการต่อ';
$lang['working_plans_got_updated'] = 'แผนการทำงานทั้งหมดได้รับการปรับปรุง';
$lang['apply_to_all_providers'] = 'นำไปใช้กับผู้ให้บริการทั้งหมด';

View file

@ -322,6 +322,10 @@ $lang['require_phone_number_hint'] = 'Etkinleştirildiğinde, müşterilerin ve
$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['timezone'] = 'Saat Dilimi';
$lang['default_timezone'] = 'Default Timezone';
$lang['default_timezone_hint'] = 'This will be the Default Timezome for new Users, new Customers and new Appointments';
$lang['default_language'] = 'Default Language';
$lang['default_language_hint'] = 'This will be the Default Language for new Users and new Customers';
$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.';
$lang['apply_to_all_providers'] = 'Tüm H.Sağlayıcılara Uygula';

View file

@ -0,0 +1,38 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
* Easy!Appointments - Online Appointment Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) Alex Tselegidis
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.3.2
* ---------------------------------------------------------------------------- */
class Migration_Add_weekday_start_setting extends EA_Migration
{
/**
* Upgrade method.
*/
public function up()
{
if (!$this->db->get_where('settings', ['name' => 'default_timezone'])->num_rows()) {
$this->db->insert('settings', [
'name' => 'default_timezone',
'value' => 'UTC',
]);
}
}
/**
* Downgrade method.
*/
public function down()
{
if ($this->db->get_where('settings', ['name' => 'default_timezone'])->num_rows()) {
$this->db->delete('settings', ['name' => 'default_timezone']);
}
}
}

View file

@ -0,0 +1,38 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
* Easy!Appointments - Online Appointment Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) Alex Tselegidis
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.3.2
* ---------------------------------------------------------------------------- */
class Migration_Add_weekday_start_setting extends EA_Migration
{
/**
* Upgrade method.
*/
public function up()
{
if (!$this->db->get_where('settings', ['name' => 'default_language'])->num_rows()) {
$this->db->insert('settings', [
'name' => 'default_language',
'value' => 'english',
]);
}
}
/**
* Downgrade method.
*/
public function down()
{
if ($this->db->get_where('settings', ['name' => 'default_language'])->num_rows()) {
$this->db->delete('settings', ['name' => 'default_language']);
}
}
}

View file

@ -191,6 +191,42 @@
</small>
</div>
</div>
<div class="mb-3">
<label class="form-label" for="default-language">
<?= lang('default_language') ?>
<span class="text-danger" hidden>*</span>
</label>
<select id="default-language" class="form-control required" data-field="default_language">
<?php foreach (vars('available_languages') as $available_language): ?>
<option value="<?= $available_language ?>">
<?= ucfirst($available_language) ?>
</option>
<?php endforeach; ?>
</select>
<div class="form-text text-muted">
<small>
<?= lang('default_language_hint') ?>
</small>
</div>
</div>
<div class="mb-3">
<label class="form-label" for="default-timezone">
<?= lang('default_timezone') ?>
<span class="text-danger" hidden>*</span>
</label>
<?php component('timezone_dropdown', [
'attributes' => 'id="default-timezone" data-field="default_timezone" class="form-control required"',
'grouped_timezones' => vars('grouped_timezones'),
]); ?>
</div>
<div class="form-text text-muted">
<small>
<?= lang('default_timezone_hint') ?>
</small>
</div>
</div>
</div>
</fieldset>

View file

@ -424,8 +424,8 @@ App.Components.AppointmentsModal = (function () {
$address.val('');
$city.val('');
$zipCode.val('');
$language.val('english');
$timezone.val('UTC');
$language.val(vars('default_language'));
$timezone.val(vars('default_timezone'));
$customerNotes.val('');
$customField1.val('');
$customField2.val('');
@ -449,8 +449,8 @@ App.Components.AppointmentsModal = (function () {
const defaultStatusValue = $appointmentStatus.find('option:first').val();
$appointmentStatus.val(defaultStatusValue);
$language.val('english');
$timezone.val('UTC');
$language.val(vars('default_language'));
$timezone.val(vars('default_timezone'))
// Reset color.
$appointmentColor.find('.color-selection-option:first').trigger('click');

View file

@ -336,8 +336,8 @@ App.Pages.Admins = (function () {
$admins.find('.record-details').find('input, select, textarea').val('').prop('disabled', true);
$admins.find('.record-details .form-label span').prop('hidden', true);
$admins.find('.record-details #calendar-view').val('default');
$admins.find('.record-details #language').val('english');
$admins.find('.record-details #timezone').val('UTC');
$admins.find('.record-details #language').val(vars('default_language'));
$admins.find('.record-details #timezone').val(vars('default_timezone'));
$admins.find('.record-details #notifications').prop('checked', true);
$('#edit-admin, #delete-admin').prop('disabled', true);

View file

@ -252,9 +252,9 @@ App.Pages.Customers = (function () {
function resetForm() {
$customers.find('.record-details').find('input, select, textarea').val('').prop('disabled', true);
$customers.find('.record-details .form-label span').prop('hidden', true);
$customers.find('.record-details #timezone').val('UTC');
$customers.find('.record-details #timezone').val(vars('default_timezone'));
$language.val('english');
$language.val(vars('default_language'));
$customerAppointments.empty();

View file

@ -340,8 +340,8 @@ App.Pages.Providers = (function () {
$providers.find('.record-details').find('input, select, textarea').val('').prop('disabled', true);
$providers.find('.record-details .form-label span').prop('hidden', true);
$providers.find('.record-details #calendar-view').val('default');
$providers.find('.record-details #language').val('english');
$providers.find('.record-details #timezone').val('UTC');
$providers.find('.record-details #language').val(vars('default_language'));
$providers.find('.record-details #timezone').val(vars('default_timezone'));
$providers.find('.record-details #is-private').prop('checked', false);
$providers.find('.record-details #notifications').prop('checked', true);
$providers.find('.add-break, .add-working-plan-exception, #reset-working-plan').prop('disabled', true);

View file

@ -344,7 +344,8 @@ App.Pages.Secretaries = (function () {
$secretaries.find('.record-details').find('input, select, textarea').val('').prop('disabled', true);
$secretaries.find('.record-details .form-label span').prop('hidden', true);
$secretaries.find('.record-details #calendar-view').val('default');
$secretaries.find('.record-details #timezone').val('UTC');
$secretaries.find('.record-details #timezone').val(vars('default_timezone'));
$secretaries.find('.record-details #language').val(vars('default_language'));
$secretaries.find('.record-details #notifications').prop('checked', true);
$secretaries.find('.add-edit-delete-group').show();
$secretaries.find('.save-cancel-group').hide();