Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add titles with translations

Mateusz Dereniowski27822cedc660
diff --git a/cart/templates/cart/index.html b/cart/templates/cart/index.html
index 3de07b242c..6df859cf59 100644
--- a/cart/templates/cart/index.html
+++ b/cart/templates/cart/index.html
@@ -1,7 +1,9 @@
{% extends "base.html" %}
-
-{% load gross from prices %}
{% load as_bootstrap from bootstrap %}
+{% load gross from prices %}
+{% load i18n %}
+
+{% block title %}{% trans "Your cart" %}{% endblock %}
{% block content %}
{% if cart %}
diff --git a/checkout/templates/checkout/address.html b/checkout/templates/checkout/address.html
index 1846d05553..d78babdf0f 100644
--- a/checkout/templates/checkout/address.html
+++ b/checkout/templates/checkout/address.html
@@ -1,6 +1,10 @@
{% extends "checkout/details.html" %}
-
{% load as_bootstrap from bootstrap %}
+{% load i18n %}
+
+{% block title %}
+{{ block.super }} » {% trans "Billing Address" %}
+{% endblock %}
{% block forms %}
<form method="post" class="form-horizontal">
diff --git a/checkout/templates/checkout/details.html b/checkout/templates/checkout/details.html
index 56aad25984..ef23b21d16 100644
--- a/checkout/templates/checkout/details.html
+++ b/checkout/templates/checkout/details.html
@@ -1,6 +1,8 @@
{% extends "base.html" %}
-
{% load as_bootstrap from bootstrap %}
+{% load i18n %}
+
+{% block title %}{% trans "Checkout" %}{% endblock %}
{% block content %}
<ul class="nav nav-tabs">
diff --git a/checkout/templates/checkout/shipping.html b/checkout/templates/checkout/shipping.html
index 82bac0dfb6..b52759fb23 100644
--- a/checkout/templates/checkout/shipping.html
+++ b/checkout/templates/checkout/shipping.html
@@ -1,6 +1,10 @@
{% extends "checkout/address.html" %}
-
{% load as_bootstrap from bootstrap %}
+{% load i18n %}
+
+{% block title %}
+{% trans "Checkout" %} » {% trans "Shipping" %}
+{% endblock %}
{% block extra_forms %}
<fieldset>
diff --git a/checkout/templates/checkout/summary.html b/checkout/templates/checkout/summary.html
index 9aa6a44452..d466106a3e 100644
--- a/checkout/templates/checkout/summary.html
+++ b/checkout/templates/checkout/summary.html
@@ -1,7 +1,12 @@
{% extends "checkout/details.html" %}
-
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}
+{% load i18n %}
+
+{% block title %}
+{{ block.super }} » {% trans "Shipping" %}
+{% endblock %}
+
{% block forms %}
<h2>Billing address</h2>
diff --git a/order/templates/order/success.html b/order/templates/order/success.html
index 597933f356..ac9027d46e 100644
--- a/order/templates/order/success.html
+++ b/order/templates/order/success.html
@@ -1,4 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Order received!" %}{% endblock %}
{% block content %}
<h2>Your order has been received</h2>
diff --git a/payment/templates/payment/default.html b/payment/templates/payment/default.html
index b7ad306635..da2230bf09 100644
--- a/payment/templates/payment/default.html
+++ b/payment/templates/payment/default.html
@@ -1,6 +1,10 @@
{% extends "payment/details.html" %}
-
{% load as_bootstrap from bootstrap %}
+{% load i18n %}
+
+{% block title %}
+{{ block.super }} » {% trans "Default" %}
+{% endblock %}
{% block forms %}
<form method="{{ form.method }}" class="form-horizontal"{% if form.action %} action="{{ form.action }}"{% endif %}>
diff --git a/payment/templates/payment/details.html b/payment/templates/payment/details.html
index bc00a7d53f..42fc9d682e 100644
--- a/payment/templates/payment/details.html
+++ b/payment/templates/payment/details.html
@@ -1,6 +1,8 @@
{% extends "base.html" %}
-
{% load as_bootstrap from bootstrap %}
+{% load i18n %}
+
+{% block title %}{% trans "Payment" %}{% endblock %}
{% block content %}
<h2>Payment</h2>
diff --git a/payment/templates/payment/index.html b/payment/templates/payment/index.html
index 36e4290d48..b7735683e9 100644
--- a/payment/templates/payment/index.html
+++ b/payment/templates/payment/index.html
@@ -1,7 +1,11 @@
{% extends "payment/details.html" %}
-
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}
+{% load i18n %}
+
+{% block title %}
+{{ block.super }} » {% trans "Method" %}
+{% endblock %}
{% block forms %}
{% if waiting_payment %}
diff --git a/product/templates/product/details.html b/product/templates/product/details.html
index 122b88243a..495fad4a2e 100644
--- a/product/templates/product/details.html
+++ b/product/templates/product/details.html
@@ -1,6 +1,8 @@
{% extends "base.html" %}
-{% load i18n %}
{% load gross from prices %}
+{% load i18n %}
+
+{% block title %}{% trans "Product" %} » {{ product.name }}{% endblock %}
{% block outercontent %}
<div itemscope itemtype="http://schema.org/Product" class="row">
diff --git a/product/templates/product/index.html b/product/templates/product/index.html
index 4930e46fb0..0363c14767 100644
--- a/product/templates/product/index.html
+++ b/product/templates/product/index.html
@@ -1,4 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Products" %}{% endblock %}
{% block content %}
<ul>
diff --git a/registration/templates/registration/invalid_token.html b/registration/templates/registration/invalid_token.html
index f56d4e150e..7261a2b5cd 100644
--- a/registration/templates/registration/invalid_token.html
+++ b/registration/templates/registration/invalid_token.html
@@ -1,5 +1,8 @@
{% extends "base.html" %}
-{% block title %}Invalid token{% endblock %}
+{% load i18n %}
+
+{% block title %}{% trans "Invalid token" %}{% endblock %}
+
{% block content %}
<div>
Sorry, this link is invalid. Probably it has already been used or has expired.
diff --git a/registration/templates/registration/login.html b/registration/templates/registration/login.html
index 87cb5548e3..7ef2985d40 100644
--- a/registration/templates/registration/login.html
+++ b/registration/templates/registration/login.html
@@ -1,7 +1,8 @@
{% extends "base.html" %}
{% load bootstrap %}
+{% load i18n %}
-{% block title %}Login{% endblock %}
+{% block title %}{% trans "Login" %}{% endblock %}
{% block content %}
<form method="post" action="{% url 'registration:login' %}">
diff --git a/registration/templates/registration/logout.html b/registration/templates/registration/logout.html
index 03f08744f4..26272e0a56 100644
--- a/registration/templates/registration/logout.html
+++ b/registration/templates/registration/logout.html
@@ -1,5 +1,8 @@
{% extends "base.html" %}
-{% block title %}Logged out{% endblock %}
+{% load i18n %}
+
+{% block title %}{% trans "Logged out" %}{% endblock %}
+
{% block content %}
Successfully logged out!
{% endblock %}
diff --git a/registration/templates/registration/request_email_confirmation.html b/registration/templates/registration/request_email_confirmation.html
index 512a5a65b8..008f6b9a2e 100644
--- a/registration/templates/registration/request_email_confirmation.html
+++ b/registration/templates/registration/request_email_confirmation.html
@@ -1,7 +1,8 @@
{% extends "base.html" %}
{% load bootstrap %}
+{% load i18n %}
-{% block title %}Request email confirmation{% endblock %}
+{% block title %}{% trans "Request email confirmation" %}{% endblock %}
{% block content %}
<div>
diff --git a/registration/templates/registration/select_email.html b/registration/templates/registration/select_email.html
index cf67cabb0b..b1372a9e76 100644
--- a/registration/templates/registration/select_email.html
+++ b/registration/templates/registration/select_email.html
@@ -1,5 +1,7 @@
{% extends "base.html" %}
+
{% block title %}{% endblock %}
+
{% block content %}
<div>
<h3>
diff --git a/registration/templates/registration/set_password.html b/registration/templates/registration/set_password.html
index f7a1c8994e..5ff30c1833 100644
--- a/registration/templates/registration/set_password.html
+++ b/registration/templates/registration/set_password.html
@@ -1,7 +1,8 @@
{% extends "base.html" %}
{% load bootstrap %}
+{% load i18n %}
-{% block title %}Set password{% endblock %}
+{% block title %}{% trans "Set password" %}{% endblock %}
{% block content %}
<div>
diff --git a/userprofile/templates/userprofile/address-delete.html b/userprofile/templates/userprofile/address-delete.html
index c11c9778d9..09b0926628 100644
--- a/userprofile/templates/userprofile/address-delete.html
+++ b/userprofile/templates/userprofile/address-delete.html
@@ -1,4 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Delete Address" %}{% endblock %}
{% block content %}
<div>
diff --git a/userprofile/templates/userprofile/address-edit.html b/userprofile/templates/userprofile/address-edit.html
index 7710b0ce21..575ab4a71f 100644
--- a/userprofile/templates/userprofile/address-edit.html
+++ b/userprofile/templates/userprofile/address-edit.html
@@ -1,4 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Edit Address" %}{% endblock %}
{% block content %}
<form action="." method="post">
diff --git a/userprofile/templates/userprofile/details.html b/userprofile/templates/userprofile/details.html
index 886e03c6f5..b11d32efa3 100644
--- a/userprofile/templates/userprofile/details.html
+++ b/userprofile/templates/userprofile/details.html
@@ -1,5 +1,7 @@
{% extends "base.html" %}
+{% load i18n %}
+{% block title %}{% trans "User profile" %}{% endblock %}
{% block content %}
<ul>