opnform-host-nginx/api/resources/lang/pa/validation.php

122 lines
11 KiB
PHP
Raw Normal View History

<?php
return [
'accepted' => ':attribute ਨੂੰ ਸਵੀਕਾਰ ਕਰਨਾ ਜ਼ਰੂਰੀ ਹੈ।',
'active_url' => ':attribute ਇੱਕ ਵੈਧ URL ਨਹੀਂ ਹੈ।',
'after' => ':attribute :date ਤੋਂ ਬਾਅਦ ਦੀ ਤਾਰੀਖ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'after_or_equal' => ':attribute :date ਤੋਂ ਬਾਅਦ ਜਾਂ ਇਸ ਦੇ ਬਰਾਬਰ ਦੀ ਤਾਰੀਖ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'alpha' => ':attribute ਵਿੱਚ ਸਿਰਫ਼ ਅੱਖਰ ਹੋ ਸਕਦੇ ਹਨ।',
'alpha_dash' => ':attribute ਵਿੱਚ ਸਿਰਫ਼ ਅੱਖਰ, ਨੰਬਰ, ਡੈਸ਼ ਅਤੇ ਅੰਡਰਸਕੋਰ ਹੋ ਸਕਦੇ ਹਨ।',
'alpha_num' => ':attribute ਵਿੱਚ ਸਿਰਫ਼ ਅੱਖਰ ਅਤੇ ਨੰਬਰ ਹੋ ਸਕਦੇ ਹਨ।',
'array' => ':attribute ਇੱਕ ਐਰੇ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'before' => ':attribute :date ਤੋਂ ਪਹਿਲਾਂ ਦੀ ਤਾਰੀਖ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'before_or_equal' => ':attribute :date ਤੋ ਪਹਿਲਾਂ ਜਾਂ ਇਸ ਦੇ ਬਰਾਬਰ ਦੀ ਤਾਰੀਖ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'between' => [
'numeric' => ':attribute :min ਅਤੇ :max ਦੇ ਵਿਚਕਾਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :min ਅਤੇ :max ਕਿਲੋਬਾਈਟਸ ਦੇ ਵਿਚਕਾਰर ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :min ਅਤੇ :max ਅੱਖਰਾਂ ਦੇ ਵਿਚਕਾर ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :min ਅਤੇ :max ਆਈਟਮਾਂ ਦੇ ਵਿਚਕਾर ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'boolean' => ':attribute ਫੀਲਡ ਸਹੀ ਜਾਂ ਗਲਤ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'confirmed' => ':attribute ਪੁਸ਼ਟੀਕਰਨ ਮੇਲ ਨਹੀਂ ਖਾਂਦਾ।',
'date' => ':attribute ਇੱਕ ਵੈਧ ਤਾਰੀਖ ਨਹੀਂ ਹੈ।',
'date_equals' => ':attribute :date ਦੇ ਬਰਾਬਰ ਦੀ ਤਾਰੀਖ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'date_format' => ':attribute ਫਾਰਮੈਟ :format ਨਾਲ ਮੇਲ ਨਹੀਂ ਖਾਂਦਾ।',
'different' => ':attribute ਅਤੇ :other ਵੱਖਰੇ ਹੋਣੇ ਚਾਹੀਦੇ ਹਨ।',
'digits' => ':attribute :digits ਅੰਕਾਂ ਦਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'digits_between' => ':attribute :min ਅਤੇ :max ਅੰਕਾਂ ਦੇ ਵਿਚਕਾਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'dimensions' => ':attribute ਦੀਆਂ ਚਿੱਤਰ ਮਾਪਾਂ ਅਵੈਧ ਹਨ।',
'distinct' => ':attribute ਫੀਲਡ ਵਿੱਚ ਡੁਪਲੀਕੇਟ ਮੁੱਲ ਹੈ।',
'email' => ':attribute ਇੱਕ ਵੈਧ ਈਮੇਲ ਪਤਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'ends_with' => ':attribute ਹੇਠ ਲਿਖਿਆਂ ਵਿੱਚੋਂ ਕਿਸੇ ਇੱਕ ਨਾਲ ਖਤਮ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ: :values।',
'exists' => 'ਚੁਣਿਆ ਗਿਆ :attribute ਅਵੈਧ ਹੈ।',
'file' => ':attribute ਇੱਕ ਫਾਈਲ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'filled' => ':attribute ਫੀਲਡ ਦਾ ਮੁੱਲ ਹੋਣਾ ਜ਼ਰੂਰੀ ਹੈ।',
'gt' => [
'numeric' => ':attribute :value ਤੋਂ ਵੱਡਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :value ਕਿਲੋਬਾਈਟਸ ਤੋਂ ਵੱਡਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :value ਅੱਖਰਾ<E0A8B0><E0A8BE><EFBFBD> ਤੋਂ ਵੱਡਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :value ਤੋਂ ਵੱਧ ਆਈਟਮਾਂ ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'gte' => [
'numeric' => ':attribute :value ਤੋਂ ਵੱਡਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :value ਕਿਲੋਬਾਈਟਸ ਤੋਂ ਵੱਡਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :value ਅੱਖਰਾਂ ਤੋਂ ਵੱਡਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :value ਜਾਂ ਵੱਧ ਆਈਟਮਾਂ ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'image' => ':attribute ਇੱਕ ਚਿੱਤਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'in' => 'ਚੁਣਿਆ ਗਿਆ :attribute ਅਵੈਧ ਹੈ।',
'in_array' => ':attribute ਫੀਲਡ :other ਵਿੱਚ ਮੌਜੂਦ ਨਹੀਂ ਹੈ।',
'integer' => ':attribute ਇੱਕ ਪੂਰਨ ਅੰਕ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'ip' => ':attribute ਇੱਕ ਵੈਧ IP ਪਤਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'ipv4' => ':attribute ਇੱਕ ਵੈਧ IPv4 ਪਤਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'ipv6' => ':attribute ਇੱਕ ਵੈਧ IPv6 ਪਤਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'json' => ':attribute ਇੱਕ ਵੈਧ JSON ਸਤਰ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।',
'lt' => [
'numeric' => ':attribute :value ਤੋਂ ਛੋਟਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :value ਕਿਲੋਬਾਈਟਸ ਤੋਂ ਛੋਟਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :value ਅੱਖਰਾਂ ਤੋਂ ਛੋਟਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :value ਤੋਂ ਘੱਟ ਆਈਟਮਾਂ ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'lte' => [
'numeric' => ':attribute :value ਤੋਂ ਛੋਟਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :value ਕਿਲੋਬਾਈਟਸ ਤੋਂ ਛੋਟਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :value ਅੱਖਰਾਂ ਤੋਂ ਛੋਟਾ ਜਾਂ ਬਰਾਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :value ਤੋਂ ਵੱਧ ਆਈਟਮਾਂ ਨਹੀ<E0A8B9><E0A980> ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ।',
],
'max' => [
'numeric' => ':attribute :max ਤੋਂ ਵੱਡਾ ਨਹੀਂ ਹੋ ਸਕਦਾ।',
'file' => ':attribute :max ਕਿਲੋਬਾਈਟਸ ਤੋਂ ਵੱਡਾ ਨਹੀਂ ਹੋ ਸਕਦਾ।',
'string' => ':attribute :max ਅੱਖਰਾਂ ਤੋਂ ਵੱਡਾ ਨਹੀਂ ਹੋ ਸਕਦਾ।',
'array' => ':attribute ਵਿੱਚ :max ਤੋਂ ਵੱਧ ਆਈਟਮਾਂ ਨਹੀਂ ਹੋ ਸਕਦੀਆਂ।',
],
'mimes' => ':attribute ਇਸ ਕਿਸਮ ਦੀ ਫਾਈਲ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ: :values।',
'mimetypes' => ':attribute ਇਸ ਕਿਸਮ ਦੀ ਫਾਈਲ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ: :values।',
'min' => [
'numeric' => ':attribute ਘੱਟੋ-ਘੱਟ :min ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute ਘੱਟੋ-ਘੱਟ :min ਕਿਲੋਬਾਈਟਸ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute ਘੱਟੋ-ਘੱਟ :min ਅੱਖਰਾਂ ਦਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ ਘੱਟੋ-ਘੱਟ :min ਆਈਟਮਾਂ ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'multiple_of' => ':attribute :value ਦਾ ਗੁਣਜ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ',
'not_in' => 'ਚੁਣਿਆ ਗਿਆ :attribute ਅਵੈਧ ਹੈ।',
'not_regex' => ':attribute ਫਾਰਮੈਟ ਅਵੈਧ ਹੈ।',
'numeric' => ':attribute ਇੱਕ ਨੰਬਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'password' => 'ਪਾਸਵਰਡ ਗਲਤ ਹੈ।',
'present' => ':attribute ਫੀਲਡ ਮੌਜੂਦ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'regex' => ':attribute ਫਾਰਮੈਟ ਅਵੈਧ ਹੈ।',
'required' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ।',
'required_if' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ ਜਦੋਂ :other :value ਹੈ।',
'required_unless' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ ਜਦੋਂ ਤੱਕ :other :values ਵਿੱਚ ਨਹੀਂ ਹੈ।',
'required_with' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ ਜਦੋਂ :values ਮੌਜੂਦ ਹੈ।',
'required_with_all' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ ਜਦੋਂ :values ਮੌਜੂਦ ਹਨ।',
'required_without' => ':attribute ਫੀਲਡ ਲੋੜੀਂਦਾ ਹੈ ਜਦੋਂ :values ਮੌਜੂਦ ਨਹੀਂ ਹੈ।',
'required_without_all' => ':attribute ਫੀਲਡ ਲੋੜੀ<E0A99C><E0A980>ਦਾ ਹੈ ਜਦੋਂ :values ਵਿੱਚੋਂ ਕੋਈ ਵੀ ਮੌਜੂਦ ਨਹੀਂ ਹੈ।',
'same' => ':attribute ਅਤੇ :other ਮੇਲ ਖਾਣੇ ਚਾਹੀਦੇ ਹਨ।',
'size' => [
'numeric' => ':attribute :size ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'file' => ':attribute :size ਕਿਲੋਬਾਈਟਸ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'string' => ':attribute :size ਅੱਖਰਾਂ ਦਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'array' => ':attribute ਵਿੱਚ :size ਆਈਟਮਾਂ ਹੋਣੀਆਂ ਚਾਹੀਦੀਆਂ ਹਨ।',
],
'starts_with' => ':attribute ਹੇਠ ਲਿਖਿਆਂ ਵਿੱਚੋਂ ਕਿਸੇ ਇੱਕ ਨਾਲ ਸ਼ੁਰੂ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ: :values।',
'string' => ':attribute ਇੱਕ ਵੈਧ ਟੈਕਸਟ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'timezone' => ':attribute ਇੱਕ ਵੈਧ ਜ਼ੋਨ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।',
'unique' => ':attribute ਪਹਿਲਾਂ ਹੀ ਲਿਆ ਜਾ ਚੁੱਕਾ ਹੈ।',
'uploaded' => ':attribute ਅਪਲੋਡ ਕਰਨ ਵਿੱਚ ਅਸਫਲ।',
'url' => ':attribute ਫਾਰਮੈਟ ਅਵੈਧ ਹੈ।',
'uuid' => ':attribute ਇੱਕ ਵੈਧ UUID ਹੋਣਾ ਚਾਹੀਾ ਹੈ।',
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
'attributes' => [],
Add reCAPTCHA support and update captcha provider handling (#647) * Add reCAPTCHA support and update captcha provider handling - Introduced reCAPTCHA as an additional captcha provider alongside hCaptcha. - Updated form request validation to handle different captcha providers based on user selection. - Added a new validation rule for reCAPTCHA. - Modified the forms model to include a 'captcha_provider' field. - Created a migration to add the 'captcha_provider' column to the forms table. - Updated frontend components to support dynamic rendering of captcha based on the selected provider. - Enhanced tests to cover scenarios for both hCaptcha and reCAPTCHA. These changes improve the flexibility of captcha options available to users, enhancing form security and user experience. * fix pint * change comment text * Refactor captcha implementation and integrate new captcha components - Removed the old RecaptchaV2 component and replaced it with a new implementation that supports both reCAPTCHA and hCaptcha through a unified CaptchaInput component. - Updated the OpenForm component to utilize the new CaptchaInput for dynamic captcha rendering based on user-selected provider. - Cleaned up the package.json by removing the deprecated @hcaptcha/vue3-hcaptcha dependency. - Enhanced form initialization to set a default captcha provider. - Improved error handling and cleanup for both reCAPTCHA and hCaptcha scripts. These changes streamline captcha integration, improve maintainability, and enhance user experience by providing a more flexible captcha solution. * Refactor captcha error messages and localization support * Refactor registration process to integrate reCAPTCHA - Replaced hCaptcha implementation with reCAPTCHA in RegisterController and related test cases. - Updated validation rules to utilize g-recaptcha-response instead of h-captcha-response. - Modified RegisterForm component to support reCAPTCHA, including changes to the form data structure and component references. - Enhanced test cases to reflect the new reCAPTCHA integration, ensuring proper validation and response handling. These changes improve security and user experience during the registration process by adopting a more widely used captcha solution. * Fix reCAPTCHA configuration and update RegisterForm styling - Corrected the configuration key for reCAPTCHA in RegisterController from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key'. - Updated the styling of the Captcha input section in RegisterForm.vue to improve layout consistency. These changes ensure proper reCAPTCHA functionality and enhance the user interface during the registration process. * Fix reCAPTCHA configuration in RegisterTest to use the correct key format - Updated the configuration key for reCAPTCHA in RegisterTest from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key' to ensure proper functionality during tests. This change aligns the test setup with the recent updates in the reCAPTCHA integration, improving the accuracy of the registration process tests. --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-12-18 16:35:09 +01:00
'invalid_json' => 'ਗਲਤ ਇਨਪੁਟ। ਕਿਰਪਾ ਕਰਕਕੇ ਸਹੀ ਕਰੋ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।',
'invalid_captcha' => 'ਗਲਤ ਕੈਪਚਾ। ਕਿਰਪਾ ਕਰੋ ਕੈਪਚਾ ਟੀਪ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।',
'complete_captcha' => 'ਕਿਰਪਾ ਕਰੋ ਕੈਪਚਾ ਭਰੋ।',
];