1
0
mirror of https://github.com/tiyn/beaker-blog.git synced 2025-10-24 16:51:15 +02:00

added language support for german

This commit is contained in:
2024-04-14 01:58:29 +02:00
parent 1ac2ba220a
commit 98249bbbd9
10 changed files with 161 additions and 142 deletions

View File

@@ -2,7 +2,7 @@
{% block content %}
<div class="container">
<div class="blogarchive">
<h1>Archive</h1><br>
<h1>{% if language=="de-de" %}Archiv{% else %}Archive{% endif %}</h1><br>
{% autoescape off %}
{{ content_string }}
{% endautoescape %}

View File

@@ -2,7 +2,7 @@
{% block content %}
<div class="container">
<div class="important">
Error<br>
{% if language=="de-de" %}Fehler{% else %}Error{% endif %}<br>
<span>{{ errorcode }}</span>
</div>
</div>

View File

@@ -2,7 +2,7 @@
{% block content %}
<div class="container">
<div class="blog">
<h1>Index</h1><br>
<h1>Feed</h1><br>
{% autoescape off %}
{{ content_string }}
{% endautoescape %}

View File

@@ -4,7 +4,7 @@
<channel>
<title>{{ title }}</title>
<description>{{ description }}</description>
<language>en-us</language>
<language>{{ language }}</language>
<link>{{ website }}/feed.xml</link>
<atom:link href="/feed.xml" rel="self" type="application/rss+xml" />

View File

@@ -14,7 +14,7 @@
<label for="main-menu-check" class="show-menu">&#9776;</label>
<div class="main-menu">
<a href="{{ url_for('index') }}">Blog</a>
<a href="{{ url_for('archive') }}">Archive</a>
<a href="{{ url_for('archive') }}">{% if language=="de-de" %}Archiv{% else %}Archive{% endif %}</a>
<label for="main-menu-check" class="hide-menu">X</label>
</div>
</div>