alextselegidis/easyappointments

Missing translations in exception messages

Closed this issue · 0 comments

There are many exception messages that are missing translations.

application\controllers\Account.php
Line 104: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Api_settings.php
Line 78: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Booking_settings.php
Line 89: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Business_settings.php
Line 89: throw new RuntimeException('You do not have the required permissions for this task.');
Line 123: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Caldav.php
Line 50: throw new RuntimeException('You do not have the required permissions for this task.');
Line 295: throw new RuntimeException('You do not have the required permissions for this task.');
Line 321: throw new RuntimeException('You do not have the required permissions for this task.');
Line 355: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Calendar.php
Line 233: throw new RuntimeException('You do not have the required permissions for this task.');
Line 252: throw new RuntimeException('You do not have the required permissions for this task.');
Line 271: throw new RuntimeException('The appointment ID is not available.');
Line 336: throw new RuntimeException('You do not have the required permissions for this task.');
Line 401: throw new RuntimeException('You do not have the required permissions for this task.');
Line 434: throw new RuntimeException('You do not have the required permissions for this task.');
Line 466: throw new RuntimeException('You do not have the required permissions for this task.');
Line 498: throw new RuntimeException('You do not have the required permissions for this task.');
Line 526: throw new RuntimeException('You do not have the required permissions for this task.');
Line 623: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\General_settings.php
Line 88: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Google.php
Line 386: throw new RuntimeException('You do not have the required permissions for this task.');
Line 420: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Google_analytics_settings.php
Line 78: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Ldap_settings.php
Line 82: throw new RuntimeException('You do not have the required permissions for this task.');
Line 116: throw new RuntimeException('You do not have the required permissions for this task.');
Line 120: throw new RuntimeException('The LDAP extension is not loaded.');

application\controllers\Legal_settings.php
Line 78: throw new RuntimeException('You do not have the required permissions for this task.');

application\controllers\Matomo_analytics_settings.php
Line 78: throw new RuntimeException('You do not have the required permissions for this task.');

application\core\EA_Input.php
Line 66: throw new RuntimeException('Cannot get JSON attribute from an empty input stream.');

application\core\EA_Model.php
Line 75: throw new RuntimeException('The "get_value" is not defined in model: ', CLASS);
Line 95: throw new RuntimeException('The "get_row" is not defined in model: ', CLASS);
Line 160: throw new RuntimeException('Unsupported cast type provided: ' . $cast);

application\helpers\date_helper.php
Line 29: default => throw new RuntimeException('Invalid date format value: ' . $date_format),
Line 47: default => throw new RuntimeException('Invalid time format value: ' . $time_format),

application\libraries\Accounts.php
Line 132: throw new RuntimeException('The username was not found in the database: ' . $username);

application\libraries\Caldav_sync.php
Line 405: throw new RuntimeException('The selected provider does not have the CalDAV sync enabled: ' . $provider_id);

application\libraries\Email_messages.php
Line 128: throw new RuntimeException('Email was not sent: ' . $this->CI->email->print_debugger());
Line 203: throw new RuntimeException('Email was not sent: ' . $this->CI->email->print_debugger());
Line 243: throw new RuntimeException('Email was not sent: ' . $this->CI->email->print_debugger());

application\libraries\Instance.php
Line 174: throw new RuntimeException('The backup path is not writable: ' . $path);

application\libraries\Ldap_client.php
Line 63: throw new RuntimeException('Unsupported password hash format');
Line 88: throw new RuntimeException('The LDAP extension is not loaded.');

application\libraries\Synchronization.php
Line 63: throw new RuntimeException('No google token available for the provider: ' . $provider['id']);
Line 125: throw new RuntimeException('No google token available for the provider: ' . $provider['id']);
Line 165: throw new RuntimeException('No google token available for the provider: ' . $provider['id']);
Line 218: throw new RuntimeException('No google token available for the provider: ' . $provider['id']);

