translation and text fix

This commit is contained in:
Arvind Tiwari 2017-09-19 01:08:27 +05:30
parent 78423c83e3
commit 3ef07758ef
3 changed files with 9 additions and 9 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-18 23:16+0530\n" "POT-Creation-Date: 2017-09-19 01:04+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -575,10 +575,10 @@ msgstr "Bist Du sicher, dass Du Deine virtuelle Maschine beenden willst"
msgid "OK" msgid "OK"
msgstr "" msgstr ""
msgid "Your Virtual Machine" msgid "Your virtual machine"
msgstr "Deine Maschinen Detail" msgstr "Deine Virtuelle Machine (VM)"
msgid "was successfully terminated!" msgid "is successfully terminated!"
msgstr "wurde erfolgreich beendet!" msgstr "wurde erfolgreich beendet!"
msgid "Close" msgid "Close"
@ -651,12 +651,12 @@ msgid ""
"contact Data Center Light Support." "contact Data Center Light Support."
msgstr "Kontaktiere den Data Center Light Support." msgstr "Kontaktiere den Data Center Light Support."
msgid "Error terminating VM"
msgstr "Fehler beenden VM"
msgid "Terminated" msgid "Terminated"
msgstr "Beendet" msgstr "Beendet"
msgid "Error terminating VM"
msgstr "Fehler beenden VM"
msgid "Virtual Machine Cancellation" msgid "Virtual Machine Cancellation"
msgstr "VM Kündigung" msgstr "VM Kündigung"

View file

@ -124,7 +124,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="modal-icon"><i class="fa fa-check" aria-hidden="true"></i></div> <div class="modal-icon"><i class="fa fa-check" aria-hidden="true"></i></div>
<h4 class="modal-title" id="ModalLabel">{% trans "Your Virtual Machine" %} {{vm.id}} {% trans "was successfully terminated!" %}</h4> <h4 class="modal-title" id="ModalLabel">{% trans "Your Virtual Machine" %} {{vm.id}} {% trans "is successfully terminated!" %}</h4>
<div class="modal-text"> <div class="modal-text">
<p><strong>{{virtual_machine.name}}</strong></p> <p><strong>{{virtual_machine.name}}</strong></p>
</div> </div>

View file

@ -929,7 +929,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
pass pass
storage.used = True storage.used = True
return HttpResponse( return HttpResponse(
json.dumps({'redirect': self.get_success_url()}), json.dumps({'text': ugettext('Terminated')}),
content_type="application/json" content_type="application/json"
) )
else: else: