diff --git a/controllers/Index.php b/controllers/Index.php index 2db0764881..2d9d7a348e 100644 --- a/controllers/Index.php +++ b/controllers/Index.php @@ -147,7 +147,7 @@ public function login() { $this->view->jsonSuccess([ 'success' => false, - 'error' => 'invalid username/password' + 'error' => \F3::get('lang_login_invalid_credentials'), ]); } diff --git a/public/lang/cs.ini b/public/lang/cs.ini index e3cc9764ad..70e201b90a 100644 --- a/public/lang/cs.ini +++ b/public/lang/cs.ini @@ -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 diff --git a/public/lang/en.ini b/public/lang/en.ini index 86e4e18709..e973196a08 100644 --- a/public/lang/en.ini +++ b/public/lang/en.ini @@ -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?