Skip to content

Commit

Permalink
Merge pull request #14922 from snipe/fixes/incorrect_translation_path
Browse files Browse the repository at this point in the history
Fixed incorrect translation path
  • Loading branch information
snipe authored Jun 20, 2024
2 parents 6cbdbcb + 8f8a5c6 commit 2556c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function postIndex(ImageUploadRequest $request)


if ($user->save()) {
return redirect()->route('profile')->with('success', trans('account.general.profile_updated'));
return redirect()->route('profile')->with('success', trans('account/general.profile_updated'));
}

return redirect()->back()->withInput()->withErrors($user->getErrors());
Expand Down
6 changes: 2 additions & 4 deletions resources/lang/en-US/account/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

return array(
'personal_api_keys' => 'Personal API Keys',
'api_key_warning' => 'When generating an API token, be sure to copy it down immediately as they
will not be visible to you again.',
'api_key_warning' => 'When generating an API token, be sure to copy it down immediately as they will not be visible to you again.',
'api_base_url' => 'Your API base url is located at:',
'api_base_url_endpoint' => '/<endpoint>',
'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.',
'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',
);

0 comments on commit 2556c80

Please sign in to comment.