conditional texts
This commit is contained in:
		
					parent
					
						
							
								a16dbb50d8
							
						
					
				
			
			
				commit
				
					
						1c0f0da96e
					
				
			
		
					 4 changed files with 67 additions and 32 deletions
				
			
		| 
						 | 
					@ -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-14 12:27+0000\n"
 | 
					"POT-Creation-Date: 2017-09-21 19:20+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"
 | 
				
			||||||
| 
						 | 
					@ -321,10 +321,14 @@ msgstr "Als gelesen markieren"
 | 
				
			||||||
msgid "All notifications"
 | 
					msgid "All notifications"
 | 
				
			||||||
msgstr "Alle Benachrichtigungen"
 | 
					msgstr "Alle Benachrichtigungen"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Date"
 | 
					#, python-format
 | 
				
			||||||
msgstr "Datum"
 | 
					msgid "%(page_header_text)s"
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Status:"
 | 
					msgid "Invoice Date"
 | 
				
			||||||
 | 
					msgstr "Rechnung Datum"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Status"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Approved"
 | 
					msgid "Approved"
 | 
				
			||||||
| 
						 | 
					@ -333,10 +337,10 @@ msgstr "Akzeptiert"
 | 
				
			||||||
msgid "Declined"
 | 
					msgid "Declined"
 | 
				
			||||||
msgstr "Abgelehnt"
 | 
					msgstr "Abgelehnt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Billed To:"
 | 
					msgid "Billed to"
 | 
				
			||||||
msgstr "Rechnungsadresse"
 | 
					msgstr "Rechnungsadresse"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Payment Method:"
 | 
					msgid "Payment method"
 | 
				
			||||||
msgstr "Bezahlmethode"
 | 
					msgstr "Bezahlmethode"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "ending in"
 | 
					msgid "ending in"
 | 
				
			||||||
| 
						 | 
					@ -345,6 +349,9 @@ msgstr "endend in"
 | 
				
			||||||
msgid "Order summary"
 | 
					msgid "Order summary"
 | 
				
			||||||
msgstr "Bestellungsübersicht"
 | 
					msgstr "Bestellungsübersicht"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Product"
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Cores"
 | 
					msgid "Cores"
 | 
				
			||||||
msgstr "Prozessorkerne"
 | 
					msgstr "Prozessorkerne"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -357,20 +364,40 @@ msgstr "Festplattenkapazität"
 | 
				
			||||||
msgid "Total"
 | 
					msgid "Total"
 | 
				
			||||||
msgstr "Gesamt"
 | 
					msgstr "Gesamt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Finish Configuration"
 | 
					#, python-format
 | 
				
			||||||
msgstr "Konfiguration beenden"
 | 
					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 "BACK TO LIST"
 | 
				
			||||||
 | 
					msgstr "ZURÜCK ZUR LISTE"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Processing..."
 | 
				
			||||||
 | 
					msgstr "Weiter..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Hold tight, we are processing your request"
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Some problem encountered. Please try again later."
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Order Nr."
 | 
					msgid "Order Nr."
 | 
				
			||||||
msgstr "Bestellung Nr."
 | 
					msgstr "Bestellung Nr."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Date"
 | 
				
			||||||
 | 
					msgstr "Datum"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Amount"
 | 
					msgid "Amount"
 | 
				
			||||||
msgstr "Betrag"
 | 
					msgstr "Betrag"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Status"
 | 
					 | 
				
			||||||
msgstr ""
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msgid "See Invoice"
 | 
					msgid "See Invoice"
 | 
				
			||||||
msgstr "Rechnung"
 | 
					msgstr "Siehe Rechnung"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "Page"
 | 
					msgid "Page"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
| 
						 | 
					@ -555,9 +582,6 @@ msgstr "Wir sind hier, um Dir zu helfen!"
 | 
				
			||||||
msgid "CONTACT"
 | 
					msgid "CONTACT"
 | 
				
			||||||
msgstr "KONTACT"
 | 
					msgstr "KONTACT"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "BACK TO LIST"
 | 
					 | 
				
			||||||
