From fd3df85ace5a3879993140656b26f766eae4d927 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 5 Apr 2017 12:17:04 +0530 Subject: [PATCH] service: Fix i18n of strings in service template Signed-off-by: Sunil Mohan Adapa --- plinth/templates/service.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/plinth/templates/service.html b/plinth/templates/service.html index 314955095..45a146689 100644 --- a/plinth/templates/service.html +++ b/plinth/templates/service.html @@ -36,15 +36,21 @@ {% block status %} {% if show_status_block %} -

Status

+

{% trans "Status" %}

- {% if service.is_running %} - - Service {{ service.name }} {% trans "is running" %} - {% else %} - - Service {{ service.name }} {% trans "is not running" %} - {% endif %} + {% with service_name=service.name %} + {% if service.is_running %} + + {% blocktrans trimmed %} + Service {{ service_name }} is running. + {% endblocktrans %} + {% else %} + + {% blocktrans trimmed %} + Service {{ service_name }} is not running. + {% endblocktrans %} + {% endif %} + {% endwith %}

{% endif %} {% endblock %} @@ -56,7 +62,7 @@ {% endblock %} {% block configuration %} -

Configuration

+

{% trans "Configuration" %}

{% csrf_token %}