From 86cc9b7bcdfb02d064c59d7de2f31ec5cfd72a7c Mon Sep 17 00:00:00 2001 From: anees-abu-hamid Date: Sun, 12 Aug 2018 02:18:02 +0300 Subject: [PATCH 1/2] Add Arabic Translation --- messages/ar/messages.php | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 messages/ar/messages.php diff --git a/messages/ar/messages.php b/messages/ar/messages.php new file mode 100644 index 0000000..1072fc0 --- /dev/null +++ b/messages/ar/messages.php @@ -0,0 +1,7 @@ + 'يجب عليك ملء {min} من الحفول التالية {attributes} على الأقل', + ' or ' => ' أو ', +]; + From 5202f3aa9fbab27572c9fc025aaac2363e58cb51 Mon Sep 17 00:00:00 2001 From: anees-abu-hamid Date: Sun, 12 Aug 2018 03:22:46 +0300 Subject: [PATCH 2/2] Fixing validate custom-id issue --- AtLeastValidator.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/AtLeastValidator.php b/AtLeastValidator.php index 4e8ec47..65d15f8 100644 --- a/AtLeastValidator.php +++ b/AtLeastValidator.php @@ -137,7 +137,7 @@ public function clientValidateAttribute($model, $attribute, $view) '{attributes}' => implode(Yii::t('messages', ' or '), $attributesLabels), ]); - $form = strtolower($model->formName()); + $form = $model->formName(); return <<