Merge pull request #14736 from snipe/fixes/small_translation_additions

Fixes/small translation additions
This commit is contained in:
snipe 2024-05-20 11:21:47 +01:00 committed by GitHub
commit a820f248c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 5 deletions

View file

@ -72,7 +72,7 @@ class ProfileController extends Controller
if ($user->save()) {
return redirect()->route('profile')->with('success', 'Account successfully updated');
return redirect()->route('profile')->with('success', trans('account.general.profile_updated'));
}
return redirect()->back()->withInput()->withErrors($user->getErrors());

View file

@ -9,4 +9,5 @@ return array(
'api_token_expiration_time' => 'API tokens are set to expire in:',
'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to
find specific API endpoints and additional API documentation.',
'profile_updated' => 'Account successfully updated',
);

View file

@ -2,9 +2,10 @@
return array(
'actions' => 'Actions',
'action' => 'Action',
'by' => 'By',
'item' => 'Item',
'actions' => 'Actions',
'action' => 'Action',
'by' => 'By',
'item' => 'Item',
'no_matching_records' => 'No matching records found',
);

View file

@ -92,6 +92,9 @@
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
onLoadSuccess: function () {
$('[data-tooltip="true"]').tooltip(); // Needed to attach tooltips after ajax call
},
formatNoMatches: function () {
return '{{ trans('table.no_matching_records') }}';
}
});