diff --git a/server/SHServ/text-msgs.php b/server/SHServ/text-msgs.php index 0557bc0..7cbc645 100644 --- a/server/SHServ/text-msgs.php +++ b/server/SHServ/text-msgs.php @@ -1,70 +1,86 @@ text message + * alias => text message (English) */ return [ - // Errors - "incorrect_email" => "Не корректный E-mail", - "too_short_password" => "Слишком короткий пароль", - "different_passwords" => "Пароли не совпадают", - "email_already_exists" => "Такой E-mail уже существует", - "undefined_error" => "Ой, что-то пошло не так", - "empty_field" => "Поле не может быть пустым", - "unregistered_email" => "Такой E-mail не зарегистрирован", - "incorrect_password" => "Не верный пароль", - "not_found_any_sessions" => "Требуется войти в систему", - "already_logged" => "Вы уже в системе", - "error_of_img_upload" => "Ошибка загрузки изображения", - "title_too_short" => "Слишком короткое название", - "disagree_with_rules" => "Если Вы не согласны с правилами публикации, Вы не можете добавить объявление", - "empty_first_name" => "Укажите Ваше имя, это обязательно", - "empty_second_name" => "Укажите Вашу имя, это обязательно", - "empty_patronymic" => "Укажите Ваше отчество", - "empty_phone_number" => "Укажите контактный номер телефона", - "unlogged_user" => "Сначала нужно войти", - "server_not_available" => "Сервер не доступен", - - // SHServ Errs - "device_not_found" => "", - "unknown_device" => "", - "error_of_device_auth" => "", - "device_request_fail" => "Устройство не отвечает", - "device_removed_offline" => "Устройство не отвечает, удалено только из системы", - "device_mode_error" => "", - "db_error" => "", - "device_error_of_auth" => "", - "action_script_not_found" => "", - "scope_not_found" => "", - "regular_script_not_found" => "", - "action_script_not_found" => "", - "file_not_exists" => "", - "parent_area_not_found" => "", + // Validation Errors + "incorrect_email" => "Incorrect email", + "too_short_password" => "Password is too short", + "different_passwords" => "Passwords do not match", + "email_already_exists" => "Email already exists", + "empty_field" => "Field cannot be empty", + "unregistered_email" => "Email is not registered", + "incorrect_password" => "Incorrect password", + "title_too_short" => "Title is too short", + "empty_first_name" => "First name is required", + "empty_second_name" => "Last name is required", + "empty_patronymic" => "Patronymic is required", + "empty_phone_number" => "Phone number is required", + "invalid_id" => "Invalid ID", + "invalid_type" => "Invalid type", + "invalid_ip" => "Invalid IP address", + "invalid_json" => "Invalid JSON format", + "invalid_params" => "Invalid parameters", + "invalid_alias" => "Invalid alias", + "invalid_state" => "Invalid state", + "invalid_action" => "Invalid action", + "invalid_callback" => "Invalid callback request", + "wrong_status_name" => "Wrong status name", "alias_already_exists" => "Alias already exists", - "invalid_id" => "", - "area_not_exists" => "", - "wrong_status_name" => "", - "invalid_type" => "", - "invalid_ip" => "", - "script_not_exists" => "", - "firmware_not_found" => "Прошивка не найдена", - "firmware_not_compatible" => "Прошивка не совместима с устройством", - "ota_failed" => "Не удалось обновить прошивку на устройстве", - "scan_in_progress" => "Сканирование сети уже выполняется, подождите", - // Auth - "unauthenticated" => "Требуется авторизация", - "permission_denied" => "Недостаточно прав", - "invalid_callback" => "Некорректный запрос авторизации", - "auth_failed" => "Ошибка авторизации", - "session_expired" => "Сессия истекла", + // Auth Errors + "unauthenticated" => "Authentication required", + "permission_denied" => "Permission denied", + "auth_failed" => "Authentication failed", + "session_expired" => "Session expired", + "not_found_any_sessions" => "Login required", + "already_logged" => "Already logged in", + "unlogged_user" => "Login required", - // Other - "accept_removing" => "Подтвердите удаление", - "remove" => "Удалить", - "cancel" => "Отмена", - "success_and_redirecting" => "Успешно! Перенаправление...", - "accept" => "Принять", - "confirm" => "Подтвердить", + // General Errors + "undefined_error" => "Something went wrong", + "db_error" => "Database error", + "server_not_available" => "Server is not available", + "error_of_img_upload" => "Image upload error", + "file_not_exists" => "File does not exist", + "rate_limit" => "Too many requests, please try again later", + "forbidden" => "Forbidden", + + // Device Errors + "device_not_found" => "Device not found", + "unknown_device" => "Unknown device", + "error_of_device_auth" => "Device authentication error", + "device_error_of_auth" => "Device authentication error", + "device_request_fail" => "Device is not responding", + "device_removed_offline" => "Device is not responding, removed from system only", + "device_mode_error" => "Device mode error", + + // Script Errors + "action_script_not_found" => "Action script not found", + "regular_script_not_found" => "Regular script not found", + "scope_not_found" => "Scope not found", + "script_not_exists" => "Script does not exist", + + // Area Errors + "area_not_exists" => "Area does not exist", + "parent_area_not_found" => "Parent area not found", + + // Firmware Errors + "firmware_not_found" => "Firmware not found", + "firmware_not_compatible" => "Firmware is not compatible with device", + "ota_failed" => "Failed to update device firmware", + + // Status Messages + "scan_in_progress" => "Network scan in progress, please wait", + "disagree_with_rules" => "You must agree with the publishing rules", + + // UI Labels + "accept_removing" => "Confirm removal", + "remove" => "Remove", + "cancel" => "Cancel", + "success_and_redirecting" => "Success! Redirecting...", + "accept" => "Accept", + "confirm" => "Confirm", ];