diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 1de0630..c978779 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -259,15 +259,15 @@ if ($use_auth) { if(function_exists('password_verify')) { if (isset($auth_users[$_POST['fm_usr']]) && isset($_POST['fm_pwd']) && password_verify($_POST['fm_pwd'], $auth_users[$_POST['fm_usr']])) { $_SESSION[FM_SESSION_ID]['logged'] = $_POST['fm_usr']; - fm_set_msg('You are logged in'); + fm_set_msg(lng('You are logged in')); fm_redirect(FM_SELF_URL . '?p='); } else { unset($_SESSION[FM_SESSION_ID]['logged']); - fm_set_msg('Login failed. Invalid username or password', 'error'); + fm_set_msg(lng('Login failed. Invalid username or password'), 'error'); fm_redirect(FM_SELF_URL); } } else { - fm_set_msg('password_hash not supported, Upgrade PHP version', 'error');; + fm_set_msg(lng('password_hash not supported, Upgrade PHP version'), 'error');; } } else { // Form @@ -593,7 +593,7 @@ if (isset($_GET['new']) && isset($_GET['type']) && !FM_READONLY) { if (!file_exists($path . '/' . $new)) { if(fm_is_valid_ext($new)) { @fopen($path . '/' . $new, 'w') or die('Cannot open file: ' . $new); - fm_set_msg(sprintf('File %s created', fm_enc($new))); + fm_set_msg(sprintf(lng('File').' %s '.lng('Created'), fm_enc($new))); } else { fm_set_msg('File extension is not allowed', 'error'); } @@ -602,7 +602,7 @@ if (isset($_GET['new']) && isset($_GET['type']) && !FM_READONLY) { } } else { if (fm_mkdir($path . '/' . $new, false) === true) { - fm_set_msg(sprintf('Folder %s created', $new)); + fm_set_msg(sprintf(lng('Folder').' %s '.lng('Created'), $new)); } elseif (fm_mkdir($path . '/' . $new, false) === $path . '/' . $new) { fm_set_msg(sprintf('Folder %s already exists', fm_enc($new)), 'alert'); } else { @@ -1867,7 +1867,7 @@ $all_files_size = 0;