Use translated brand name in templates

Using brand name directly from configuration means that it can't be
easily translated.  Instead use the translated brand name sent in my the
context processor.
This commit is contained in:
Sunil Mohan Adapa committed 2016-01-24 00:37:01 +05:30
1 parent 8ccffcf02c
commit 4602c5bfce
14 files changed
+25 -25

No files matched your search

@@ -37,7 +37,7 @@
{% block content_row %}
<p class="text-center">
<img src="{% static 'theme/img/FreedomBox-logo-standard.png' %}"
alt="{{ cfg.box_name }}" width="640"/>
alt="{{ box_name }}" width="640"/>
</p>
<p class="text-center">
@@ -46,7 +46,7 @@
</p>
<p class="text-center" style="font-size: larger">
{% blocktrans trimmed with box_name=cfg.box_name %}
{% blocktrans trimmed %}
To complete the setup of your {{ box_name }}, please provide
some basic information.
{% endblocktrans %}
@@ -29,7 +29,7 @@
<h2>{% trans "Setup Complete!" %}</h2>
<p>
{% blocktrans trimmed with box_name=cfg.box_name %}
{% blocktrans trimmed %}
{{ box_name }} setup is now complete. To make your {{ box_name }}
functional, you need some applications. Applications will be
installed the first time you access them.