From 412045e01524250ceb6f6881daaa244407bbf1a5 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Fri, 24 Jun 2022 15:56:36 -0700 Subject: [PATCH] Convert templates to use translate instead of localize Not sure what the difference is but most things tend to use translate. Signed-off-by: Alek Ratzloff --- board/templates/board/ban_success.html | 6 +++--- board/templates/board/board_detail.html | 10 +++++----- board/templates/board/post_detail.html | 6 +++--- board/templates/board/post_snippet.html | 14 ++++++++------ board/templates/board/report_form.html | 4 ++-- board/templates/board/report_success.html | 6 +++--- 6 files changed, 24 insertions(+), 22 deletions(-) diff --git a/board/templates/board/ban_success.html b/board/templates/board/ban_success.html index 21bb2e8..ded270f 100644 --- a/board/templates/board/ban_success.html +++ b/board/templates/board/ban_success.html @@ -1,11 +1,11 @@ {% extends "board/base.html" %} -{% load l10n %} +{% load i18n %} {# Title #} -{% block title %}{% localize on %}Ban success{% endlocalize %}{% endblock %} +{% block title %}{% translate "Ban success" %}{% endblock %} {# Body #} {% block content %}
- {% localize on %}A ban has been created. This window will close in 1 second.{% endlocalize %} + {% translate "A ban has been created. This window will close in 1 second." %}