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

i18n: Add a few forgotten phrases

parent 37f7597e
No related branches found
No related tags found
No related merge requests found
...@@ -472,7 +472,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -472,7 +472,7 @@ class TicketsAjaxAPI extends AjaxController {
function _addcollaborator($ticket, $user=null, $form=null, $info=array()) { function _addcollaborator($ticket, $user=null, $form=null, $info=array()) {
$info += array( $info += array(
'title' => sprintf('Ticket #%s: Add a collaborator', $ticket->getNumber()), 'title' => sprintf(__('Ticket #%s: Add a collaborator'), $ticket->getNumber()),
'action' => sprintf('#tickets/%d/add-collaborator', $ticket->getId()), 'action' => sprintf('#tickets/%d/add-collaborator', $ticket->getId()),
'onselect' => sprintf('ajax.php/tickets/%d/add-collaborator/', $ticket->getId()), 'onselect' => sprintf('ajax.php/tickets/%d/add-collaborator/', $ticket->getId()),
); );
...@@ -539,7 +539,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -539,7 +539,7 @@ class TicketsAjaxAPI extends AjaxController {
$info = array( $info = array(
'title' => sprintf('Ticket #%s: %s', $ticket->getNumber(), 'title' => sprintf(__('Ticket #%s: %s'), $ticket->getNumber(),
Format::htmlchars($user->getName())) Format::htmlchars($user->getName()))
); );
...@@ -568,7 +568,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -568,7 +568,7 @@ class TicketsAjaxAPI extends AjaxController {
$forms = $user->getForms(); $forms = $user->getForms();
$info = array( $info = array(
'title' => sprintf('Ticket #%s: %s', $ticket->getNumber(), 'title' => sprintf(__('Ticket #%s: %s'), $ticket->getNumber(),
Format::htmlchars($user->getName())) Format::htmlchars($user->getName()))
); );
...@@ -591,7 +591,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -591,7 +591,7 @@ class TicketsAjaxAPI extends AjaxController {
$user = User::lookup($ticket->getOwnerId()); $user = User::lookup($ticket->getOwnerId());
$info = array( $info = array(
'title' => sprintf('Change user for ticket #%s', $ticket->getNumber()) 'title' => sprintf(__('Change user for ticket #%s'), $ticket->getNumber())
); );
return self::_userlookup($user, null, $info); return self::_userlookup($user, null, $info);
......
...@@ -383,13 +383,13 @@ class UsersAjaxAPI extends AjaxController { ...@@ -383,13 +383,13 @@ class UsersAjaxAPI extends AjaxController {
} elseif ($orgId) } elseif ($orgId)
$org = Organization::lookup($orgId); $org = Organization::lookup($orgId);
elseif ($org = $user->getOrganization()) { elseif ($org = $user->getOrganization()) {
$info['title'] = sprintf('%s — %s', $user->getName(), 'Organization'); $info['title'] = sprintf(__('%s — Organization'), $user->getName());
$info['action'] = $info['onselect'] = ''; $info['action'] = $info['onselect'] = '';
$tmpl = 'org.tmpl.php'; $tmpl = 'org.tmpl.php';
} }
if ($org && $user->getOrgId() && $org->getId() != $user->getOrgId()) if ($org && $user->getOrgId() && $org->getId() != $user->getOrgId())
$info['warning'] = 'Are you sure you want to change user\'s organization?'; $info['warning'] = __("Are you sure you want to change user's organization?");
$tmpl = $tmpl ?: 'org-lookup.tmpl.php'; $tmpl = $tmpl ?: 'org-lookup.tmpl.php';
......
...@@ -61,7 +61,7 @@ echo $config['overlimit_notice_active'] ? 'checked="checked"' : ''; ?>/> ...@@ -61,7 +61,7 @@ echo $config['overlimit_notice_active'] ? 'checked="checked"' : ''; ?>/>
</tbody> </tbody>
</table> </table>
<p style="padding-left:200px;"> <p style="padding-left:200px;">
<input class="button" type="submit" name="submit" value="Save Changes"> <input class="button" type="submit" name="submit" value="<?php echo __('Save Changes'); ?>">
<input class="button" type="reset" name="reset" value="Reset Changes"> <input class="button" type="reset" name="reset" value="<?php echo __('Reset Changes'); ?>">
</p> </p>
</form> </form>
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