application\models\Admins_model.php
Line 231: throw new RuntimeException('The admin role was not found in the database.');
Line 258: throw new RuntimeException('Could not insert admin.');
Line 322: throw new RuntimeException('Could not set the new admin setting value: ' . $name);
Line 348: throw new RuntimeException('No settings record found for admin with ID: ' . $admin['id']);
Line 361: throw new RuntimeException('Could not update admin.');
Line 383: throw new RuntimeException('Record could not be deleted as the app requires at least one admin user.');
Line 464: throw new RuntimeException('The requested setting value was not found: ' . $admin_id);

application\models\Appointments_model.php
Line 239: throw new RuntimeException('Could not insert appointment.');
Line 259: throw new RuntimeException('Could not update appointment record.');

application\models\Blocked_periods_model.php
Line 118: throw new RuntimeException('Could not insert blocked-period.');
Line 138: throw new RuntimeException('Could not update blocked periods.');

application\models\Consents_model.php
Line 79: throw new RuntimeException('Could not insert consent.');
Line 99: throw new RuntimeException('Could not update consent.');

application\models\Customers_model.php
Line 192: throw new RuntimeException('The customer role was not found in the database.');
Line 272: throw new RuntimeException('Could not insert customer.');
Line 292: throw new RuntimeException('Could not update customer.');

application\models\Providers_model.php
Line 246: throw new RuntimeException('The provider role was not found in the database.');
Line 274: throw new RuntimeException('Could not insert provider.');
Line 352: throw new RuntimeException('Could not set the new provider setting value: ' . $name);
Line 379: throw new RuntimeException('No settings record found for provider with ID: ' . $provider['id']);
Line 390: throw new RuntimeException('Could not update provider.');
Line 506: throw new RuntimeException('The requested setting value was not found: ' . $provider_id);

application\models\Roles_model.php
Line 98: throw new RuntimeException('Could not insert role.');
Line 118: throw new RuntimeException('Could not update role.');

application\models\Secretaries_model.php
Line 244: throw new RuntimeException('The secretary role was not found in the database.');
Line 273: throw new RuntimeException('Could not insert secretary.');
Line 338: throw new RuntimeException('Could not set the new secretary setting value: ' . $name);
Line 365: throw new RuntimeException('No settings record found for secretary with ID: ' . $secretary['id']);
Line 376: throw new RuntimeException('Could not update secretary.');
Line 490: throw new RuntimeException('The requested setting value was not found: ' . $secretary_id);

application\models\Service_categories_model.php
Line 102: throw new RuntimeException('Could not insert service-category.');
Line 122: throw new RuntimeException('Could not update service categories.');

application\models\Services_model.php
Line 169: throw new RuntimeException('Could not insert service.');
Line 189: throw new RuntimeException('Could not update service.');

application\models\Settings_model.php
Line 99: throw new RuntimeException('Could not insert setting.');
Line 119: throw new RuntimeException('Could not update setting.');

application\models\Unavailabilities_model.php
Line 188: throw new RuntimeException('Could not insert unavailability.');
Line 208: throw new RuntimeException('Could not update unavailability record.');

application\models\Users_model.php
Line 122: throw new RuntimeException('Could not insert user.');
Line 186: throw new RuntimeException('Could not set the new user setting value: ' . $name);
Line 210: throw new RuntimeException('No settings record found for user with ID: ' . $user['id']);
Line 217: throw new RuntimeException('Could not update user.');
Line 313: throw new RuntimeException('The requested setting value was not found: ' . $user_id);

application\models\Webhooks_model.php
Line 95: throw new RuntimeException('Could not insert webhook.');
Line 115: throw new RuntimeException('Could not update webhook.');

system\core\Loader.php
Line 292: throw new RuntimeException('The model name you are loading is the name of a resource that is already being used: '.$name);
Line 365: throw new RuntimeException('Unable to locate the model you have specified: '.$model);

system\database\DB_driver.php
Line 450: throw new RuntimeException('Unable to connect to the database.');

system\libraries\Form_validation.php
Line 201: throw new RuntimeException('Form_validation: set_rules() called with an empty $rules parameter');