From 9b77ec15e5beeff3f57f845be883416d2a68b84d Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 30 Nov 2020 22:56:26 +0100 Subject: New article on rst & Latex. Changed theme --- .../i18n_subsites/test_data/content/images/img.png | 0 .../test_data/content/pages/hidden-page-cz.rst | 7 +++ .../test_data/content/pages/hidden-page-de.rst | 7 +++ .../test_data/content/pages/hidden-page-en.rst | 7 +++ .../test_data/content/pages/untranslated-page.rst | 5 ++ .../test_data/content/translated_article-cz.rst | 8 +++ .../test_data/content/translated_article-de.rst | 8 +++ .../test_data/content/translated_article-en.rst | 8 +++ .../test_data/content/untranslated_article-en.rst | 9 +++ .../test_data/localized_theme/babel.cfg | 2 + .../test_data/localized_theme/messages.pot | 23 ++++++++ .../test_data/localized_theme/static/style.css | 0 .../test_data/localized_theme/templates/base.html | 7 +++ .../translations/de/LC_MESSAGES/messages.mo | Bin 0 -> 486 bytes .../translations/de/LC_MESSAGES/messages.po | 23 ++++++++ .../test_data/output/an-untranslated-article.html | 56 +++++++++++++++++++ .../output/cz/an-untranslated-article-en.html | 55 ++++++++++++++++++ .../test_data/output/cz/feeds_all.atom.xml | 10 ++++ .../i18n_subsites/test_data/output/cz/index.html | 56 +++++++++++++++++++ .../test_data/output/cz/pages/404.html | 40 +++++++++++++ .../test_data/output/cz/translated-article.html | 61 ++++++++++++++++++++ .../de/drafts/an-untranslated-article-en.html | 55 ++++++++++++++++++ .../test_data/output/de/feeds_all.atom.xml | 8 +++ .../i18n_subsites/test_data/output/de/index.html | 44 +++++++++++++++ .../test_data/output/de/pages/404.html | 40 +++++++++++++ .../output/de/pages/untranslated-page-en.html | 34 +++++++++++ .../test_data/output/de/translated-article.html | 61 ++++++++++++++++++++ .../test_data/output/feeds_all.atom.xml | 10 ++++ .../i18n_subsites/test_data/output/images/img.png | 0 plugins/i18n_subsites/test_data/output/index.html | 57 +++++++++++++++++++ .../i18n_subsites/test_data/output/pages/404.html | 41 ++++++++++++++ .../test_data/output/pages/untranslated-page.html | 35 ++++++++++++ .../i18n_subsites/test_data/output/theme/style.css | 0 .../test_data/output/translated-article.html | 62 +++++++++++++++++++++ plugins/i18n_subsites/test_data/pelicanconf.py | 53 ++++++++++++++++++ 35 files changed, 892 insertions(+) create mode 100644 plugins/i18n_subsites/test_data/content/images/img.png create mode 100644 plugins/i18n_subsites/test_data/content/pages/hidden-page-cz.rst create mode 100644 plugins/i18n_subsites/test_data/content/pages/hidden-page-de.rst create mode 100644 plugins/i18n_subsites/test_data/content/pages/hidden-page-en.rst create mode 100644 plugins/i18n_subsites/test_data/content/pages/untranslated-page.rst create mode 100644 plugins/i18n_subsites/test_data/content/translated_article-cz.rst create mode 100644 plugins/i18n_subsites/test_data/content/translated_article-de.rst create mode 100644 plugins/i18n_subsites/test_data/content/translated_article-en.rst create mode 100644 plugins/i18n_subsites/test_data/content/untranslated_article-en.rst create mode 100644 plugins/i18n_subsites/test_data/localized_theme/babel.cfg create mode 100644 plugins/i18n_subsites/test_data/localized_theme/messages.pot create mode 100644 plugins/i18n_subsites/test_data/localized_theme/static/style.css create mode 100644 plugins/i18n_subsites/test_data/localized_theme/templates/base.html create mode 100644 plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.mo create mode 100644 plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.po create mode 100644 plugins/i18n_subsites/test_data/output/an-untranslated-article.html create mode 100644 plugins/i18n_subsites/test_data/output/cz/an-untranslated-article-en.html create mode 100644 plugins/i18n_subsites/test_data/output/cz/feeds_all.atom.xml create mode 100644 plugins/i18n_subsites/test_data/output/cz/index.html create mode 100644 plugins/i18n_subsites/test_data/output/cz/pages/404.html create mode 100644 plugins/i18n_subsites/test_data/output/cz/translated-article.html create mode 100644 plugins/i18n_subsites/test_data/output/de/drafts/an-untranslated-article-en.html create mode 100644 plugins/i18n_subsites/test_data/output/de/feeds_all.atom.xml create mode 100644 plugins/i18n_subsites/test_data/output/de/index.html create mode 100644 plugins/i18n_subsites/test_data/output/de/pages/404.html create mode 100644 plugins/i18n_subsites/test_data/output/de/pages/untranslated-page-en.html create mode 100644 plugins/i18n_subsites/test_data/output/de/translated-article.html create mode 100644 plugins/i18n_subsites/test_data/output/feeds_all.atom.xml create mode 100644 plugins/i18n_subsites/test_data/output/images/img.png create mode 100644 plugins/i18n_subsites/test_data/output/index.html create mode 100644 plugins/i18n_subsites/test_data/output/pages/404.html create mode 100644 plugins/i18n_subsites/test_data/output/pages/untranslated-page.html create mode 100644 plugins/i18n_subsites/test_data/output/theme/style.css create mode 100644 plugins/i18n_subsites/test_data/output/translated-article.html create mode 100644 plugins/i18n_subsites/test_data/pelicanconf.py (limited to 'plugins/i18n_subsites/test_data') diff --git a/plugins/i18n_subsites/test_data/content/images/img.png b/plugins/i18n_subsites/test_data/content/images/img.png new file mode 100644 index 0000000..e69de29 diff --git a/plugins/i18n_subsites/test_data/content/pages/hidden-page-cz.rst b/plugins/i18n_subsites/test_data/content/pages/hidden-page-cz.rst new file mode 100644 index 0000000..c282faa --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/pages/hidden-page-cz.rst @@ -0,0 +1,7 @@ +404 stránka +=========== +:slug: 404 +:lang: cz +:status: hidden + +Jednoduchá 404 stránka. diff --git a/plugins/i18n_subsites/test_data/content/pages/hidden-page-de.rst b/plugins/i18n_subsites/test_data/content/pages/hidden-page-de.rst new file mode 100644 index 0000000..d8410a1 --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/pages/hidden-page-de.rst @@ -0,0 +1,7 @@ +Eine 404 Seite +============== +:slug: 404 +:lang: de +:status: hidden + +Eine einfache 404 Seite. diff --git a/plugins/i18n_subsites/test_data/content/pages/hidden-page-en.rst b/plugins/i18n_subsites/test_data/content/pages/hidden-page-en.rst new file mode 100644 index 0000000..74a97d7 --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/pages/hidden-page-en.rst @@ -0,0 +1,7 @@ +A 404 page +========== +:slug: 404 +:lang: en +:status: hidden + +A simple 404 page. diff --git a/plugins/i18n_subsites/test_data/content/pages/untranslated-page.rst b/plugins/i18n_subsites/test_data/content/pages/untranslated-page.rst new file mode 100644 index 0000000..ae4c2b8 --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/pages/untranslated-page.rst @@ -0,0 +1,5 @@ +Untranslated page +================= +:lang: en + +This page has no translation. diff --git a/plugins/i18n_subsites/test_data/content/translated_article-cz.rst b/plugins/i18n_subsites/test_data/content/translated_article-cz.rst new file mode 100644 index 0000000..555a69d --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/translated_article-cz.rst @@ -0,0 +1,8 @@ +Přeložený článek +================ +:slug: translated-article +:lang: cz +:date: 2014-09-15 + +Jednoduchý článek s překlady. +Zde je odkaz na `nějaký obrázek <{filename}/images/img.png>`_. diff --git a/plugins/i18n_subsites/test_data/content/translated_article-de.rst b/plugins/i18n_subsites/test_data/content/translated_article-de.rst new file mode 100644 index 0000000..01bf565 --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/translated_article-de.rst @@ -0,0 +1,8 @@ +Ein übersetzter Artikel +======================= +:slug: translated-article +:lang: de +:date: 2014-09-14 + +Ein einfacher Artikel mit einer Übersetzung. +Hier ist ein Link zur `einigem Bild <{filename}/images/img.png>`_. diff --git a/plugins/i18n_subsites/test_data/content/translated_article-en.rst b/plugins/i18n_subsites/test_data/content/translated_article-en.rst new file mode 100644 index 0000000..d7f5dad --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/translated_article-en.rst @@ -0,0 +1,8 @@ +A translated article +==================== +:slug: translated-article +:lang: en +:date: 2014-09-13 + +A simple article with a translation. +Here is a link to `some image <{filename}/images/img.png>`_. diff --git a/plugins/i18n_subsites/test_data/content/untranslated_article-en.rst b/plugins/i18n_subsites/test_data/content/untranslated_article-en.rst new file mode 100644 index 0000000..867ae5d --- /dev/null +++ b/plugins/i18n_subsites/test_data/content/untranslated_article-en.rst @@ -0,0 +1,9 @@ +An untranslated article +======================= +:date: 2014-07-14 +:lang: en + +An article without a translation. +Here is a link to an `untranslated page`_ + +.. _`untranslated page`: {filename}/pages/untranslated-page.rst diff --git a/plugins/i18n_subsites/test_data/localized_theme/babel.cfg b/plugins/i18n_subsites/test_data/localized_theme/babel.cfg new file mode 100644 index 0000000..4406732 --- /dev/null +++ b/plugins/i18n_subsites/test_data/localized_theme/babel.cfg @@ -0,0 +1,2 @@ +[jinja2: templates/**.html] + diff --git a/plugins/i18n_subsites/test_data/localized_theme/messages.pot b/plugins/i18n_subsites/test_data/localized_theme/messages.pot new file mode 100644 index 0000000..578917f --- /dev/null +++ b/plugins/i18n_subsites/test_data/localized_theme/messages.pot @@ -0,0 +1,23 @@ +# Translations template for PROJECT. +# Copyright (C) 2014 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2014. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2014-07-13 12:25+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + +#: templates/base.html:3 +msgid "Welcome to our" +msgstr "" + diff --git a/plugins/i18n_subsites/test_data/localized_theme/static/style.css b/plugins/i18n_subsites/test_data/localized_theme/static/style.css new file mode 100644 index 0000000..e69de29 diff --git a/plugins/i18n_subsites/test_data/localized_theme/templates/base.html b/plugins/i18n_subsites/test_data/localized_theme/templates/base.html new file mode 100644 index 0000000..a24eb1d --- /dev/null +++ b/plugins/i18n_subsites/test_data/localized_theme/templates/base.html @@ -0,0 +1,7 @@ +{% extends "!simple/base.html" %} + +{% block title %}{% trans %}Welcome to our{% endtrans %} {{ SITENAME }}{% endblock %} +{% block head %} +{{ super() }} + +{% endblock %} diff --git a/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.mo b/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..2390102 Binary files /dev/null and b/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.mo differ diff --git a/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.po b/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.po new file mode 100644 index 0000000..2eb4efb --- /dev/null +++ b/plugins/i18n_subsites/test_data/localized_theme/translations/de/LC_MESSAGES/messages.po @@ -0,0 +1,23 @@ +# German translations for PROJECT. +# Copyright (C) 2014 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2014-07-13 12:25+0200\n" +"PO-Revision-Date: 2014-07-13 12:26+0200\n" +"Last-Translator: FULL NAME \n" +"Language-Team: de \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.3\n" + +#: templates/base.html:3 +msgid "Welcome to our" +msgstr "Willkommen Sie zur unserer" + diff --git a/plugins/i18n_subsites/test_data/output/an-untranslated-article.html b/plugins/i18n_subsites/test_data/output/an-untranslated-article.html new file mode 100644 index 0000000..f2f6494 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/an-untranslated-article.html @@ -0,0 +1,56 @@ + + + + Testing site - An untranslated article + + + + + + + + + + + + + + + +
+
+

+ An untranslated article

+ +
+ +
+

An article without a translation. +Here is a link to an untranslated page

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/cz/an-untranslated-article-en.html b/plugins/i18n_subsites/test_data/output/cz/an-untranslated-article-en.html new file mode 100644 index 0000000..4673ee5 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/cz/an-untranslated-article-en.html @@ -0,0 +1,55 @@ + + + + Testovací stránka - An untranslated article + + + + + + + + + + + + + + + +
+
+

+ An untranslated article

+ +
+ +
+

An article without a translation. +Here is a link to an untranslated page

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/cz/feeds_all.atom.xml b/plugins/i18n_subsites/test_data/output/cz/feeds_all.atom.xml new file mode 100644 index 0000000..7415e1f --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/cz/feeds_all.atom.xml @@ -0,0 +1,10 @@ + +Testovací stránkahttp://example.com/test/cz/2014-09-15T00:00:00+00:00Přeložený článek2014-09-15T00:00:00+00:002014-09-15T00:00:00+00:00Test Testovičtag:example.com,2014-09-15:/test/cz/translated-article.html<p>Jednoduchý článek s překlady. +Zde je odkaz na <a class="reference external" href="http://example.com/test/images/img.png">nějaký obrázek</a>.</p> +Ein übersetzter Artikel2014-09-14T00:00:00+00:002014-09-14T00:00:00+00:00Test Testovičtag:example.com,2014-09-14:/test/de/translated-article.html<p>Ein einfacher Artikel mit einer Übersetzung. +Hier ist ein Link zur <a class="reference external" href="http://example.com/test/images/img.png">einigem Bild</a>.</p> +A translated article2014-09-13T00:00:00+00:002014-09-13T00:00:00+00:00Test Testovičtag:example.com,2014-09-13:/test/translated-article.html<p>A simple article with a translation. +Here is a link to <a class="reference external" href="http://example.com/test/images/img.png">some image</a>.</p> +An untranslated article2014-07-14T00:00:00+00:002014-07-14T00:00:00+00:00Test Testovičtag:example.com,2014-07-14:/test/cz/an-untranslated-article-en.html<p>An article without a translation. +Here is a link to an <a class="reference external" href="http://example.com/test/pages/untranslated-page.html">untranslated page</a></p> + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/cz/index.html b/plugins/i18n_subsites/test_data/output/cz/index.html new file mode 100644 index 0000000..c5fca32 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/cz/index.html @@ -0,0 +1,56 @@ + + + + Welcome to our Testovací stránka + + + + + + + + + + +
+

All articles

+ +
    +
  1. +
  2. +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/cz/pages/404.html b/plugins/i18n_subsites/test_data/output/cz/pages/404.html new file mode 100644 index 0000000..884203b --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/cz/pages/404.html @@ -0,0 +1,40 @@ + + + + Testovací stránka - 404 stránka + + + + + + + + + + + + + + + +

404 stránka

+ Translations: +de +en + + +

Jednoduchá 404 stránka.

+ + +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + diff --git a/plugins/i18n_subsites/test_data/output/cz/translated-article.html b/plugins/i18n_subsites/test_data/output/cz/translated-article.html new file mode 100644 index 0000000..5a5e545 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/cz/translated-article.html @@ -0,0 +1,61 @@ + + + + Testovací stránka - Přeložený článek + + + + + + + + + + + + + + + + + + +
+
+

+ Přeložený článek

+ Translations: +de +en + +
+ +
+

Jednoduchý článek s překlady. +Zde je odkaz na nějaký obrázek.

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/drafts/an-untranslated-article-en.html b/plugins/i18n_subsites/test_data/output/de/drafts/an-untranslated-article-en.html new file mode 100644 index 0000000..f01dc31 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/drafts/an-untranslated-article-en.html @@ -0,0 +1,55 @@ + + + + Testseite - An untranslated article + + + + + + + + + + + + + + + +
+
+

+ An untranslated article

+ +
+ +
+

An article without a translation. +Here is a link to an untranslated page

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/feeds_all.atom.xml b/plugins/i18n_subsites/test_data/output/de/feeds_all.atom.xml new file mode 100644 index 0000000..8d845fe --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/feeds_all.atom.xml @@ -0,0 +1,8 @@ + +Testseitehttp://example.com/test/de/2014-09-15T00:00:00+00:00Přeložený článek2014-09-15T00:00:00+00:002014-09-15T00:00:00+00:00Der Testertag:example.com,2014-09-15:/test/cz/translated-article.html<p>Jednoduchý článek s překlady. +Zde je odkaz na <a class="reference external" href="http://example.com/test/images/img.png">nějaký obrázek</a>.</p> +Ein übersetzter Artikel2014-09-14T00:00:00+00:002014-09-14T00:00:00+00:00Der Testertag:example.com,2014-09-14:/test/de/translated-article.html<p>Ein einfacher Artikel mit einer Übersetzung. +Hier ist ein Link zur <a class="reference external" href="http://example.com/test/images/img.png">einigem Bild</a>.</p> +A translated article2014-09-13T00:00:00+00:002014-09-13T00:00:00+00:00Der Testertag:example.com,2014-09-13:/test/translated-article.html<p>A simple article with a translation. +Here is a link to <a class="reference external" href="http://example.com/test/images/img.png">some image</a>.</p> + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/index.html b/plugins/i18n_subsites/test_data/output/de/index.html new file mode 100644 index 0000000..fc43ae1 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/index.html @@ -0,0 +1,44 @@ + + + + Willkommen Sie zur unserer Testseite + + + + + + + + + + +
+

All articles

+ +
    +
  1. +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/pages/404.html b/plugins/i18n_subsites/test_data/output/de/pages/404.html new file mode 100644 index 0000000..6425660 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/pages/404.html @@ -0,0 +1,40 @@ + + + + Testseite - Eine 404 Seite + + + + + + + + + + + + + + + +

Eine 404 Seite

+ Translations: +cz +en + + +

Eine einfache 404 Seite.

+ + +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/pages/untranslated-page-en.html b/plugins/i18n_subsites/test_data/output/de/pages/untranslated-page-en.html new file mode 100644 index 0000000..2df5ff9 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/pages/untranslated-page-en.html @@ -0,0 +1,34 @@ + + + + Testseite - Untranslated page + + + + + + + + + + + + +

Untranslated page

+ + +

This page has no translation.

+ + +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/de/translated-article.html b/plugins/i18n_subsites/test_data/output/de/translated-article.html new file mode 100644 index 0000000..9393b95 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/de/translated-article.html @@ -0,0 +1,61 @@ + + + + Testseite - Ein übersetzter Artikel + + + + + + + + + + + + + + + + + + +
+
+

+ Ein übersetzter Artikel

+ Translations: +cz +en + +
+
+ +
+ By Der Tester +
+
+ Category: misc +
+
+
+

Ein einfacher Artikel mit einer Übersetzung. +Hier ist ein Link zur einigem Bild.

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/feeds_all.atom.xml b/plugins/i18n_subsites/test_data/output/feeds_all.atom.xml new file mode 100644 index 0000000..c6c0908 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/feeds_all.atom.xml @@ -0,0 +1,10 @@ + +Testing sitehttp://example.com/test/2014-09-15T00:00:00+00:00Přeložený článek2014-09-15T00:00:00+00:002014-09-15T00:00:00+00:00The Testertag:example.com,2014-09-15:/test/cz/translated-article.html<p>Jednoduchý článek s překlady. +Zde je odkaz na <a class="reference external" href="http://example.com/test/images/img.png">nějaký obrázek</a>.</p> +Ein übersetzter Artikel2014-09-14T00:00:00+00:002014-09-14T00:00:00+00:00The Testertag:example.com,2014-09-14:/test/de/translated-article.html<p>Ein einfacher Artikel mit einer Übersetzung. +Hier ist ein Link zur <a class="reference external" href="http://example.com/test/images/img.png">einigem Bild</a>.</p> +A translated article2014-09-13T00:00:00+00:002014-09-13T00:00:00+00:00The Testertag:example.com,2014-09-13:/test/translated-article.html<p>A simple article with a translation. +Here is a link to <a class="reference external" href="http://example.com/test/images/img.png">some image</a>.</p> +An untranslated article2014-07-14T00:00:00+00:002014-07-14T00:00:00+00:00The Testertag:example.com,2014-07-14:/test/an-untranslated-article.html<p>An article without a translation. +Here is a link to an <a class="reference external" href="http://example.com/test/pages/untranslated-page.html">untranslated page</a></p> + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/images/img.png b/plugins/i18n_subsites/test_data/output/images/img.png new file mode 100644 index 0000000..e69de29 diff --git a/plugins/i18n_subsites/test_data/output/index.html b/plugins/i18n_subsites/test_data/output/index.html new file mode 100644 index 0000000..c455687 --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/index.html @@ -0,0 +1,57 @@ + + + + Welcome to our Testing site + + + + + + + + + + +
+

All articles

+ +
    +
  1. +
  2. +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/pages/404.html b/plugins/i18n_subsites/test_data/output/pages/404.html new file mode 100644 index 0000000..4695f3c --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/pages/404.html @@ -0,0 +1,41 @@ + + + + Testing site - A 404 page + + + + + + + + + + + + + + + +

A 404 page

+ Translations: +cz +de + + +

A simple 404 page.

+ + +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/pages/untranslated-page.html b/plugins/i18n_subsites/test_data/output/pages/untranslated-page.html new file mode 100644 index 0000000..3ff02df --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/pages/untranslated-page.html @@ -0,0 +1,35 @@ + + + + Testing site - Untranslated page + + + + + + + + + + + + +

Untranslated page

+ + +

This page has no translation.

+ + +
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/output/theme/style.css b/plugins/i18n_subsites/test_data/output/theme/style.css new file mode 100644 index 0000000..e69de29 diff --git a/plugins/i18n_subsites/test_data/output/translated-article.html b/plugins/i18n_subsites/test_data/output/translated-article.html new file mode 100644 index 0000000..45be1bb --- /dev/null +++ b/plugins/i18n_subsites/test_data/output/translated-article.html @@ -0,0 +1,62 @@ + + + + Testing site - A translated article + + + + + + + + + + + + + + + + + + +
+
+

+ A translated article

+ Translations: +cz +de + +
+
+ +
+ By The Tester +
+
+ Category: misc +
+
+
+

A simple article with a translation. +Here is a link to some image.

+ +
+
+
+
+ Proudly powered by Pelican, + which takes great advantage of Python. +
+
+ + \ No newline at end of file diff --git a/plugins/i18n_subsites/test_data/pelicanconf.py b/plugins/i18n_subsites/test_data/pelicanconf.py new file mode 100644 index 0000000..55018f2 --- /dev/null +++ b/plugins/i18n_subsites/test_data/pelicanconf.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- # +from __future__ import unicode_literals + +AUTHOR = 'The Tester' +SITENAME = 'Testing site' +SITEURL = 'http://example.com/test' + +# to make the test suite portable +TIMEZONE = 'UTC' + +DEFAULT_LANG = 'en' +LOCALE = 'en_US.UTF-8' + +# Generate only one feed +FEED_ALL_ATOM = 'feeds_all.atom.xml' +CATEGORY_FEED_ATOM = None +TRANSLATION_FEED_ATOM = None +AUTHOR_FEED_ATOM = None +AUTHOR_FEED_RSS = None + +# Disable unnecessary pages +CATEGORY_SAVE_AS = '' +TAG_SAVE_AS = '' +AUTHOR_SAVE_AS = '' +ARCHIVES_SAVE_AS = '' +AUTHORS_SAVE_AS = '' +CATEGORIES_SAVE_AS = '' +TAGS_SAVE_AS = '' + +PLUGIN_PATHS = ['../../'] +PLUGINS = ['i18n_subsites'] + +THEME = 'localized_theme' +JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']} + +from blinker import signal +tmpsig = signal('tmpsig') +I18N_FILTER_SIGNALS = [tmpsig] + +I18N_SUBSITES = { + 'de': { + 'SITENAME': 'Testseite', + 'AUTHOR': 'Der Tester', + 'LOCALE': 'de_DE.UTF-8', + }, + 'cz': { + 'SITENAME': 'Testovací stránka', + 'AUTHOR': 'Test Testovič', + 'I18N_UNTRANSLATED_PAGES': 'remove', + 'I18N_UNTRANSLATED_ARTICLES': 'keep', + }, + } -- cgit v1.2.3