mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Update translation strings
This commit is contained in:
parent
54dec8d30d
commit
b45749af16
|
@ -21,6 +21,8 @@ class ReportTemplatesController extends Controller
|
||||||
'options' => $request->except(['_token', 'name']),
|
'options' => $request->except(['_token', 'name']),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
session()->flash('success', trans('admin/reports/message.create.success'));
|
||||||
|
|
||||||
return redirect()->route('report-templates.show', $report->id);
|
return redirect()->route('report-templates.show', $report->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,6 +71,8 @@ class ReportTemplatesController extends Controller
|
||||||
$reportTemplate->options = $request->except(['_token', 'name']);
|
$reportTemplate->options = $request->except(['_token', 'name']);
|
||||||
$reportTemplate->save();
|
$reportTemplate->save();
|
||||||
|
|
||||||
|
session()->flash('success', trans('admin/reports/message.update.success'));
|
||||||
|
|
||||||
return redirect()->route('report-templates.show', $reportTemplate->id);
|
return redirect()->route('report-templates.show', $reportTemplate->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,6 +90,6 @@ class ReportTemplatesController extends Controller
|
||||||
$reportTemplate->delete();
|
$reportTemplate->delete();
|
||||||
|
|
||||||
return redirect()->route('reports/custom')
|
return redirect()->route('reports/custom')
|
||||||
->with('success', trans('admin/reports/message.delete.delete_confirm'));
|
->with('success', trans('admin/reports/message.delete.success'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'error' => 'You must select at least ONE option.',
|
|
||||||
'no_report_permission' => 'Template does not exist or you do not have permission to view it.',
|
'no_report_permission' => 'Template does not exist or you do not have permission to view it.',
|
||||||
'about_templates' => 'About Saved Templates',
|
'about_templates' => 'About Saved Templates',
|
||||||
'saving_templates_description' => 'Select your options, then enter the name of your template in the box above and click the \'Save Template\' button. Use the dropdown to select a previously saved template.',
|
'saving_templates_description' => 'Select your options, then enter the name of your template in the box above and click the \'Save Template\' button. Use the dropdown to select a previously saved template.',
|
||||||
'create' => [
|
'create' => [
|
||||||
'success' => 'Template saved successfully',
|
'success' => 'Template saved successfully',
|
||||||
'needs_title' => 'Template title can not be blank.',
|
],
|
||||||
'duplicate' => 'Template title already exists. Please choose a different one.',
|
'update' => [
|
||||||
|
'success' => 'Template updated successfully',
|
||||||
],
|
],
|
||||||
'delete' => [
|
'delete' => [
|
||||||
'delete' => 'Are you sure you want to delete this report?',
|
'success' => 'Template deleted',
|
||||||
'delete_confirm' => 'Template deleted',
|
|
||||||
'no_delete_permission' => 'Template does not exist or you do not have permission to delete it.',
|
'no_delete_permission' => 'Template does not exist or you do not have permission to delete it.',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue