Add translation capability

This commit is contained in:
sqozz
2017-12-29 08:03:17 +01:00
parent 2c220afced
commit 9c053b5021
15 changed files with 342 additions and 132 deletions

View File

@ -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 %}
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
@ -12,11 +12,11 @@ vim: ts=2 noexpandtab
<form action="search" >
<div class="form-group">
<div class="input-group search-box">
<input type="text" name="q" class="form-control" placeholder="Seach for…" aria-describedby="basic-addon2">
<input type="text" name="q" class="form-control" placeholder="{{ _("Seach for") }}" aria-describedby="basic-addon2">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
{{ getLocalString(language, "search") }}!
{{ _("Search!") }}
</button>
</span>
</div>