Added some translations

This commit is contained in:
PCoder 2017-09-04 22:27:59 +05:30
parent 8ac8b25d78
commit f84b95e385
3 changed files with 19 additions and 8 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-04 06:59+0000\n"
"POT-Creation-Date: 2017-09-04 16:54+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -602,6 +602,10 @@ msgstr "Deine neue VM %(vm_name)s bei Data Center Light"
msgid "Confirm Order"
msgstr "Bestellung Bestätigen"
msgid "In order to create a VM, you need to create/upload your SSH KEY first."
msgstr ""
"Um eine VM zu erstellen musst du zuerst einen SSH-Key erstellen / hochladen."
msgid ""
"We could not find the requested VM. Please "
"contact Data Center Light Support."
@ -610,6 +614,10 @@ msgstr "Kontaktiere den Data Center Light Support."
msgid "Virtual Machine Cancellation"
msgstr "VM Kündigung"
#, python-format
msgid "VM %(VM_ID)s terminated successfully"
msgstr "VM %(VM_ID)s erfolgreich beendet"
#~ msgid "Your SSH Keys"
#~ msgstr "Deine SSH Keys"

View file

@ -712,7 +712,8 @@ class OrdersHostingDetailView(PermissionRequiredMixin, LoginRequiredMixin,
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.')
)
return context
@ -780,7 +781,8 @@ class CreateVirtualMachinesView(LoginRequiredMixin, View):
if not UserHostingKey.objects.filter(user=self.request.user).exists():
messages.success(
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.')
)
return HttpResponseRedirect(reverse('hosting:ssh_keys'))
@ -910,7 +912,8 @@ class VirtualMachineView(LoginRequiredMixin, View):
messages.error(
request,
'VM %s terminated successfully' % (opennebula_vm_id)
_('VM %(VM_ID)s terminated successfully') % {
'VM_ID': opennebula_vm_id}
)
return HttpResponseRedirect(self.get_success_url())

View file

@ -769,16 +769,16 @@ msgid "Message"
msgstr "Nachricht"
msgid "The link to reset your email has been sent to your email"
msgstr "Der Link zum Zurücksetzen Ihrer E-Mail wurde an Ihre E-Mail gesendet"
msgstr "Der Link zum Zur?cksetzen deines Passwortes wurde an deine E-Mail gesendet"
msgid "Password Reset"
msgstr ""
msgid "Password has been reset."
msgstr ""
msgstr "Das Passwort wurde zur?ckgesetzt."
msgid "Password reset has not been successful."
msgstr ""
msgstr "Das Zur?cksetzen war nicht erfolgreich."
msgid "The reset password link is no longer valid."
msgstr ""
msgstr "Der Link zum Zur?cksetzen deines Passwortes ist nicht l?nger g?ltig."