From 9996fbc36e247412e6d29a2a692f2255ea9190d4 Mon Sep 17 00:00:00 2001 From: hadi-aj Date: Thu, 16 Jul 2020 00:15:37 +0430 Subject: [PATCH 1/2] Added Persian translations (#387) * Added Persian translations --- CHANGELOG.md | 1 + src/User/resources/i18n/fa-IR/usuario.php | 270 +++++++++++----------- 2 files changed, 136 insertions(+), 135 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5176f7e..51647b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## work in progress - Fix #378: Add module attribute 'disableIpLogging' (jkmssoft) + - Enh #387: Added Persian translation (hadi-aj) ## 1.5.1 April 5, 2020 - Fix #370: Extending view fix (effsoft) diff --git a/src/User/resources/i18n/fa-IR/usuario.php b/src/User/resources/i18n/fa-IR/usuario.php index fd3e6ba..a695906 100644 --- a/src/User/resources/i18n/fa-IR/usuario.php +++ b/src/User/resources/i18n/fa-IR/usuario.php @@ -20,30 +20,30 @@ return [ 'I agree processing of my personal data and the use of cookies to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', 'privacy policy' => '@@@@', '{0, date, MMM dd, YYYY HH:mm}' => '@@@@', - '(not set)' => '', - 'A confirmation message has been sent to your new email address' => '', - 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => '', - 'A new confirmation link has been sent' => '', - 'A password will be generated automatically if not provided' => '', + '(not set)' => '(تنظیم نشده)', + 'A confirmation message has been sent to your new email address' => 'ایمیلی برای تایید به آدرس ایمیل جدید شما ارسال شد', + 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'ایمیلی حاوی لینک فعال سازی حساب کاربریتان برای شما ارسال شد ، لطفا بر روی لینک موجود در ایمیل کلیک کنید تا ثبت نام کامل شود.', + 'A new confirmation link has been sent' => 'لینک فعال سازی جدیدی برای شما ارسال شد', + 'A password will be generated automatically if not provided' => 'اگر رمز عبور را وارد نکنید یک رمز عبور تصادفی برای شما ساخته خواهد شد', 'According to the European General Data Protection Regulation (GDPR) we need your consent to work with your personal data.' => '', - 'Account' => '', - 'Account confirmation' => '', - 'Account details' => '', - 'Account details have been updated' => '', - 'Account settings' => '', - 'Already registered? Sign in!' => '', + 'Account' => 'حساب کاربری', + 'Account confirmation' => 'تایید حساب کاربری', + 'Account details' => 'مشخصات حساب کاربری', + 'Account details have been updated' => 'جزئیات حساب کاربری بروز شد', + 'Account settings' => 'تنظیمات حساب کاربری', + 'Already registered? Sign in!' => 'قبلاً ثبت نام کرده اید ؟ پس وارد شوید!', 'An email with instructions to create a new password has been sent to {email} if it is associated with an {appName} account. Your existing password has not been changed.' => '', - 'An error occurred processing your request' => '', - 'Are you sure you want to block this user?' => '', - 'Are you sure you want to confirm this user?' => '', - 'Are you sure you want to delete this user?' => '', + 'An error occurred processing your request' => 'در زمان پردازش درخواست شما خطایی رخ داد', + 'Are you sure you want to block this user?' => 'آیا از مسدود کردن این کاربر اطمینان دارید ؟', + 'Are you sure you want to confirm this user?' => 'آیا از تایید این کاربر اطمینان دارید؟', + 'Are you sure you want to delete this user?' => 'آیا از حذف این کاربر اطمینان دارید؟', 'Are you sure you want to switch to this user for the rest of this Session?' => '', - 'Are you sure you want to unblock this user?' => '', + 'Are you sure you want to unblock this user?' => 'آیا از آزاد سازی این کاربر اطمینان دارید؟', 'Are you sure you wish the user to change their password at next login?' => '', 'Are you sure you wish to send a password recovery email to this user?' => '', - 'Are you sure? Deleted user can not be restored' => '', + 'Are you sure? Deleted user can not be restored' => 'مطمئن هستید؟ امکان بازیابی اکانت پاک شده وجود ندارد', 'Are you sure? There is no going back' => '', - 'Assignments' => '', + 'Assignments' => 'تکالیف', 'Assignments have been updated' => '', 'Auth item with such name already exists' => '', 'Authentication rule class {0} can not be instantiated' => '', @@ -56,127 +56,127 @@ return [ 'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => '', 'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => '', 'Back to privacy settings' => '', - 'Bio' => '', - 'Block' => '', - 'Block status' => '', - 'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => '', + 'Bio' => 'بیوگرافی', + 'Block' => 'مسدود', + 'Block status' => 'وضعیت انسداد', + 'Blocked at {0, date, MMMM dd, YYYY HH:mm}' => 'مسدود شده در تاریخ {0, date, MMMM dd, YYYY HH:mm}', 'Cancel' => '', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => '', - 'Change your avatar at Gravatar.com' => '', + 'Change your avatar at Gravatar.com' => 'نمایه خود را در Gavatar.com تغییر دهید', 'Children' => '', 'Class' => '', 'Close' => '', - 'Complete password reset on {0}' => '', - 'Confirm' => '', - 'Confirm account on {0}' => '', - 'Confirm email change on {0}' => '', - 'Confirmation' => '', - 'Confirmation status' => '', - 'Confirmation time' => '', - 'Confirmed' => '', - 'Confirmed at {0, date, MMMM dd, YYYY HH:mm}' => '', - 'Connect' => '', - 'Continue' => '', - 'Create' => '', - 'Create a user account' => '', + 'Complete password reset on {0}' => 'تنظیم مجدد رمز عبور را در {0} کامل کنید', + 'Confirm' => 'تایید', + 'Confirm account on {0}' => 'حساب کاربری را در {0} تایید کن', + 'Confirm email change on {0}' => 'تغییر ایمیل را در {0} کامل کن', + 'Confirmation' => 'روند تایید', + 'Confirmation status' => 'وضعیت تائیدیه', + 'Confirmation time' => 'زمان تائیدیه', + 'Confirmed' => 'تایید شده', + 'Confirmed at {0, date, MMMM dd, YYYY HH:mm}' => 'تایید شده در {0, date, MMMM dd, YYYY HH:mm}', + 'Connect' => 'وصل کردن', + 'Continue' => 'ادامه', + 'Create' => 'ایجاد کردن', + 'Create a user account' => 'ایجاد حساب کاربری', 'Create new permission' => '', 'Create new role' => '', 'Create new rule' => '', 'Created at' => '', - 'Credentials will be sent to the user by email' => '', - 'Current password' => '', - 'Current password is not valid' => '', + 'Credentials will be sent to the user by email' => 'مشخصات کاربری از طریق ایمیل به کاربر ارسال خواهد شد', + 'Current password' => 'رمز عبور فعلی', + 'Current password is not valid' => 'رمز عبور فعلی معتبر نیست', 'Data privacy' => '', 'Data processing consent' => '', - 'Delete' => '', + 'Delete' => 'حذف کردن', 'Delete account' => '', 'Delete my account' => '', 'Delete personal data' => '', 'Deleted by GDPR request' => '', 'Description' => '', - 'Didn\'t receive confirmation message?' => '', + 'Didn\'t receive confirmation message?' => 'ایمیل فعال سازی را دریافت نکرده اید؟', 'Disable two factor authentication' => '', - 'Disconnect' => '', - 'Don\'t have an account? Sign up!' => '', + 'Disconnect' => 'قطع ارتباط', + 'Don\'t have an account? Sign up!' => 'هنوز حساب کاربری ندارید؟ پس ثبت نام کنید!', 'Download my data' => '', - 'Email' => '', - 'Email (public)' => '', + 'Email' => 'ایمیل', + 'Email (public)' => 'ایمیل (عمومی)', 'Enable' => '', 'Enable two factor authentication' => '', - 'Error occurred while changing password' => '', - 'Error occurred while confirming user' => '', - 'Error occurred while deleting user' => '', + 'Error occurred while changing password' => 'در طول تغییر گذرواژه خطا رخ داد', + 'Error occurred while confirming user' => 'در طول فعال سازی شناسه کاربری خطا رخ داد', + 'Error occurred while deleting user' => 'در زمان حذف کاربر خطایی رخ داد', 'Error sending registration message to "{email}". Please try again later.' => '', 'Error sending welcome message to "{email}". Please try again later.' => '', 'Export my data' => '', - 'Finish' => '', + 'Finish' => 'پایان', 'Force password change at next login' => '', - 'Forgot password?' => '', - 'Gravatar email' => '', - 'Hello' => '', + 'Forgot password?' => 'رمز عبور خود را فراموش کرده اید؟', + 'Gravatar email' => 'ایمیل گاواتار', + 'Hello' => 'سلام', 'Here you can download your personal data in a comma separated values format.' => '', - 'If you already registered, sign in and connect this account on settings page' => '', - 'If you cannot click the link, please try pasting the text into your browser' => '', - 'If you did not make this request you can ignore this email' => '', + 'If you already registered, sign in and connect this account on settings page' => 'اگر شما قبلا ثبت نام کرده اید وارد شوید و این اکانت را در صفحه تنظیمات متصل کنید', + 'If you cannot click the link, please try pasting the text into your browser' => 'اگر برای کلیک بر روی این اکانت مشکلی دارید لطفا آدرس را در مرورگر کپی کنید', + 'If you did not make this request you can ignore this email' => 'اگر شما این ایمیل را درخواست نداده اید پس می توانید آن را نادیده بگیرید', 'Impersonate this user' => '', - 'In order to complete your registration, please click the link below' => '', - 'In order to complete your request, please click the link below' => '', + 'In order to complete your registration, please click the link below' => 'برای کامل کردن ثبت نام خود لطفا بر روی لینک زیر کلیک کنید', + 'In order to complete your request, please click the link below' => 'برای کامل کردن درخواست خود لطفا بر روی لینک زیر کلیک کنید', 'In order to finish your registration, we need you to enter following fields' => '', - 'Information' => '', - 'Invalid login or password' => '', - 'Invalid or expired link' => '', + 'Information' => 'اطلاعات', + 'Invalid login or password' => 'نام کاربری یا رمز عبور نامعتبر است', + 'Invalid or expired link' => 'لینک فعال سازی معتبر نیست یا منقضی شده است', 'Invalid password' => '', 'Invalid two factor authentication code' => '', 'Invalid value' => '', 'It will be deleted forever' => '', 'Items' => '', - 'Joined on {0, date}' => '', + 'Joined on {0, date}' => 'عضو شده در {0, date}', 'Last login IP' => '', 'Last login time' => '', 'Last password change' => '', - 'Location' => '', - 'Login' => '', - 'Logout' => '', - 'Manage users' => '', - 'Name' => '', - 'Networks' => '', + 'Location' => 'موقعیت', + 'Login' => 'ورود', + 'Logout' => 'خروج', + 'Manage users' => 'مدیریت کاربران', + 'Name' => 'نام', + 'Networks' => 'شبکه ها', 'Never' => '', - 'New email' => '', - 'New password' => '', - 'New permission' => '', - 'New role' => '', + 'New email' => 'ایمیل جدید', + 'New password' => 'رمز عبور جدید', + 'New permission' => 'اجازه دسترسی جدید', + 'New role' => 'نقش جدید', 'New rule' => '', - 'New user' => '', - 'Not blocked' => '', + 'New user' => 'کاربر جدید', + 'Not blocked' => 'مسدود نشده', 'Not found' => '', 'Once you delete your account, there is no going back' => '', 'Once you have deleted your data, you will not longer be able to sign in with this account.' => '', - 'Password' => '', + 'Password' => 'رمز عبور', 'Password age' => '', - 'Password has been changed' => '', - 'Permissions' => '', + 'Password has been changed' => 'رمز عبور تغییر پیدا کرد', + 'Permissions' => 'اجازه دسترسی', 'Please be certain' => '', - 'Please click the link below to complete your password reset' => '', - 'Please fix following errors:' => '', + 'Please click the link below to complete your password reset' => 'لطفا برای کامل کردن روند بازیابی رمز عبور بر روی لینک زیر کلیک کنید', + 'Please fix following errors:' => 'لطفا خطا های زیر را بر طرف کنید :', 'Privacy' => '', 'Privacy settings' => '', - 'Profile' => '', - 'Profile details' => '', - 'Profile details have been updated' => '', - 'Profile settings' => '', - 'Recover your password' => '', - 'Recovery link is invalid or expired. Please try requesting a new one.' => '', - 'Recovery message sent' => '', - 'Registration IP' => '', + 'Profile' => 'پروفایل', + 'Profile details' => 'مشخصات پروفایل', + 'Profile details have been updated' => 'مشخصات پروفایل بروز شد', + 'Profile settings' => 'تنظیمات پروفایل', + 'Recover your password' => 'گذرواژه خود را بازیابی کنید', + 'Recovery link is invalid or expired. Please try requesting a new one.' => 'ایمیل تنظیم مجدد رمز عبور معتبر نیست یا منقضی شده است. لطفا دوباره درخواست دهید تا ایمیل جدیدی برایتان ارسال شود.', + 'Recovery message sent' => 'ایمیل تنظیم مجدد رمز عبور ارسال شد', + 'Registration IP' => 'آدرس ای پی ثبت نام', 'Registration on this website is disabled' => '', - 'Registration time' => '', - 'Remember me next time' => '', - 'Request new confirmation message' => '', + 'Registration time' => 'تاریخ ثبت نام', + 'Remember me next time' => 'دفعه بعد مرا به یاد بسپار', + 'Request new confirmation message' => 'درخواست ایمیل فعال سازی جدید', 'Required "key" cannot be empty.' => '', 'Required "secret" cannot be empty.' => '', - 'Reset your password' => '', + 'Reset your password' => 'بازیابی رمز عبور', 'Role "{0}" not found. Creating it.' => '', - 'Roles' => '', + 'Roles' => 'نقش ها', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', 'Rule class name' => '', @@ -185,29 +185,29 @@ return [ 'Rule {0} does not exists' => '', 'Rule {0} not found.' => '', 'Rules' => '', - 'Save' => '', + 'Save' => 'ذخیره', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', 'Select rule...' => '', 'Send password recovery email' => '', - 'Sign in' => '', - 'Sign up' => '', - 'Something went wrong' => '', + 'Sign in' => 'ورود', + 'Sign up' => 'ثبت نام', + 'Something went wrong' => 'چیز اشتباهی رخ داد', 'Submit' => '', 'Switch identities is disabled.' => '', - 'Thank you for signing up on {0}' => '', - 'Thank you, registration is now complete.' => '', + 'Thank you for signing up on {0}' => 'با تشکر از ثبت نام شما در {0}', + 'Thank you, registration is now complete.' => 'متشکریم ، ثبت نام شما کامل شد.', 'The "recaptcha" component must be configured.' => '', - 'The confirmation link is invalid or expired. Please try requesting a new one.' => '', + 'The confirmation link is invalid or expired. Please try requesting a new one.' => 'لینک تایید معتبر نیست یا منقضی شده است. لطفا دوباره درخواست دهید تا ایمیل جدیدی برایتان ارسال شود.', 'The verification code is incorrect.' => '', 'There is neither role nor permission with name "{0}"' => '', 'There was an error in saving user' => '', - 'This account has already been connected to another user' => '', - 'This email address has already been taken' => '', - 'This username has already been taken' => '', + 'This account has already been connected to another user' => 'این اکانت قبلا به حساب کاربری دیگری متصل شده است', + 'This email address has already been taken' => 'این آدرس ایمیل قبلا ثبت شده است', + 'This username has already been taken' => 'این نام کاربری قبلا ثبت شده است', 'This will disable two factor authentication. Are you sure?' => '', 'This will remove your personal data from this site. You will no longer be able to sign in.' => '', - 'Time zone' => '', - 'Time zone is not valid' => '', + 'Time zone' => 'موقعیت زمانی', + 'Time zone is not valid' => 'موقعبت زمانی معتبر نیست', 'Two Factor Authentication (2FA)' => '', 'Two factor authentication code' => '', 'Two factor authentication has been disabled.' => '', @@ -225,61 +225,61 @@ return [ 'Unable to update authorization item.' => '', 'Unable to update authorization rule.' => '', 'Unable to update block status.' => '', - 'Unblock' => '', - 'Unconfirmed' => '', + 'Unblock' => 'آزاد سازی', + 'Unconfirmed' => 'تایید نشده', 'Unfortunately, you can not work with this site without giving us consent to process your data.' => '', - 'Update' => '', + 'Update' => 'بروزرسانی', 'Update assignments' => '', 'Update permission' => '', 'Update role' => '', 'Update rule' => '', - 'Update user account' => '', + 'Update user account' => 'اکانت کاربر را بروز کنید', 'Updated at' => '', 'User account could not be created.' => '', 'User block status has been updated.' => '', 'User could not be registered.' => '', - 'User has been confirmed' => '', - 'User has been created' => '', - 'User has been deleted' => '', - 'User is not found' => '', - 'User not found.' => '', + 'User has been confirmed' => 'کاربر تایید شد', + 'User has been created' => 'کاربر ساخته شد', + 'User has been deleted' => 'کاربر حذف شد', + 'User is not found' => 'کاربر پیدا نشد', + 'User not found.' => 'کاربر پیدا نشد.', 'User will be required to change password at next login' => '', - 'Username' => '', - 'Users' => '', + 'Username' => 'نام کاربری', + 'Users' => 'کاربرها', 'VKontakte' => '', 'Verification failed. Please, enter new code.' => '', 'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => '', 'We have generated a password for you' => '', - 'We have received a request to change the email address for your account on {0}' => '', - 'We have received a request to reset the password for your account on {0}' => '', + 'We have received a request to change the email address for your account on {0}' => 'ما درخواستی برای تغییر آدرس ایمیل اکانت شما در {0} دریافت کرده ایم', + 'We have received a request to reset the password for your account on {0}' => 'ما درخواستی برای تنظیم مجدد رمز عبور برای حساب کاربری شما در {0} دریافت کردیم', 'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => '', - 'Website' => '', - 'Welcome to {0}' => '', - 'Yandex' => '', + 'Website' => 'وب سایت', + 'Welcome to {0}' => 'خوش آمدید به {0}', + 'Yandex' => 'یاندکس', 'You are about to delete all your personal data from this site.' => '', - 'You can assign multiple roles or permissions to user by using the form below' => '', - 'You can connect multiple accounts to be able to log in using them' => '', + 'You can assign multiple roles or permissions to user by using the form below' => 'شما می توانید نقش ها یا مجوز دسترسی های متعددی را از طریق فرم زیر به کاربر تخصیص دهید', + 'You can connect multiple accounts to be able to log in using them' => 'شما می توانید حساب کاربری متعددی را برای اینکه بتوانید با آنها وارد شوید به سیستم متصل کنید', 'You cannot remove your own account' => '', - 'You need to confirm your email address' => '', - 'Your account details have been updated' => '', - 'Your account has been blocked' => '', - 'Your account has been blocked.' => '', + 'You need to confirm your email address' => 'شما باید ایمیل خود را تایید کنید', + 'Your account details have been updated' => 'مشخصات حساب کاربری شما بروز شد', + 'Your account has been blocked' => 'اکانت شما مسدود شده است', + 'Your account has been blocked.' => 'اکانت شما مسدود شده است.', 'Your account has been completely deleted' => '', - 'Your account has been connected' => '', - 'Your account has been created' => '', - 'Your account has been created and a message with further instructions has been sent to your email' => '', - 'Your account on {0} has been created' => '', - 'Your confirmation token is invalid or expired' => '', + 'Your account has been connected' => 'حساب کاربری شما متصل شد', + 'Your account has been created' => 'اکانت شما ساخته شد', + 'Your account has been created and a message with further instructions has been sent to your email' => 'اکانت شما ساخته شد و ایمیلی حاوی دستورالعمل های بعدی به شما ارسال شد', + 'Your account on {0} has been created' => 'حساب کاربری شما در {0} ساخته شد', + 'Your confirmation token is invalid or expired' => 'لینک تایید شما معتبر نیست یا منقضی شده است', 'Your consent is required to register' => '', 'Your consent is required to work with this site' => '', - 'Your email address has been changed' => '', + 'Your email address has been changed' => 'آدرس ایمیل شما تغییر کرد', 'Your password has expired, you must change it now' => '', 'Your personal information has been removed' => '', - 'Your profile has been updated' => '', - '{0, date, MMMM dd, YYYY HH:mm}' => '', + 'Your profile has been updated' => 'پروفایل شما بروز شد', + '{0, date, MMMM dd, YYYY HH:mm}' => '{0, date, dd MMMM, YYYY HH:mm}', '{0} cannot be blank.' => '', 'A message has been sent to your email address. ' => '@@@@', - 'An email has been sent with instructions for resetting your password' => '@@@@', + 'An email has been sent with instructions for resetting your password' => 'ایمیلی حاوی راهنمایی برای تنظیم مجدد رمز عبور به شما ارسال شد', 'Awesome, almost there. ' => '@@@@', 'Class "{0}" does not exist' => '@@@@', 'Disable Two-Factor Auth' => '@@@@', @@ -289,7 +289,7 @@ return [ 'I aggree processing of my personal data and the use of cookies to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', 'Invalid two-factor code' => '@@@@', 'Last login' => '@@@@', - 'Registration ip' => '@@@@', + 'Registration ip' => 'ای پی ثبت نام', 'Rule class can not be instantiated' => '@@@@', 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', 'This will disable two-factor auth. Are you sure?' => '@@@@', From a6ba4b220846b363520dd0ecbe550345f3e619f4 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 16 Jul 2020 07:44:38 +0200 Subject: [PATCH 2/2] Update first-steps.md (#389) Add missing step for deleting the administrator role. --- docs/helpful-guides/first-steps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/helpful-guides/first-steps.md b/docs/helpful-guides/first-steps.md index 07c39aa..70c2b2a 100644 --- a/docs/helpful-guides/first-steps.md +++ b/docs/helpful-guides/first-steps.md @@ -68,7 +68,7 @@ Put this in your migration: $user = \Da\User\Model\User::findOne(['name'=>"admin"]); $auth->revoke($administratorRole, $user->id); $user->delete(); - + $auth->remove($administratorRole); } ## User Management