mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-03 19:57:57 +02:00
Box Plugins: Translates Updates. #9
This commit is contained in:
@@ -21,5 +21,6 @@
|
||||
'Snippet <i>:name</i> deleted' => 'Snippet <i>:name</i> deleted',
|
||||
'Your changes to the snippet <i>:name</i> have been saved.' => 'Your changes to the snippet <i>:name</i> have been saved.',
|
||||
'Delete snippet: :snippet' => 'Delete snippet: :snippet',
|
||||
'Required field' => 'Required field',
|
||||
)
|
||||
);
|
@@ -21,5 +21,6 @@
|
||||
'Snippet <i>:name</i> deleted' => 'Сниппет <i>:name</i> удален',
|
||||
'Your changes to the snippet <i>:name</i> have been saved.' => 'Ваши изменения к сниппету <i>:name</i> были сохранены.',
|
||||
'Delete snippet: :snippet' => 'Удалить сниппет: :snippet',
|
||||
'Required field' => 'Обязательное поле',
|
||||
)
|
||||
);
|
@@ -30,7 +30,7 @@
|
||||
|
||||
if (Security::check(Request::post('csrf'))) {
|
||||
|
||||
if (trim(Request::post('name')) == '') $errors['snippets_empty_name'] = __('This field should not be empty', 'snippets');
|
||||
if (trim(Request::post('name')) == '') $errors['snippets_empty_name'] = __('Required field', 'snippets');
|
||||
if (file_exists($snippets_path.Security::safeName(Request::post('name')).'.snippet.php')) $errors['snippets_exists'] = __('This snippet already exists', 'snippets');
|
||||
|
||||
if (count($errors) == 0) {
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
if (Security::check(Request::post('csrf'))) {
|
||||
|
||||
if (trim(Request::post('name')) == '') $errors['snippets_empty_name'] = __('This field should not be empty', 'snippets');
|
||||
if (trim(Request::post('name')) == '') $errors['snippets_empty_name'] = __('Required field', 'snippets');
|
||||
if ((file_exists($snippets_path.Security::safeName(Request::post('name')).'.snippet.php')) and (Security::safeName(Request::post('snippets_old_name')) !== Security::safeName(Request::post('name')))) $errors['snippets_exists'] = __('This snippet already exists', 'snippets');
|
||||
|
||||
// Save fields
|
||||
|
Reference in New Issue
Block a user