msgstr "ZURÜCK ZUR LISTE"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msgid "Terminate your Virtual Machine"
 | 
					msgid "Terminate your Virtual Machine"
 | 
				
			||||||
msgstr "Deine Virtuelle Maschine beenden"
 | 
					msgstr "Deine Virtuelle Maschine beenden"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -618,13 +642,17 @@ msgstr ""
 | 
				
			||||||
msgid "Invalid credit card"
 | 
					msgid "Invalid credit card"
 | 
				
			||||||
msgstr "Ungültige Kreditkarte"
 | 
					msgstr "Ungültige Kreditkarte"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#, python-format
 | 
					 | 
				
			||||||
msgid "Your New VM %(vm_name)s at Data Center Light"
 | 
					 | 
				
			||||||
msgstr "Deine neue VM %(vm_name)s bei Data Center Light"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
msgid "Confirm Order"
 | 
					msgid "Confirm Order"
 | 
				
			||||||
msgstr "Bestellung Bestätigen"
 | 
					msgstr "Bestellung Bestätigen"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid "Thank you for the order."
 | 
				
			||||||
 | 
					msgstr "Danke für den Auftrag"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					msgid ""
 | 
				
			||||||
 | 
					"Your VM will be up and running in a few moments. We will send you a "
 | 
				
			||||||
 | 
					"confirmation email as soon as it is ready."
 | 
				
			||||||
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msgid "In order to create a VM, you need to create/upload your SSH KEY first."
 | 
					msgid "In order to create a VM, you need to create/upload your SSH KEY first."
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
"Um eine VM zu erstellen musst du zuerst einen SSH-Key erstellen / hochladen."
 | 
					"Um eine VM zu erstellen musst du zuerst einen SSH-Key erstellen / hochladen."
 | 
				
			||||||
| 
						 | 
					@ -641,6 +669,12 @@ msgstr "VM Kündigung"
 | 
				
			||||||
msgid "VM %(VM_ID)s terminated successfully"
 | 
					msgid "VM %(VM_ID)s terminated successfully"
 | 
				
			||||||
msgstr "VM %(VM_ID)s erfolgreich beendet"
 | 
					msgstr "VM %(VM_ID)s erfolgreich beendet"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#~ msgid "Finish Configuration"
 | 
				
			||||||
 | 
					#~ msgstr "Konfiguration beenden"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#~ msgid "Your New VM %(vm_name)s at Data Center Light"
 | 
				
			||||||
 | 
					#~ msgstr "Deine neue VM %(vm_name)s bei Data Center Light"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#~ msgid "My Virtual Machines"
 | 
					#~ msgid "My Virtual Machines"
 | 
				
			||||||
#~ msgstr "Meine virtuellen Maschinen"
 | 
					#~ msgstr "Meine virtuellen Maschinen"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -734,9 +768,6 @@ msgstr "VM %(VM_ID)s erfolgreich beendet"
 | 
				
			||||||
#~ msgid "Payment Details"
 | 
					#~ msgid "Payment Details"
 | 
				
			||||||
#~ msgstr "Rechnungsdetails"
 | 
					#~ msgstr "Rechnungsdetails"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#~ msgid "Place Order"
 | 
					 | 
				
			||||||
#~ msgstr "Bestelle"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#~ msgid "CARD NUMBER"
 | 
					#~ msgid "CARD NUMBER"
 | 
				
			||||||
#~ msgstr "Kreditkartennummer"
 | 
					#~ msgstr "Kreditkartennummer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -79,7 +79,7 @@
 | 
				
			||||||
                        {{order.last4}}<br>
 | 
					                        {{order.last4}}<br>
 | 
				
			||||||
                        {{user.email}}
 | 
					                        {{user.email}}
 | 
				
			||||||
                    {% else %}
 | 
					                    {% else %}
 | 
				
			||||||
                        {{cc_brand}} {% trans "ending in" %} ****
 | 
					                        {{cc_brand|default:'Card'}} {% trans "ending in" %} ****
 | 
				
			||||||
                        {{cc_last4}}<br>
 | 
					                        {{cc_last4}}<br>
 | 
				
			||||||
                        {% if request.user.is_authenticated %}
 | 
					                        {% if request.user.is_authenticated %}
 | 
				
			||||||
                            {{request.user.email}}
 | 
					                            {{request.user.email}}
 | 
				
			||||||
