$admin->form_start('../login.php', 'cplogin', false, 'cplogin');
$admin->table_start(true, '425');
- $admin->table_head($bugsys->lang->string('Login to Bugdar'));
- $admin->row_input($bugsys->lang->string('Email'), 'email', $bugsys->userinfo['email'], 2, 35, false, false, 'middle');
- $admin->row_input($bugsys->lang->string('Password'), 'password', '', 2, 35, false, true, 'middle');
- $admin->row_submit('', $bugsys->lang->string('Login'));
+ $admin->table_head(_('Login to Bugdar'));
+ $admin->row_input(_('Email'), 'email', $bugsys->userinfo['email'], 2, 35, false, false, 'middle');
+ $admin->row_input(_('Password'), 'password', '', 2, 35, false, true, 'middle');
+ $admin->row_submit('', _('Login'));
$admin->table_end();
$admin->form_end();
if ($edit)
{
- $opt .= '<option value="product.php?do=edit' . $type . '&' . $type_action . '=' . $id . '">' . sprintf($bugsys->lang->string('Edit %1$s'), $type_display) . '</option>';
+ $opt .= '<option value="product.php?do=edit' . $type . '&' . $type_action . '=' . $id . '">' . sprintf(_('Edit %1$s'), $type_display) . '</option>';
}
if ($delete)
{
- $opt .= '<option value="product.php?do=delete' . $type . '&' . $type_action . '=' . $id . '">' . sprintf($bugsys->lang->string('Delete %1$s'), $type_display) . '</option>';
+ $opt .= '<option value="product.php?do=delete' . $type . '&' . $type_action . '=' . $id . '">' . sprintf(_('Delete %1$s'), $type_display) . '</option>';
}
if ($addcomponent)
{
- $opt .= '<option value="product.php?do=addproduct&productid=' . $id . '">' . $bugsys->lang->string('Add Component') . '</option>';
+ $opt .= '<option value="product.php?do=addproduct&productid=' . $id . '">' . _('Add Component') . '</option>';
}
if ($addversion)
{
- $opt .= '<option value="product.php?do=addversion&productid=' . $id . '">' . $bugsys->lang->string('Add Version') . '</option>';
+ $opt .= '<option value="product.php?do=addversion&productid=' . $id . '">' . _('Add Version') . '</option>';
}
$type = strtolower($type);
$displayorder = (($displayorder != -1) ? '<input type="text" name="displayorder[' . $name . ']" value="' . $displayorder . '" size="4" class="input" /> ' : '');
- return $displayorder . '<select id="' . $name . '" name="' . $name . '" onchange="exec_action(\'' . $name . '\')" class="input">' . $opt . '</select> <input type="button" class="button" name="gobutton" value=" ' . $bugsys->lang->string('Go') . ' " onclick="exec_action(\'' . $name . '\')" />';
+ return $displayorder . '<select id="' . $name . '" name="' . $name . '" onchange="exec_action(\'' . $name . '\')" class="input">' . $opt . '</select> <input type="button" class="button" name="gobutton" value=" ' . _('Go') . ' " onclick="exec_action(\'' . $name . '\')" />';
}
// ###################################################################
- Add checks to newreport.php and search.php to see if there are products or versions, if there aren't, then throw a message about needing them to be setup
- Process custom field data on newreport.php
- Add regex matching check to process_custom_fields()
+- Missed some string conversions to gettext
1.1.0 Beta 2
===============================
{
global $bugsys;
- $this->error($bugsys->lang->string('You do not have permission to access this page. If you think that this is an error, please contact an administrator.'));
+ $this->error(_('You do not have permission to access this page. If you think that this is an error, please contact an administrator.'));
}
/**
if (!$userinfo['userid'])
{
- $userinfo['displayname'] = $bugsys->lang->string('Guest');
+ $userinfo['displayname'] = _('Guest');
$userinfo['showemail'] = false;
}
{
if ($userinfo['showemail'])
{
- $username = sprintf($bugsys->lang->string('%1$s <%2$s>'), $userinfo['displayname'], $userinfo['email']);
+ $username = sprintf(_('%1$s <%2$s>'), $userinfo['displayname'], $userinfo['email']);
}
else
{
if ($field['required'] AND empty($inputdata["field$field[fieldid]"]))
{
- $errorlist[] = sprintf($bugsys->lang->string('The "%1$s" field is a required field.'), $field['name']);
+ $errorlist[] = sprintf(_('The "%1$s" field is a required field.'), $field['name']);
continue;
}