From 0cac35831af08d4fabf3d0f9c541ac84275ce71a Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Wed, 23 Aug 2017 19:22:59 +0530 Subject: [PATCH] code cleanup, translations fix --- hosting/locale/de/LC_MESSAGES/django.po | 18 +- .../hosting/virtual_machine_detail.html | 192 +----------------- 2 files changed, 4 insertions(+), 206 deletions(-) diff --git a/hosting/locale/de/LC_MESSAGES/django.po b/hosting/locale/de/LC_MESSAGES/django.po index 95963e34..7476b255 100644 --- a/hosting/locale/de/LC_MESSAGES/django.po +++ b/hosting/locale/de/LC_MESSAGES/django.po @@ -407,15 +407,11 @@ msgstr "Public SSH Key" msgid "Download" msgstr "" -#, fuzzy -#| msgid "Virtual Machines" msgid "Your Virtual Machine Detail" msgstr "Virtuelle Maschinen Detail" -#, fuzzy -#| msgid "Settings" msgid "VM Settings" -msgstr "Einstellungen" +msgstr "VM Einstellungen" msgid "Copied" msgstr "Kopiert" @@ -426,25 +422,17 @@ msgstr "Festplatte" msgid "Billing" msgstr "Abrechnungen" -#, fuzzy -#| msgid "Current pricing" msgid "Current Pricing" msgstr "Aktueller Preis" -#, fuzzy -#| msgid "CHF/Month" msgid "Month" -msgstr "CHF/Monat" +msgstr "Monat" -#, fuzzy -#| msgid "Invoice" msgid "See Invoice" msgstr "Rechnung" -#, fuzzy -#| msgid "Your SSH Keys" msgid "Your VM is" -msgstr "Deine SSH Keys" +msgstr "Deine VM ist" msgid "Pending" msgstr "In Vorbereitung" diff --git a/hosting/templates/hosting/virtual_machine_detail.html b/hosting/templates/hosting/virtual_machine_detail.html index dafb683a..ad8c3ae4 100644 --- a/hosting/templates/hosting/virtual_machine_detail.html +++ b/hosting/templates/hosting/virtual_machine_detail.html @@ -11,7 +11,7 @@ {% endif %}
-

{% trans "Your Virtual Machine Detail" %}

+

{% trans "Your Virtual Machine Detail" %}

{% trans "VM Settings" %}

@@ -106,194 +106,4 @@
-{% comment %} -
-
-
-
-
-

{{virtual_machine.name}}

-
- - -
- -
-
-
-
-

{{virtual_machine.hosting_company_name}}

- - {% if virtual_machine.ipv6 %} -
- - -
- {% else %} - -
- {% trans "Ip not assigned yet"%} - -
- - {% endif %} - -
- -
-
-
-
-
-
-
- - {% trans "Cores"%} - {{virtual_machine.cores}} -
-
-
-
- {% trans "Memory"%}
- {{virtual_machine.memory}} GB -
-
-
-
- - {% trans "Disk"%} - {{virtual_machine.disk_size|floatformat:2}} GB -
-
-
-
-
-
-
- {% trans "Configuration"%}: {{virtual_machine.configuration}} -
-
- - -
-
- -
-
-

{% trans "Current pricing"%}

- {{virtual_machine.price|floatformat}} CHF/month -
-
-
-
-
-
-
-

{% trans "Current status"%}

- -
- {% if virtual_machine.state == 'PENDING' %} - Pending - {% elif virtual_machine.state == 'ACTIVE' %} - Online - {% elif virtual_machine.state == 'FAILED'%} - Failed - {% endif %} -
-
-
- {% if not virtual_machine.status == 'canceled' %} -
-
-
-
- {% csrf_token %} -
- - - -
- -
-
-
- {% if messages %} -
- {% for message in messages %} - {{ message }} - {% endfor %} -
- {% endif %} -
- - - - -
- {% endif %} -
-
-
- -
-
-
- -
-
- -
-{% endcomment %} {%endblock%}