-
{{ getLocalString(language, "size") }}:
+
{{ _("Size") }}:
-
{{ getLocalString(language, "tracker") }}:
+
{{ _("Tracker") }}:
-
{{ getLocalString(language, "detected_files") }}:
+
{{ _("Detected files") }}:
@@ -53,12 +53,12 @@ vim: ts=2 noexpandtab
diff --git a/templates/details.html b/templates/details.html
index 753c12b..03d8f55 100644
--- a/templates/details.html
+++ b/templates/details.html
@@ -2,7 +2,7 @@
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
-{% block title %}{{ super() }} - Results{% endblock%}
+{% block title %}{{ super() }} - {{ _("Results") }}{% endblock%}
{% set active_page = "search" %}
{% block content %}
diff --git a/templates/index.html b/templates/index.html
index 9df8269..09ae2a8 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,9 +2,9 @@
vim: ts=2 noexpandtab
-->
{% set navigation_bar = [
- ("/", "search", "Search", "glyphicon-search"),
- ("/categories", "categories", "Categories", "glyphicon-th"),
- ("/create", "create", "Create", "glyphicon-plus")
+ ("/", "search", _("Search"), "glyphicon-search"),
+ ("/categories", "categories", _("Categories"), "glyphicon-th"),
+ ("/create", "create", _("Create"), "glyphicon-plus")
] -%}
@@ -23,7 +23,6 @@ vim: ts=2 noexpandtab
diff --git a/templates/result.html b/templates/result.html
index 4d8b4bc..a39e37a 100644
--- a/templates/result.html
+++ b/templates/result.html
@@ -2,26 +2,26 @@
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
-{% block title %}{{ super() }} - Results{% endblock%}
+{% block title %}{{ super() }} - {{ _("Results") }}{% endblock%}
{% set active_page = "search" %}
{% block content %}
- Name |
- Size |
- Snatches |
- UL |
- DL |
+ {{ _("Name") }} |
+ {{ _("Size") }} |
+ {{ _("Snatches") }} |
+ {{ _("UL") }} |
+ {{ _("DL") }} |
{% for result in results %}
{{ result[1] }} |
{{ result[2] }} |
- N/A |
- N/A |
- N/A |
+ {{ _("N/A") }} |
+ {{ _("N/A") }} |
+ {{ _("N/A") }} |
{% endfor %}
diff --git a/templates/search.html b/templates/search.html
index 0e6015f..8c0dffc 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -2,7 +2,7 @@
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
-{% block title %}{{ super() }} - Search{% endblock%}
+{% block title %}{{ super() }} - {{ _("Search") }}{% endblock%}
{% set active_page = "search" %}
{% block content %}
@@ -12,11 +12,11 @@ vim: ts=2 noexpandtab