Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Возвращает русские варианты ошибок
- * @param type $id
- * @return type
- */
- public static function returnRussianErrors($messages) {
- foreach($messages as $key=>$message)
- {
- $new_key = str_replace('_', ' ', $key);
- $messages[$key] = str_replace($new_key, '"'.__('validation.'.$key).'"', $message);
- }
- return $messages;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement