Add german language.

This commit is contained in:
tastytea 2021-07-09 14:13:19 +02:00
parent fee9426d13
commit 17780f166c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 107 additions and 0 deletions

View File

@ -14,6 +14,9 @@ PaginatePath = "page"
enableGitInfo = true
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
[params]
subtitle = "A pile of thoughts."
favicon = "favicon.png"
@ -59,6 +62,12 @@ enableGitInfo = true
url = "/index.xml"
weight = 3
[[menu.main]]
identifier = "language"
name = "deutsch"
url = "/de/"
weight = 4
[[menu.footer]]
name = "Contact"
url = "https://tastytea.de/"
@ -74,3 +83,44 @@ enableGitInfo = true
startLevel = 2
endLevel = 4
ordered = false
[languages]
[languages.en]
weight = 1
[languages.de]
weight = 1
[languages.de.menu]
[[languages.de.menu.main]]
identifier = "post"
name = "Posts"
url = "/de/posts/"
weight = 1
[[languages.de.menu.main]]
identifier = "tags"
name = "Tags"
url = "/de/tags/"
weight = 2
[[languages.de.menu.main]]
identifier = "rss"
name = "RSS"
url = "/de/index.xml"
weight = 3
[[languages.de.menu.main]]
identifier = "language"
name = "english"
url = "/"
weight = 4
[[languages.de.menu.footer]]
name = "Kontakt"
url = "https://tastytea.de/"
weight = 1
[[languages.de.menu.footer]]
name = "Quellcode"
url = "https://schlomp.space/tastytea/blog"
weight = 2

View File

@ -0,0 +1,27 @@
---
title: "Meta: This blog is multi-language now"
slug: "Meta: This blog is multi-language now"
description: null
date: 2021-07-09T12:21:45+02:00
type: posts
draft: true
tags:
- Meta
toc: false
---
:source-highlighter: pygments
:idprefix:
:experimental: true
:toc:
:toclevels: 2
I will begin publishing posts in German on this blog. The
link:/index.xml[default RSS feed] will contain only English posts. The
link:/de/index.xml[German RSS feed] will contain only German
posts. So if you want to want to get posts in both languages, you will need to
subscribe to both.
I am not sure yet if I will translate new posts to both languages. Probably some
posts will be only available in English while others will be only available in
German. 🤷

View File

@ -0,0 +1,30 @@
---
title: "Meta: Dieser blog ist jetzt mehrsprachig"
slug: "Meta: Dieser blog ist jetzt mehrsprachig"
description: null
date: 2021-07-09T12:21:45+02:00
type: posts
draft: true
tags:
- Meta
toc: false
---
:source-highlighter: pygments
:idprefix:
:experimental: true
:toc:
:toclevels: 2
Ich werde fortan auch deutsche texte auf diesem blog veröffentlichen. Der
link:/index.xml[standard RSS-feed] wird nur englische posts enthalten. Der
link:/de/index.xml[deutsche RSS-feed] wird nur deutsche posts enthalten. Wenn du
posts in beiden sprachen lesen willst, musst du beide feeds abonnieren.
Ich weiß noch nicht, ob ich neue posts in beide sprachen übersetzen
werde. Wahrscheinlich werden einige posts nur in englisch und andere nur in
deutsch verfügbar sein. 🤷
// Local Variables:
// ispell-local-dictionary: "de_DE"
// End: