Skip to content

Commit

Permalink
i18n: allow translating invalid credentials error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Oct 4, 2017
1 parent b40e071 commit d63e16e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function login() {

$this->view->jsonSuccess([
'success' => false,
'error' => 'invalid username/password'
'error' => \F3::get('lang_login_invalid_credentials'),
]);
}

Expand Down
1 change: 1 addition & 0 deletions public/lang/cs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ lang_more=více
lang_login=přihlásit
lang_login_username=jméno
lang_login_password=heslo
lang_login_invalid_credentials=špatné jméno nebo heslo
lang_no_title=Bez titulku
lang_error=nastala chyba
1 change: 1 addition & 0 deletions public/lang/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ lang_more=more
lang_login=login
lang_login_username=username
lang_login_password=password
lang_login_invalid_credentials=invalid username/password
lang_no_title=no title
lang_error=an error occured
lang_streamerror=No items loaded, reload?

0 comments on commit d63e16e

Please sign in to comment.