error msgs translation
This commit is contained in:
parent
6be245a811
commit
be0c50aa2f
2 changed files with 22 additions and 16 deletions
|
|
@ -679,15 +679,16 @@ class OrdersHostingDetailView(LoginRequiredMixin,
|
|||
except WrongIdError:
|
||||
messages.error(
|
||||
self.request,
|
||||
'The VM you are looking for is unavailable at the moment. \
|
||||
Please contact Data Center Light support.'
|
||||
_('The VM you are looking for is unavailable at the '
|
||||
'moment. Please contact Data Center Light support.')
|
||||
)
|
||||
self.kwargs['error'] = 'WrongIdError'
|
||||
context['error'] = 'WrongIdError'
|
||||
except ConnectionRefusedError:
|
||||
messages.error(
|
||||
self.request,
|
||||
'In order to create a VM, you need to create/upload your SSH KEY first.'
|
||||
_('In order to create a VM, you need to create/upload '
|
||||
'your SSH KEY first.')
|
||||
)
|
||||
elif not card_details.get('response_object'):
|
||||
# new order, failed to get card details
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue