Skip to content

Commit a8e6711

Browse files
authored
Release 4.3.1
2 parents 79d87fd + ea75d14 commit a8e6711

File tree

8 files changed

+60
-49
lines changed

8 files changed

+60
-49
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [v4.3.1]
9+
10+
### Changed
11+
- Update Arabic Locales ([#1028])
12+
13+
### Fixed
14+
- Fix typos in user creation with initial password ([#1030])
15+
816
## [v4.3.0]
917

1018
### Changed Requirements
@@ -842,9 +850,12 @@ See [http://learn.userfrosting.com/upgrading/40-to-41](Upgrading 4.0.x to 4.1.x
842850
[#1017]: https://github.com/userfrosting/UserFrosting/issues/1017
843851
[#1018]: https://github.com/userfrosting/UserFrosting/issues/1018
844852
[#1019]: https://github.com/userfrosting/UserFrosting/issues/1019
853+
[#1028]: https://github.com/userfrosting/UserFrosting/issues/1028
854+
[#1030]: https://github.com/userfrosting/UserFrosting/issues/1030
845855

846856
[v4.2.0]: https://github.com/userfrosting/UserFrosting/compare/v4.1.22...v4.2.0
847857
[v4.2.1]: https://github.com/userfrosting/UserFrosting/compare/v4.2.0...v.4.2.1
848858
[v4.2.2]: https://github.com/userfrosting/UserFrosting/compare/v.4.2.1...v4.2.2
849859
[v4.2.3]: https://github.com/userfrosting/UserFrosting/compare/v4.2.2...v4.2.3
850860
[v4.3.0]: https://github.com/userfrosting/UserFrosting/compare/v4.2.3...v4.3.0
861+
[v4.3.1]: https://github.com/userfrosting/UserFrosting/compare/v4.3.0...v4.3.1

app/sprinkles/account/locale/ar/messages.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
'EMAIL' => [
5151
'INVALID' => 'لا يوجد حساب ل <strong>{{email}}</strong>',
5252
'IN_USE' => 'البريد الإلكتروني <strong>{{email}}</strong> قيد الاستخدام',
53-
// 'VERIFICATION_REQUIRED' => 'Email (verification required - use a real address!)',
53+
'VERIFICATION_REQUIRED' => 'البريد الإلكتروني (التحقق مطلوب - استخدام عنوان حقيقي!)',
5454
],
55-
// 'EMAIL_OR_USERNAME' => 'Username or email address',
55+
'EMAIL_OR_USERNAME' => 'اسم المستخدم أو البريد الالكتروني',
5656
'FIRST_NAME' => 'الاسم الاول',
5757
'HEADER_MESSAGE_ROOT' => 'تسجيل الدخول باسم المستخدم ROOT',
5858
'LAST_NAME' => 'اسم العائلة',
5959
'LOCALE' => [
6060
'ACCOUNT' => 'اللغة التي تستخدم لحسابك',
61-
// 'INVALID' => '<strong>{{locale}}</strong> is not a valid locale.',
61+
'INVALID' => 'ليست لغة صالحة <strong>{{locale}}</strong>',
6262
],
6363
'LOGIN' => [
6464
'@TRANSLATION' => 'تسجيل الدخول',
@@ -68,7 +68,7 @@
6868
],
6969
'LOGOUT' => 'تسجيل الخروج',
7070
'NAME' => 'اسم',
71-
// 'NAME_AND_EMAIL' => 'Name and email',
71+
'NAME_AND_EMAIL' => 'الاسم والبريد الإلكتروني',
7272
'PAGE' => [
7373
'LOGIN' => [
7474
'DESCRIPTION' => 'سجل الدخول إلى حسابك في {{site_name}} أو سجيل للحصول على حساب جديد',
@@ -115,8 +115,8 @@
115115
'UPDATED' => 'جدد كلمة مرور',
116116
],
117117
'PROFILE' => [
118-
// 'SETTINGS' => 'Profile settings',
119-
// 'UPDATED' => 'Profile settings updated',
118+
'SETTINGS' => 'إعدادات الملف الشخصي',
119+
'UPDATED' => 'تم تحديث إعدادات الملف الشخصي',
120120
],
121121
'RATE_LIMIT_EXCEEDED' => 'تم تجاوز الحد عددا لهذا الإجراء يجب الانتظار {{delay}} ثواني قبل القيام بمحاولة أخرى',
122122
'REGISTER' => 'تسجيل',
@@ -143,7 +143,7 @@
143143
'CHOOSE' => 'اختيار اسم مستخدم فريد',
144144
'INVALID' => 'اسم المستخدم غير صالح',
145145
'IN_USE' => 'اسم المستخدم <strong>{{user_name}}</strong> قيد الاستخدام',
146-
// 'NOT_AVAILABLE' => 'Username <strong>{{user_name}}</strong> is not available. Choose a different name, or click \'suggest\'.',
146+
'NOT_AVAILABLE' => ' غير متاح. اختر اسمًا مختلفًا ، أواذغط "اقترح". <strong>{{user_name}}</strong> اسم المستخدم',
147147
],
148148
'USER_ID_INVALID' => 'عدم وجود هوية المستخدم المطلوب',
149149
'USER_OR_EMAIL_INVALID' => 'اسم المستخدم أو عنوان البريد الإلكتروني غير صالح',

app/sprinkles/account/locale/ar/validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
return [
1818
'VALIDATE' => [
1919
'PASSWORD_MISMATCH' => 'يجب أن تكون كلمة المرور وكلمة المرور التأكيدية نفس',
20-
// 'USERNAME' => 'Username may consist only of lowercase letters, numbers, \'.\', \'-\', and \'_\'.',
20+
'USERNAME' => '\'.\', \'-\', و \'_\'. قد يتكون اسم المستخدم فقط من أحرف صغيرة وأرقام',
2121
],
2222
];

app/sprinkles/admin/locale/ar/messages.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,30 @@
3333
'DELETION_SUCCESSFUL' => 'المستعمل <strong>{{user_name}}</strong> حذف بنجاح',
3434
'DETAILS_UPDATED' => 'جدد تفاصيل الحساب للمستخدم <strong>{{user_name}}</strong>',
3535
'DISABLE_MASTER' => 'لا يمكنك تعطيل الحساب الرئيسي',
36-
// 'DISABLE_SELF' => 'You cannot disable your own account!',
36+
'DISABLE_SELF' => 'لا يمكنك تعطيل حسابك !',
3737
'DISABLE_SUCCESSFUL' => 'حساب المستخدم <strong>{{user_name}}</strong> عطيل بنجاح',
3838
'ENABLE_SUCCESSFUL' => 'حساب المستخدم <strong>{{user_name}}</strong> مكين بنجاح',
3939
'GROUP' => [
4040
1 => 'مجموعة',
4141
2 => 'مجموعات',
4242
'CREATE' => 'إنشاء مجموعة',
43-
// 'CREATION_SUCCESSFUL' => 'Successfully created group <strong>{{name}}</strong>',
43+
'CREATION_SUCCESSFUL' => 'بنجاح <strong>{{name}}</strong> تم إنشاء المجموعة ',
4444
'DELETE' => 'حذف مجموعة',
4545
'DELETE_CONFIRM' => 'هل أنت متأكد أنك تريد حذف مجموعة <strong>{{name}}</strong>?',
46-
// 'DELETE_DEFAULT' => 'You can\'t delete the group <strong>{{name}}</strong> because it is the default group for newly registered users.',
46+
'DELETE_DEFAULT' => 'لا يمكنك حذف المجموعة <strong> {{name}} </strong> لأنها المجموعة الافتراضية للمستخدمين المسجلين حديثًا.',
4747
'DELETE_YES' => 'نعم، إحذف مجموعة',
48-
// 'DELETION_SUCCESSFUL' => 'Successfully deleted group <strong>{{name}}</strong>',
48+
'DELETION_SUCCESSFUL' => 'تم حذف المجموعة <strong> {{name}} </strong> بنجاح',
4949
'EDIT' => 'تعديل مجموعة',
5050
'ICON' => 'رمز المجموعة',
5151
'ICON_EXPLAIN' => 'رمز المستخدمين في المجموعه',
5252
'INFO_PAGE' => 'صفحة معلومات المجموعة ل {{name}}',
53-
// 'MANAGE' => 'Manage group',
53+
'MANAGE' => 'إدارة المجموعة',
5454
'NAME' => 'أسم المجموعة',
5555
'NAME_EXPLAIN' => 'ادخال اسم للمجموعة',
56-
// 'NOT_EMPTY' => 'You can\'t do that because there are still users associated with the group <strong>{{name}}</strong>.',
56+
'NOT_EMPTY' => 'لا يمكنك فعل ذلك لأنه لا يزال هناك مستخدمون مرتبطون بالمجموعة <strong> {{name}} </strong>.',
5757
'PAGE_DESCRIPTION' => 'قائمة المجموعات لموقعك يوفر أدوات لإدارة التحرير وحذف مجموعات',
58-
// 'SUMMARY' => 'Group Summary',
59-
// 'UPDATE' => 'Details updated for group <strong>{{name}}</strong>',
58+
'SUMMARY' => 'ملخص المجموعة',
59+
'UPDATE' => 'تم تحديث التفاصيل للمجموعة <strong> {{name}} </strong>',
6060
],
6161
'MANUALLY_ACTIVATED' => 'تم تفعيل حساب{{user_name}}',
6262
'MASTER_ACCOUNT_EXISTS' => 'الحساب الرئيسي موجود بالفعل',
@@ -68,36 +68,36 @@
6868
2 => 'مأذونيات',
6969
'ASSIGN_NEW' => 'تعيين إذن جديد',
7070
'HOOK_CONDITION' => 'الظروف',
71-
// 'ID' => 'Permission ID',
72-
// 'INFO_PAGE' => 'Permission information page for \'{{name}}\'',
71+
'ID' => 'معرف إذن',
72+
'INFO_PAGE' => 'صفحة معلومات الأذونات لـ \'{{name}} \'',
7373
'MANAGE' => 'إدارة المأذونات',
74-
// 'NOTE_READ_ONLY' => '<strong>Please note:</strong> permissions are considered "part of the code" and cannot be modified through the interface. To add, remove, or modify permissions, the site maintainers will need to use a <a href="https://learn.userfrosting.com/database/extending-the-database" target="about:_blank">database migration.</a>',
74+
'NOTE_READ_ONLY' => '<strong> يرجى ملاحظة: </ strong> تعتبر أذونات "جزءًا من كود" ولا يمكن تعديلها من خلال الواجهة. لإضافة أذونات أو إزالتها أو تعديلها ، سيحتاج مشرفو الموقع إلى استخدام <a href="https://learn.userfrosting.com/database/extending-the-database" target="about:_blank">database migration.</a>',
7575
'PAGE_DESCRIPTION' => 'قائمة المأذونات لموقعك',
76-
// 'SUMMARY' => 'Permission Summary',
76+
'SUMMARY' => 'ملخص إذن',
7777
'UPDATE' => 'تحديث المأذونات',
78-
// 'VIA_ROLES' => 'Has permission via roles',
78+
'VIA_ROLES' => 'لديه إذن عبر الأدوار',
7979
],
8080
'ROLE' => [
8181
1 => 'وظيفة',
8282
2 => 'وظائف',
8383
'ASSIGN_NEW' => 'تعيين دور جديد',
8484
'CREATE' => 'إنشاء دور',
85-
// 'CREATION_SUCCESSFUL' => 'Successfully created role <strong>{{name}}</strong>',
85+
'CREATION_SUCCESSFUL' => 'تم إنشاء الدور <strong> {{name}} </strong> بنجاح',
8686
'DELETE' => 'حذف دور',
8787
'DELETE_CONFIRM' => 'هل أنت متأكد أنك تريد حذف الدور <strong>{{name}}</strong>?',
88-
// 'DELETE_DEFAULT' => 'You can\'t delete the role <strong>{{name}}</strong> because it is a default role for newly registered users.',
88+
'DELETE_DEFAULT' => 'لا يمكنك حذف الدور <strong> {{name}} </strong> لأنه دور افتراضي للمستخدمين المسجلين حديثًا.',
8989
'DELETE_YES' => 'نعم، حذف دور',
90-
// 'DELETION_SUCCESSFUL' => 'Successfully deleted role <strong>{{name}}</strong>',
90+
'DELETION_SUCCESSFUL' => 'تم حذف الدور <strong> {{name}} </strong> بنجاح',
9191
'EDIT' => 'إدارة دور',
92-
// 'HAS_USERS' => 'You can\'t do that because there are still users who have the role <strong>{{name}}</strong>.',
92+
'HAS_USERS' => 'لا يمكنك فعل ذلك لأنه لا يزال هناك مستخدمون لديهم الدور <strong> {{name}} </strong>.',
9393
'INFO_PAGE' => 'صفحة معلومات دور {{name}}',
9494
'MANAGE' => 'إدارة الوظائف',
9595
'NAME' => 'اسم',
9696
'NAME_EXPLAIN' => 'أدخل اسما للدور',
97-
// 'NAME_IN_USE' => 'A role named <strong>{{name}}</strong> already exist',
97+
'NAME_IN_USE' => 'يوجد دور يسمى <strong> {{name}} </strong> ',
9898
'PAGE_DESCRIPTION' => 'قائمة الوظائف لموقعك',
99-
// 'PERMISSIONS_UPDATED' => 'Permissions updated for role <strong>{{name}}</strong>',
100-
// 'SUMMARY' => 'Role Summary',
99+
'PERMISSIONS_UPDATED' => 'تم تحديث الأذونات للدور <strong> {{name}} </strong>',
100+
'SUMMARY' => 'ملخص الدور',
101101
'UPDATED' => 'تحديث الوظائف',
102102
],
103103
'SYSTEM_INFO' => [
@@ -111,7 +111,7 @@
111111
'UF_VERSION' => 'إصدار UserFrosting',
112112
'URL' => 'رابط قاعدة الموقع',
113113
],
114-
// 'TOGGLE_COLUMNS' => 'Toggle columns',
114+
'TOGGLE_COLUMNS' => 'تبديل الأعمدة',
115115
'USER' => [
116116
1 => 'مستخدم',
117117
2 => 'المستخدمين',
@@ -122,20 +122,20 @@
122122
],
123123
'ACTIVATE' => 'تفعيل المستخدم',
124124
'CREATE' => 'إنشاء مستخدم',
125-
// 'CREATED' => 'User <strong>{{user_name}}</strong> has been successfully created',
125+
'CREATED' => 'تم إنشاء المستخدم <strong> {{user_name}} </strong> بنجاح',
126126
'DELETE' => 'مسح المستخدم',
127127
'DELETE_CONFIRM' => 'هل أنت متأكد أنك تريد حذف المستخدم <strong>{{name}}</strong>?',
128128
'DELETE_YES' => 'نعم، حذف المستخدم',
129-
// 'DELETED' => 'User deleted',
129+
'DELETED' => 'تم حذف المستخدم',
130130
'DISABLE' => 'تعطيل المستخدم ',
131131
'EDIT' => 'إدارة المستخدم',
132132
'ENABLE' => 'تمكين المستخدم',
133133
'INFO_PAGE' => 'صفحة معلومات المستخدم {{name}}',
134134
'LATEST' => 'أحدث المستخدمين',
135135
'PAGE_DESCRIPTION' => 'قائمة المستخدمين لموقعك',
136-
// 'SUMMARY' => 'Account Summary',
136+
'SUMMARY' => 'ملخص الحساب',
137137
'VIEW_ALL' => 'عرض جميع المستخدمين',
138-
// 'WITH_PERMISSION' => 'Users with this permission',
138+
'WITH_PERMISSION' => 'المستخدمين ب هذا الإذن',
139139
],
140140
'X_USER' => [
141141
0 => 'لا يوجد اي مستخدمين',

app/sprinkles/admin/schema/requests/user/create.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ passwordc:
9090
message: VALIDATE.REQUIRED
9191
matches:
9292
domain: client
93-
field: value
93+
field: password
9494
label: "&PASSWORD.CONFIRM"
9595
message: VALIDATE.PASSWORD_MISMATCH
9696
length:

app/sprinkles/admin/src/Controller/UserController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function create(Request $request, Response $response, $args)
167167
$passwordRequest = $this->ci->repoPasswordReset->create($user, $config['password_reset.timeouts.create']);
168168

169169
// If the password_mode is manual, do not send an email to set it. Else, send the email.
170-
if (!isset($data['value'])) {
170+
if ($data['password'] === '') {
171171
// Create and send welcome email with password set link
172172
$message = new TwigMailMessage($this->ci->view, 'mail/password-create.html.twig');
173173

@@ -786,8 +786,8 @@ public function getModalEditPassword(Request $request, Response $response, $args
786786

787787
// Load validation rules
788788
$schema = new RequestSchema('schema://requests/user/edit-password.yaml');
789-
$schema->set('value.validators.length.min', $config['site.password.length.min']);
790-
$schema->set('value.validators.length.max', $config['site.password.length.max']);
789+
$schema->set('password.validators.length.min', $config['site.password.length.min']);
790+
$schema->set('password.validators.length.max', $config['site.password.length.max']);
791791
$schema->set('passwordc.validators.length.min', $config['site.password.length.min']);
792792
$schema->set('passwordc.validators.length.max', $config['site.password.length.max']);
793793
$validator = new JqueryValidationAdapter($schema, $this->ci->translator);

app/sprinkles/core/locale/ar/messages.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
],
4444
'NAME' => 'اسم',
4545
'NAVIGATION' => 'التنقل',
46-
// 'NO_RESULTS' => 'Sorry, we\'ve got nothing here.',
46+
'NO_RESULTS' => 'آسف ، ليس لدينا شيء هنا.',
4747
'PAGINATION' => [
4848
'GOTO' => 'انتقال إلى الصفحة',
4949
'SHOW' => 'عرض',
50-
// 'OUTPUT' => '{startRow} to {endRow} of {filteredRows} ({totalRows})',
50+
'OUTPUT' => '{startRow} إلى {endRow} من {filteredRows} ({totalRows})',
5151
'NEXT' => 'الصفحة التالية',
5252
'PREVIOUS' => 'الصفحة السابقة',
5353
'FIRST' => 'الصفحة الأولى',
@@ -57,11 +57,11 @@
5757
'@TRANSLATION' => 'سياسة الخصوصية',
5858
'DESCRIPTION' => 'تحدد سياسة الخصوصية لدينا نوع المعلومات التي نجمعها منك وكيفية استخدامها.',
5959
],
60-
// 'SLUG' => 'Slug',
61-
'SLUG_CONDITION' => 'Slug/الظروف',
62-
// 'SLUG_IN_USE' => 'A <strong>{{slug}}</strong> slug already exists',
60+
'SLUG' => '\'سبيكة\'',
61+
'SLUG_CONDITION' => 'سبيكة\'الظروف\'',
62+
'SLUG_IN_USE' => 'يوجد <strong> {{slug}} </strong> سبيكة',
6363
'STATUS' => 'الحالة',
64-
// 'SUGGEST' => 'Suggest',
64+
'SUGGEST' => 'اقترح',
6565
'UNKNOWN' => 'غير معروف',
6666
'ACTIONS' => 'الأفعال',
6767
'ACTIVATE' => 'تفعيل',

app/sprinkles/core/locale/ar/validate.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
'INTEGER' => 'القيم ل <strong>{{label}}</strong> يجب أن يكون رقم',
2121
'INVALID_EMAIL' => 'عنوان البريد الإلكتروني غير صالح',
2222
'LENGTH_RANGE' => '{{label}} لابد ان تكون بين {{min}} و {{max}} حورف',
23-
// 'MAX_LENGTH' => '{{label}} must be maximum {{max}} characters in length.',
24-
// 'MIN_LENGTH' => '{{label}} must be minimum {{min}} characters in length.',
23+
'MAX_LENGTH' => '{{label}} يجب أن يكون طول {{max}} الحد الأقصى .',
24+
'MIN_LENGTH' => '{{label}} يجب أن يكون الحد الأدنى {{min}} من الأحرف في الطول.',
2525
'NO_LEAD_WS' => 'القيم ل <strong>{{label}}</strong> لا يمكن أن تبدأ المساحات، علامات، أو بيضاء أخرى',
2626
'NO_TRAIL_WS' => 'القيم ل <strong>{{label}}</strong> لا يمكن أن ينتهي مع مسافات، علامات، أو بيضاء أخرى',
27-
// 'RANGE' => 'The value for <strong>{{label}}</strong> must be between {{min}} and {{max}}.',
27+
'RANGE' => 'يجب أن تكون قيمة <strong> {{label}} </strong> بين {{min}} و {{max}}.',
2828
'REQUIRED' => ' تحديد قيمة ل <strong>{{label}}</strong>',
2929
'SPRUNJE' => [
30-
// 'BAD_FILTER' => '<strong>{{name}}</strong> is not a valid filter for this Sprunje.',
31-
// 'BAD_LIST' => '<strong>{{name}}</strong> is not a valid list for this Sprunje.',
32-
// 'BAD_SORT' => '<strong>{{name}}</strong> is not a valid sort field for this Sprunje.',
30+
'BAD_FILTER' => '<strong> {{name}} </strong> ليس مرشحًا صالحًا لهذا Sprunje.',
31+
'BAD_LIST' => '<strong> {{name}} </strong> ليست قائمة صالحة لهذا Sprunje.',
32+
'BAD_SORT' => '<strong> {{name}} </strong> ليس حقل فرز صالحًا لهذا Sprunje.',
3333
],
3434
],
3535
];

0 commit comments

Comments
 (0)