Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a0ffb7d
authored
Apr 04, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: Fixed typo and plural translation variables.
parent
1c08253a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
one/views.py
+7
-4
No files found.
one/views.py
View file @
2a0ffb7d
...
@@ -491,14 +491,17 @@ def vm_unshare(request, id, *args, **kwargs):
...
@@ -491,14 +491,17 @@ def vm_unshare(request, id, *args, **kwargs):
m
=
s
.
get_running_or_stopped
()
m
=
s
.
get_running_or_stopped
()
if
n
>
0
:
if
n
>
0
:
messages
.
error
(
request
,
ungettext_lazy
(
'There is a machine running of this share.'
,
messages
.
error
(
request
,
ungettext_lazy
(
'There is a machine running of this share.'
,
'There are
%
d machines running of this share.'
,
n
)
%
n
)
'There are
%(n)
d machines running of this share.'
,
n
)
%
{
'n'
:
n
})
elif
m
>
0
:
elif
m
>
0
:
messages
.
error
(
request
,
ungettext_lazy
(
'There is a suspended machines of this share.'
,
messages
.
error
(
request
,
ungettext_lazy
(
'There is a suspended machine of this share.'
,
'There are
%
d suspended machines of this share.'
,
m
)
%
m
)
'There are
%(m)
d suspended machines of this share.'
,
m
)
%
{
'm'
:
m
})
else
:
else
:
s
.
delete
()
s
.
delete
()
messages
.
success
(
request
,
_
(
'Share is successfully removed.'
))
messages
.
success
(
request
,
_
(
'Share is successfully removed.'
))
except
:
except
Exception
as
e
:
print
e
messages
.
error
(
request
,
_
(
'Failed to remove share.'
))
messages
.
error
(
request
,
_
(
'Failed to remove share.'
))
return
redirect
(
g
)
return
redirect
(
g
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment