Skip to content
Snippets Groups Projects
Commit 0fb21051 authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: Make scp sign-in page translatable

parent d41f342a
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@ class TextDomain {
$this->path = $path;
}
static function configureForUser($user) {
static function configureForUser($user=false) {
if ($user && method_exists($user, 'getLanguage'))
$lang = $user->getLanguage();
else
......
......@@ -55,7 +55,7 @@
?>
<div id="header">
<a href="index.php" class="no-pjax" id="logo">osTicket &mdash; <?php echo __('Customer Support System'); ?></a>
<p id="info"><?php echo sprintf(__('Welcome, %s'), '<strong>'.$thisstaff->getFirstName().'</strong>.'); ?>
<p id="info"><?php echo sprintf(__('Welcome, %s.'), '<strong>'.$thisstaff->getFirstName().'</strong>'); ?>
<?php
if($thisstaff->isAdmin() && !defined('ADMINPAGE')) { ?>
| <a href="admin.php" class="no-pjax"><?php echo __('Admin Panel'); ?></a>
......
......@@ -16,6 +16,10 @@
require_once('../main.inc.php');
if(!defined('INCLUDE_DIR')) die('Fatal Error. Kwaheri!');
// Bootstrap gettext translations. Since no one is yet logged in, use the
// system or browser default
TextDomain::configureForUser();
require_once(INCLUDE_DIR.'class.staff.php');
require_once(INCLUDE_DIR.'class.csrf.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment