diff --git a/include/class.nav.php b/include/class.nav.php index d07fd22a462702c4fce8a408da2cd78256848a2f..4a17cf701c4dd72328b84c05d2caaf3d34c21184 100644 --- a/include/class.nav.php +++ b/include/class.nav.php @@ -142,8 +142,8 @@ class StaffNav { $subnav[]=array('desc'=>__('My Profile'),'href'=>'profile.php','iconclass'=>'users'); break; case 'users': - $subnav[] = array('desc' => 'User Directory', 'href' => 'users.php', 'iconclass' => 'teams'); - $subnav[] = array('desc' => 'Organizations', 'href' => 'orgs.php', 'iconclass' => 'departments'); + $subnav[] = array('desc' => __('User Directory'), 'href' => 'users.php', 'iconclass' => 'teams'); + $subnav[] = array('desc' => __('Organizations'), 'href' => 'orgs.php', 'iconclass' => 'departments'); break; case 'kbase': $subnav[]=array('desc'=>__('FAQs'),'href'=>'kb.php', 'urls'=>array('faq.php'), 'iconclass'=>'kb'); diff --git a/scp/attachment.php b/scp/attachment.php index 5b2e043037ed747b35507cd77ff426c7855bf9c4..113316002daa09c24331e82823a360e7f2ff4a6e 100644 --- a/scp/attachment.php +++ b/scp/attachment.php @@ -20,7 +20,7 @@ require_once(INCLUDE_DIR.'class.attachment.php'); if(!$thisstaff || !$_GET['id'] || !$_GET['h'] || !($attachment=Attachment::lookup($_GET['id'])) || !($file=$attachment->getFile())) - die(__('Unknown or invalid attachment')); + Http::response(404, __('Unknown or invalid attachment')); //Validate session access hash - we want to make sure the link is FRESH! and the user has access to the parent ticket!! $vhash=md5($attachment->getFileId().session_id().strtolower($file->getKey())); diff --git a/scp/departments.php b/scp/departments.php index 9bb773cb2cb8a63e2eb0e276a0460ed93bee48f2..ef9d4a1109fb7493fdc57f1fe7bec86dd06b9247 100644 --- a/scp/departments.php +++ b/scp/departments.php @@ -42,7 +42,7 @@ if($_POST){ if(!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = __('You must select at least one department'); }elseif(in_array($cfg->getDefaultDeptId(),$_POST['ids'])) { - $errors['err'] = __('You can not disable/delete a default department. Remove default Dept. and try again.'); + $errors['err'] = __('You can not disable/delete a default department. Select a new default department and try again.'); }else{ $count=count($_POST['ids']); switch(strtolower($_POST['a'])) { diff --git a/scp/groups.php b/scp/groups.php index a5fe2db1bf4497bfee574b23ad484f5cfd197abf..e0d2d06f07229a793205ed87e296a83c8f0b4e56 100644 --- a/scp/groups.php +++ b/scp/groups.php @@ -42,7 +42,7 @@ if($_POST){ if(!$_POST['ids'] || !is_array($_POST['ids']) || !count($_POST['ids'])) { $errors['err'] = __('You must select at least one group.'); } elseif(in_array($thisstaff->getGroupId(), $_POST['ids'])) { - $errors['err'] = __("As an admin, you can't disable/delete a group you belong to - you might lockout all admins!"); + $errors['err'] = __("As an admin, you cannot disable/delete a group you belong to - you might lockout all admins!"); } else { $count=count($_POST['ids']); switch(strtolower($_POST['a'])) { diff --git a/scp/helptopics.php b/scp/helptopics.php index 8c41c1047136fa5d46e3ebac981cfd9fa6e0c8a7..d838d6124a253005934d53b9871760def1780e50 100644 --- a/scp/helptopics.php +++ b/scp/helptopics.php @@ -105,10 +105,10 @@ if($_POST){ $t->setSortOrder($v); } } - $msg = 'Successfully set sorting configuration'; + $msg = __('Successfully set sorting configuration'); } catch (Exception $ex) { - $errors['err'] = 'Unable to set sorting mode'; + $errors['err'] = __('Unable to set sorting mode'); } break; default: diff --git a/scp/templates.php b/scp/templates.php index 9f31365863ba09ca43c395b5e73f00b6708a855e..d86de56146a0026d0ed06870148f39b0bc29e959 100644 --- a/scp/templates.php +++ b/scp/templates.php @@ -103,9 +103,9 @@ if($_POST){ if($i && $i==$count) $msg = __('Selected templates disabled'); elseif($i) - $warn = sprintf(__('%1$d of %2$d selected templates disabled (in-use templates can\'t be disabled)'), $i, $count); + $warn = sprintf(__('%1$d of %2$d selected template sets disabled (in-use templates cannot be disabled)'), $i, $count); else - $errors['err'] = __("Unable to disable selected templates (in-use or default template can't be disabled)"); + $errors['err'] = __("Unable to disable selected template sets (in-use or default template cannot be disabled)"); break; case 'delete': $i=0; diff --git a/setup/cli/modules/i18n.php b/setup/cli/modules/i18n.php index 115e4a7d7371a2d6efee22a0c1d37b2ae32ecd1a..7f77d862228afed39a252973e225b202318ef171 100644 --- a/setup/cli/modules/i18n.php +++ b/setup/cli/modules/i18n.php @@ -148,7 +148,7 @@ class i18n_Compiler extends Module { list($code, $js) = $this->_http_get( 'http://imperavi.com/webdownload/redactor/lang/?lang=' .strtolower($lang)); - if ($code == 200) + if ($code == 200 && ($js != 'File not found')) $phar->addFromString('js/redactor.js', $js); else $this->stderr->write("Unable to fetch Redactor language file\n");