Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
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
Hide 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):
m
=
s
.
get_running_or_stopped
()
if
n
>
0
:
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
:
messages
.
error
(
request
,
ungettext_lazy
(
'There is a suspended machines of this share.'
,
'There are
%
d suspended machines of this share.'
,
m
)
%
m
)
messages
.
error
(
request
,
ungettext_lazy
(
'There is a suspended machine of this share.'
,
'There are
%(m)
d suspended machines of this share.'
,
m
)
%
{
'm'
:
m
})
else
:
s
.
delete
()
messages
.
success
(
request
,
_
(
'Share is successfully removed.'
))
except
:
except
Exception
as
e
:
print
e
messages
.
error
(
request
,
_
(
'Failed to remove share.'
))
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