From 63ea7dac370e7cb64d593cf705405ca026741162 Mon Sep 17 00:00:00 2001
From: Arvind Tiwari
Date: Tue, 26 Sep 2017 01:04:38 +0530
Subject: [PATCH 1/9] datacenterlight invoice redesigned
---
.../locale/de/LC_MESSAGES/django.po | 59 +++++-----
.../datacenterlight/css/landing-page.css | 2 +
.../templates/datacenterlight/index.html | 2 +-
.../datacenterlight/order_detail.html | 105 +-----------------
datacenterlight/views.py | 11 +-
hosting/templates/hosting/order_detail.html | 20 ++--
6 files changed, 52 insertions(+), 147 deletions(-)
diff --git a/datacenterlight/locale/de/LC_MESSAGES/django.po b/datacenterlight/locale/de/LC_MESSAGES/django.po
index 3c7869a1..c3a7b934 100644
--- a/datacenterlight/locale/de/LC_MESSAGES/django.po
+++ b/datacenterlight/locale/de/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-09-16 14:09+0000\n"
+"POT-Creation-Date: 2017-09-26 01:02+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -336,35 +336,6 @@ msgstr "Weiter"
msgid "Enter your credit card number"
msgstr "Deine Kreditkartennummer"
-msgid "Confirm Order"
-msgstr "Bestellung Bestätigen"
-
-msgid "Date"
-msgstr "Datum"
-
-msgid "Billed To:"
-msgstr "Rechnungsadresse"
-
-msgid "Payment Method:"
-msgstr "Bezahlmethode"
-
-msgid "ending in"
-msgstr "endend in"
-
-msgid "Order summary"
-msgstr "Bestellungsübersicht"
-
-#, python-format
-msgid ""
-"By clicking \"Place order\" this plan will charge your credit card account "
-"with the fee of %(vm_price)sCHF/month"
-msgstr ""
-"Wenn Du \"bestellen\" auswählst, wird Deine Kreditkarte mit %(vm_price)sCHF "
-"pro Monat belastet"
-
-msgid "Place order"
-msgstr "Bestellen"
-
msgid "We are cutting down the costs significantly!"
msgstr "Wir sorgen dafür, dass die Kosten für Dich signifikant abnehmen"
@@ -485,6 +456,34 @@ msgstr "ist kein gültiger Name"
msgid "is not a proper email"
msgstr "ist keine gültige E-Mailadresse"
+#~ msgid "Confirm Order"
+#~ msgstr "Bestellung Bestätigen"
+
+#~ msgid "Date"
+#~ msgstr "Datum"
+
+#~ msgid "Billed To:"
+#~ msgstr "Rechnungsadresse"
+
+#~ msgid "Payment Method:"
+#~ msgstr "Bezahlmethode"
+
+#~ msgid "ending in"
+#~ msgstr "endend in"
+
+#~ msgid "Order summary"
+#~ msgstr "Bestellungsübersicht"
+
+#~ msgid ""
+#~ "By clicking \"Place order\" this plan will charge your credit card "
+#~ "account with the fee of %(vm_price)sCHF/month"
+#~ msgstr ""
+#~ "Wenn Du \"bestellen\" auswählst, wird Deine Kreditkarte mit "
+#~ "%(vm_price)sCHF pro Monat belastet"
+
+#~ msgid "Place order"
+#~ msgstr "Bestellen"
+
#~ msgid ""
#~ "\n"
#~ "Hi,\n"
diff --git a/datacenterlight/static/datacenterlight/css/landing-page.css b/datacenterlight/static/datacenterlight/css/landing-page.css
index 6537dd0d..7c2fb564 100755
--- a/datacenterlight/static/datacenterlight/css/landing-page.css
+++ b/datacenterlight/static/datacenterlight/css/landing-page.css
@@ -1501,6 +1501,8 @@ tech-sub-sec h2 {
font-size: 14px;
font-weight: 300;
letter-spacing: 2px;
+ line-height: 24px;
+ display: block;
}
.content-section-a {
diff --git a/datacenterlight/templates/datacenterlight/index.html b/datacenterlight/templates/datacenterlight/index.html
index cde420dd..85e66571 100755
--- a/datacenterlight/templates/datacenterlight/index.html
+++ b/datacenterlight/templates/datacenterlight/index.html
@@ -16,7 +16,7 @@
{% endif %}
- {% trans "Invoice Date" %}:
+ {% trans "Date" %}:
{% if order %}
{{order.created_at|date:'Y-m-d H:i'}}
From 2dbaa1c69343719c0a1bc70aae07f510a8631afe Mon Sep 17 00:00:00 2001
From: Arvind Tiwari
Date: Tue, 26 Sep 2017 03:57:07 +0530
Subject: [PATCH 6/9] template name
---
hosting/templates/hosting/order_detail.html | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html
index f755cfdf..283eb7f4 100644
--- a/hosting/templates/hosting/order_detail.html
+++ b/hosting/templates/hosting/order_detail.html
@@ -94,7 +94,12 @@
{% trans "Order summary" %}
- {% trans "Product" %}: {{vm.name}}
+ {% trans "Product" %}:
+ {% if vm.name %}
+ {{ vm.name }}
+ {% else %}
+ {{ request.session.template.name }}
+ {% endif %}
From 4379cebbedcca380a9480a9005ee72e364d2fece Mon Sep 17 00:00:00 2001
From: Arvind Tiwari
Date: Thu, 28 Sep 2017 03:05:47 +0530
Subject: [PATCH 7/9] default 'card' translated
---
hosting/templates/hosting/order_detail.html | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html
index 283eb7f4..daf4117d 100644
--- a/hosting/templates/hosting/order_detail.html
+++ b/hosting/templates/hosting/order_detail.html
@@ -80,8 +80,7 @@
{{order.last4}}
{{user.email}}
{% else %}
- {{cc_brand|default:'Card'}} {% trans "ending in" %} ****
- {{cc_last4}}
+ {{cc_brand|default:_('Credit Card')}} {% trans "ending in" %} ****{{cc_last4}}
{% if request.user.is_authenticated %}
{{request.user.email}}
{% else %}
From f0a49ef07560939ddc648ee1d7205ad6b37b70a9 Mon Sep 17 00:00:00 2001
From: Arvind Tiwari
Date: Thu, 28 Sep 2017 03:12:03 +0530
Subject: [PATCH 8/9] translations
---
.../locale/de/LC_MESSAGES/django.po | 63 ++++++++++---------
hosting/locale/de/LC_MESSAGES/django.po | 45 ++++++-------
2 files changed, 56 insertions(+), 52 deletions(-)
diff --git a/datacenterlight/locale/de/LC_MESSAGES/django.po b/datacenterlight/locale/de/LC_MESSAGES/django.po
index c3a7b934..b60a5e67 100644
--- a/datacenterlight/locale/de/LC_MESSAGES/django.po
+++ b/datacenterlight/locale/de/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-09-26 01:02+0530\n"
+"POT-Creation-Date: 2017-09-28 03:07+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -336,26 +336,16 @@ msgstr "Weiter"
msgid "Enter your credit card number"
msgstr "Deine Kreditkartennummer"
-msgid "We are cutting down the costs significantly!"
-msgstr "Wir sorgen dafür, dass die Kosten für Dich signifikant abnehmen"
-
-msgid "Order Now!"
-msgstr "Bestelle jetzt!"
-
+#, python-format
msgid ""
-"Our VMs are hosted in Glarus, Switzerland, and our website is currently "
-"running in BETA mode. If you want more information that you did not find on "
-"our website, or if your order is more detailed, or if you encounter any "
-"technical hiccups, please contact us at support@datacenterlight.ch, our team "
-"will get in touch with you asap."
+"By clicking \"Place order\" this plan will charge your credit card account "
+"with the fee of %(vm_price)sCHF/month"
msgstr ""
-"Unsere VMs werden in der Schweiz im Kanton Glarus gehostet und befinden sich "
-"zur Zeit noch in der BETA-Phase. Möchtest du mehr über uns erfahren und hast "
-"auf unserer Website nicht genügend Informationen gefunden? Möchtest eine "
-"detailliertere Bestellung aufgeben? Bist du auf technische Probleme "
-"gestossen, die du uns mitteilen möchtest? Dann zögere nicht und kontaktiere "
-"uns unter support@datacenterlight.ch. Unser Team wird sich umgehend um dein "
-"Anliegen kümmern!"
+"Wenn Du \"bestellen\" auswählst, wird Deine Kreditkarte mit %(vm_price)sCHF "
+"pro Monat belastet"
+
+msgid "Place order"
+msgstr "Bestellen"
msgid "Thank you for order! Our team will contact you via email"
msgstr ""
@@ -456,8 +446,29 @@ msgstr "ist kein gültiger Name"
msgid "is not a proper email"
msgstr "ist keine gültige E-Mailadresse"
-#~ msgid "Confirm Order"
-#~ msgstr "Bestellung Bestätigen"
+msgid "Confirm Order"
+msgstr "Bestellung Bestätigen"
+
+#~ msgid "We are cutting down the costs significantly!"
+#~ msgstr "Wir sorgen dafür, dass die Kosten für Dich signifikant abnehmen"
+
+#~ msgid "Order Now!"
+#~ msgstr "Bestelle jetzt!"
+
+#~ msgid ""
+#~ "Our VMs are hosted in Glarus, Switzerland, and our website is currently "
+#~ "running in BETA mode. If you want more information that you did not find "
+#~ "on our website, or if your order is more detailed, or if you encounter "
+#~ "any technical hiccups, please contact us at support@datacenterlight.ch, "
+#~ "our team will get in touch with you asap."
+#~ msgstr ""
+#~ "Unsere VMs werden in der Schweiz im Kanton Glarus gehostet und befinden "
+#~ "sich zur Zeit noch in der BETA-Phase. Möchtest du mehr über uns erfahren "
+#~ "und hast auf unserer Website nicht genügend Informationen gefunden? "
+#~ "Möchtest eine detailliertere Bestellung aufgeben? Bist du auf technische "
+#~ "Probleme gestossen, die du uns mitteilen möchtest? Dann zögere nicht und "
+#~ "kontaktiere uns unter support@datacenterlight.ch. Unser Team wird sich "
+#~ "umgehend um dein Anliegen kümmern!"
#~ msgid "Date"
#~ msgstr "Datum"
@@ -474,16 +485,6 @@ msgstr "ist keine gültige E-Mailadresse"
#~ msgid "Order summary"
#~ msgstr "Bestellungsübersicht"
-#~ msgid ""
-#~ "By clicking \"Place order\" this plan will charge your credit card "
-#~ "account with the fee of %(vm_price)sCHF/month"
-#~ msgstr ""
-#~ "Wenn Du \"bestellen\" auswählst, wird Deine Kreditkarte mit "
-#~ "%(vm_price)sCHF pro Monat belastet"
-
-#~ msgid "Place order"
-#~ msgstr "Bestellen"
-
#~ msgid ""
#~ "\n"
#~ "Hi,\n"
diff --git a/hosting/locale/de/LC_MESSAGES/django.po b/hosting/locale/de/LC_MESSAGES/django.po
index 0cf50fd7..74391147 100644
--- a/hosting/locale/de/LC_MESSAGES/django.po
+++ b/hosting/locale/de/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-09-24 12:34+0000\n"
+"POT-Creation-Date: 2017-09-28 03:07+0530\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -331,12 +331,15 @@ msgstr "Alle Benachrichtigungen"
msgid "%(page_header_text)s"
msgstr ""
-msgid "Invoice Date"
-msgstr "Rechnung Datum"
+msgid "Date"
+msgstr "Datum"
msgid "Status"
msgstr ""
+msgid "Terminated"
+msgstr "Beendet"
+
msgid "Approved"
msgstr "Akzeptiert"
@@ -352,12 +355,18 @@ msgstr "Bezahlmethode"
msgid "ending in"
msgstr "endend in"
+msgid "Credit Card"
+msgstr "Kreditkarte"
+
msgid "Order summary"
msgstr "Bestellungsübersicht"
msgid "Product"
msgstr "Produkt"
+msgid "Period"
+msgstr "Periode"
+
msgid "Cores"
msgstr "Prozessorkerne"
@@ -390,15 +399,18 @@ msgstr "Abarbeitung..."
msgid "Hold tight, we are processing your request"
msgstr "Bitte warten - wir bearbeiten Deine Anfrage gerade"
+msgid "OK"
+msgstr ""
+
+msgid "Close"
+msgstr "Schliessen"
+
msgid "Some problem encountered. Please try again later."
msgstr "Ein Problem ist aufgetreten. Bitte versuche es später noch einmal."
msgid "Order Nr."
msgstr "Bestellung Nr."
-msgid "Date"
-msgstr "Datum"
-
msgid "Amount"
msgstr "Betrag"
@@ -423,9 +435,6 @@ msgstr "inkl. Mehrwertsteuer"
msgid "Billing Address"
msgstr "Rechnungsadresse"
-msgid "Credit Card"
-msgstr "Kreditkarte"
-
msgid ""
"\n"
" Please fill in your credit card information "
@@ -599,16 +608,13 @@ msgstr "Deine Virtuelle Maschine beenden"
msgid "Do you want to cancel your Virtual Machine"
msgstr "Bist Du sicher, dass Du Deine virtuelle Maschine beenden willst"
-msgid "OK"
-msgstr ""
-
#, python-format
msgid ""
"Your Virtual Machine %(machine_name)s is successfully "
"terminated!"
msgstr ""
-"Deine Virtuelle Machine (VM) %(machine_name)s wurde erfolgreich "
-"beendet!"
+"Deine Virtuelle Machine (VM) %(machine_name)s wurde "
+"erfolgreich beendet!"
msgid "Virtual Machines"
msgstr "Virtuelle Maschinen"
@@ -697,17 +703,14 @@ msgid ""
"contact Data Center Light Support."
msgstr "Kontaktiere den Data Center Light Support."
-msgid "Terminated"
-msgstr "Beendet"
-
msgid "Error terminating VM"
msgstr "Fehler beenden VM"
msgid "Virtual Machine Cancellation"
msgstr "VM Kündigung"
-#~ msgid "Close"
-#~ msgstr "Schliessen"
+#~ msgid "Invoice Date"
+#~ msgstr "Rechnung Datum"
#~ msgid "VM %(VM_ID)s terminated successfully"
#~ msgstr "VM %(VM_ID)s erfolgreich beendet"
@@ -842,5 +845,5 @@ msgstr "VM Kündigung"
#~ "Your SSH private key was already generated and downloaded, if you lost "
#~ "it, contact us. "
#~ msgstr ""
-#~ "Dein privater SSH Key wurde bereits generiert und heruntergeladen. "
-#~ "Falls Du ihn verloren hast, kontaktiere uns."
+#~ "Dein privater SSH Key wurde bereits generiert und heruntergeladen. Falls "
+#~ "Du ihn verloren hast, kontaktiere uns."
From abb7c38d75dc58cc8085d5b583adf139eaa2d697 Mon Sep 17 00:00:00 2001
From: Arvind Tiwari
Date: Thu, 28 Sep 2017 18:27:26 +0530
Subject: [PATCH 9/9] translation fix
---
.../locale/de/LC_MESSAGES/django.po | 21 -------------------
datacenterlight/views.py | 2 +-
2 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/datacenterlight/locale/de/LC_MESSAGES/django.po b/datacenterlight/locale/de/LC_MESSAGES/django.po
index c0906022..585efe82 100644
--- a/datacenterlight/locale/de/LC_MESSAGES/django.po
+++ b/datacenterlight/locale/de/LC_MESSAGES/django.po
@@ -558,27 +558,6 @@ msgstr ""
msgid "Confirm Order"
msgstr "Bestellung Bestätigen"
-#~ msgid "We are cutting down the costs significantly!"
-#~ msgstr "Wir sorgen dafür, dass die Kosten für Dich signifikant abnehmen"
-
-#~ msgid "Order Now!"
-#~ msgstr "Bestelle jetzt!"
-
-#~ msgid ""
-#~ "Our VMs are hosted in Glarus, Switzerland, and our website is currently "
-#~ "running in BETA mode. If you want more information that you did not find "
-#~ "on our website, or if your order is more detailed, or if you encounter "
-#~ "any technical hiccups, please contact us at support@datacenterlight.ch, "
-#~ "our team will get in touch with you asap."
-#~ msgstr ""
-#~ "Unsere VMs werden in der Schweiz im Kanton Glarus gehostet und befinden "
-#~ "sich zur Zeit noch in der BETA-Phase. Möchtest du mehr über uns erfahren "
-#~ "und hast auf unserer Website nicht genügend Informationen gefunden? "
-#~ "Möchtest eine detailliertere Bestellung aufgeben? Bist du auf technische "
-#~ "Probleme gestossen, die du uns mitteilen möchtest? Dann zögere nicht und "
-#~ "kontaktiere uns unter support@datacenterlight.ch. Unser Team wird sich "
-#~ "umgehend um dein Anliegen kümmern!"
-
#~ msgid "Date"
#~ msgstr "Datum"
diff --git a/datacenterlight/views.py b/datacenterlight/views.py
index ec87616f..1a5332e1 100644
--- a/datacenterlight/views.py
+++ b/datacenterlight/views.py
@@ -438,7 +438,7 @@ class OrderConfirmationView(DetailView):
'cc_last4': card_details.get('response_object').get('last4'),
'cc_brand': card_details.get('response_object').get('brand'),
'vm': request.session.get('specs'),
- 'page_header_text': _('Confirm Order')
+ 'page_header_text': _('Confirm Order'),
'billing_address_data': request.session.get('billing_address_data')
}
return render(request, self.template_name, context)