diff --git a/.gitignore b/.gitignore index 61b390f..4a940b4 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,9 @@ Icon !/content/error !/content/articles /content/articles/* -!/content/articles/articles.de.txt -!/content/media/media.de.txt +!/content/articles/articles.en.txt +/content/media/* +!/content/media/media.en.txt !/content/search # Frontend diff --git a/content/articles/articles.de.txt b/content/articles/articles.de.txt deleted file mode 100644 index 90d7d5f..0000000 --- a/content/articles/articles.de.txt +++ /dev/null @@ -1,21 +0,0 @@ -Title: Articles - ----- - -Headline: - ----- - -Intro: - ----- - -Subline: - ----- - -Cover: - ----- - -Uuid: YmUg8qxLk7uMIDuj \ No newline at end of file diff --git a/content/articles/articles.en.txt b/content/articles/articles.en.txt new file mode 100644 index 0000000..cb3426a --- /dev/null +++ b/content/articles/articles.en.txt @@ -0,0 +1,5 @@ +Title: Articles + +---- + +Uuid: OfWmF3KRUe9dLMGn \ No newline at end of file diff --git a/content/error/error.de.txt b/content/error/error.de.txt deleted file mode 100644 index e774214..0000000 --- a/content/error/error.de.txt +++ /dev/null @@ -1,5 +0,0 @@ -Title: Error - ----- - -Uuid: ATQOJeLJuJaVw1HG \ No newline at end of file diff --git a/content/error/error.en.txt b/content/error/error.en.txt new file mode 100644 index 0000000..c609fa0 --- /dev/null +++ b/content/error/error.en.txt @@ -0,0 +1,5 @@ +Title: Error + +---- + +Uuid: 5rloRGTSSdv6jmtd \ No newline at end of file diff --git a/content/home/home.de.txt b/content/home/home.de.txt deleted file mode 100644 index 32c74d3..0000000 --- a/content/home/home.de.txt +++ /dev/null @@ -1,5 +0,0 @@ -Title: Home - ----- - -Uuid: ZbXWESTRRsl0gQx4 \ No newline at end of file diff --git a/content/home/home.en.txt b/content/home/home.en.txt new file mode 100644 index 0000000..9f18594 --- /dev/null +++ b/content/home/home.en.txt @@ -0,0 +1,5 @@ +Title: Home + +---- + +Uuid: OZY1JtRhNfCnKX5H \ No newline at end of file diff --git a/content/search/search.de.txt b/content/search/search.de.txt deleted file mode 100644 index 09a2897..0000000 --- a/content/search/search.de.txt +++ /dev/null @@ -1 +0,0 @@ -Title: Suche \ No newline at end of file diff --git a/content/search/search.en.txt b/content/search/search.en.txt new file mode 100644 index 0000000..2ae70e5 --- /dev/null +++ b/content/search/search.en.txt @@ -0,0 +1 @@ +Title: Search \ No newline at end of file diff --git a/site/languages/de.php b/site/languages/de.php deleted file mode 100644 index 0431a42..0000000 --- a/site/languages/de.php +++ /dev/null @@ -1,14 +0,0 @@ - 'de', - 'default' => true, - 'direction' => 'ltr', - 'locale' => 'de_DE', - 'name' => 'Deutsch', - 'url' => '/', - 'translations' => [ - 'relatedArticles' => 'Verwandte Artikel', - 'readMore' => 'Mehr erfahren', - ], -]; diff --git a/site/languages/en.php b/site/languages/en.php new file mode 100644 index 0000000..d65b7c5 --- /dev/null +++ b/site/languages/en.php @@ -0,0 +1,14 @@ + 'en', + 'default' => true, + 'direction' => 'ltr', + 'locale' => 'en', + 'name' => 'English', + 'url' => '/', + 'translations' => [ + 'relatedArticles' => 'Related articles', + 'readMore' => 'Read more', + ], +]; diff --git a/site/templates/article.php b/site/templates/article.php index e76ee62..237173d 100644 --- a/site/templates/article.php +++ b/site/templates/article.php @@ -11,7 +11,7 @@ - +isNotEmpty()): ?>
t('relatedArticles'), diff --git a/site/templates/default.php b/site/templates/default.php index e3e0554..641be00 100644 --- a/site/templates/default.php +++ b/site/templates/default.php @@ -5,6 +5,7 @@ 'title' => $page->title(), 'image' => $page->cover()->toFile(), ]) ?> + + -