| 
						 | 
					@ -105,7 +105,11 @@
 | 
				
			||||||
                        {% endcomment %}
 | 
					                        {% endcomment %}
 | 
				
			||||||
                        <p>
 | 
					                        <p>
 | 
				
			||||||
                            <span>{% trans "Cores" %}</span>
 | 
					                            <span>{% trans "Cores" %}</span>
 | 
				
			||||||
                            <span class="pull-right">{{vm.cores|floatformat}}</span>
 | 
					                            {% if vm.cores %}
 | 
				
			||||||
 | 
					                                <span class="pull-right">{{vm.cores|floatformat}}</span>
 | 
				
			||||||
 | 
					                            {% else %}
 | 
				
			||||||
 | 
					                                <span class="pull-right">{{vm.cpu|floatformat}}</span>
 | 
				
			||||||
 | 
					                            {% endif %}
 | 
				
			||||||
                        </p>
 | 
					                        </p>
 | 
				
			||||||
                        <p>
 | 
					                        <p>
 | 
				
			||||||
                            <span>{% trans "Memory" %}</span>
 | 
					                            <span>{% trans "Memory" %}</span>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,10 +9,9 @@ from .views import (
 | 
				
			||||||
    HostingPricingView, CreateVirtualMachinesView, HostingBillListView,
 | 
					    HostingPricingView, CreateVirtualMachinesView, HostingBillListView,
 | 
				
			||||||
    HostingBillDetailView, SSHKeyDeleteView, SSHKeyCreateView, SSHKeyListView,
 | 
					    HostingBillDetailView, SSHKeyDeleteView, SSHKeyCreateView, SSHKeyListView,
 | 
				
			||||||
    SSHKeyChoiceView, DashboardView, SettingsView)
 | 
					    SSHKeyChoiceView, DashboardView, SettingsView)
 | 
				
			||||||
from django.views.generic import TemplateView
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
urlpatterns = [
 | 
					urlpatterns = [
 | 
				
			||||||
    url(r'test/?$', TemplateView.as_view(template_name='hosting/order_detail.html'), name='test'),
 | 
					 | 
				
			||||||
    url(r'index/?$', IndexView.as_view(), name='index'),
 | 
					    url(r'index/?$', IndexView.as_view(), name='index'),
 | 
				
			||||||
    url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
 | 
					    url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
 | 
				
			||||||
    url(r'dashboard/?$', DashboardView.as_view(), name='dashboard'),
 | 
					    url(r'dashboard/?$', DashboardView.as_view(), name='dashboard'),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -704,12 +704,13 @@ class OrdersHostingDetailView(LoginRequiredMixin,
 | 
				
			||||||
        return context
 | 
					        return context
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get(self, request, *args, **kwargs):
 | 
					    def get(self, request, *args, **kwargs):
 | 
				
			||||||
        if 'specs' not in self.request.session:
 | 
					        if not self.kwargs.get('pk'):
 | 
				
			||||||
            return HttpResponseRedirect(
 | 
					            if 'specs' not in self.request.session:
 | 
				
			||||||
                reverse('hosting:create_virtual_machine')
 | 
					                return HttpResponseRedirect(
 | 
				
			||||||
            )
 | 
					                    reverse('hosting:create_virtual_machine')
 | 
				
			||||||
        if 'token' not in self.request.session:
 | 
					                )
 | 
				
			||||||
            return HttpResponseRedirect(reverse('hosting:payment'))
 | 
					            if 'token' not in self.request.session:
 | 
				
			||||||
 | 
					                return HttpResponseRedirect(reverse('hosting:payment'))
 | 
				
			||||||
        self.object = self.get_object()
 | 
					        self.object = self.get_object()
 | 
				
			||||||
        context = self.get_context_data(object=self.object)
 | 
					        context = self.get_context_data(object=self.object)
 | 
				
			||||||
        if 'failed_payment' in context:
 | 
					        if 'failed_payment' in context:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue