Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
1dce0947
Commit
1dce0947
authored
10 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
i18n: De-duplicate a few strings
parent
37d40efd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/ajax.tickets.php
+9
-7
9 additions, 7 deletions
include/ajax.tickets.php
with
9 additions
and
7 deletions
include/ajax.tickets.php
+
9
−
7
View file @
1dce0947
...
...
@@ -903,19 +903,19 @@ class TicketsAjaxAPI extends AjaxController {
case
'open'
:
if
(
!
$thisstaff
->
canCloseTickets
()
&&
!
$thisstaff
->
canCreateTickets
())
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission
to
%s.'
),
__
(
'reopen tickets'
));
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission %s.'
),
__
(
'
to
reopen tickets'
));
break
;
case
'resolved'
:
case
'closed'
:
if
(
!
$thisstaff
->
canCloseTickets
())
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission
to
%s.'
),
__
(
'resolve/close tickets'
));
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission %s.'
),
__
(
'
to
resolve/close tickets'
));
break
;
case
'deleted'
:
if
(
!
$thisstaff
->
canDeleteTickets
())
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission
to
%s.'
),
__
(
'archive/delete tickets'
));
$errors
[
'err'
]
=
sprintf
(
__
(
'You do not have permission %s.'
),
__
(
'
to
archive/delete tickets'
));
break
;
default
:
$errors
[
'err'
]
=
sprintf
(
'%s %s'
,
...
...
@@ -942,7 +942,9 @@ class TicketsAjaxAPI extends AjaxController {
// Assume success
if
(
$i
==
$count
)
{
$_SESSION
[
'::sysmsgs'
][
'msg'
]
=
sprintf
(
__
(
'Successfully updated %s status to %s'
),
__
(
/* 1$ will be 'selected ticket(s)', 2$ is the new status */
'Successfully updated status of %1$s to %2$s'
),
_N
(
'selected ticket'
,
'selected tickets'
,
$count
),
$status
->
getName
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment