diff --git a/.travis.yml b/.travis.yml index 89d08e2..863327a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ python: - "3.4" install: - pip install pelican markdown +before_script: + - git clone https://github.com/getpelican/pelican-plugins plugins script: pelican -s tests/pelicanconf.py notifications: - email: false \ No newline at end of file + email: false diff --git a/babel.cfg b/babel.cfg new file mode 100644 index 0000000..2274808 --- /dev/null +++ b/babel.cfg @@ -0,0 +1 @@ +[jinja2: templates/**.html] diff --git a/templates/archives.html b/templates/archives.html index f7fc626..d1a4fc0 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,10 +1,10 @@ {% extends "base.html" %} -{% block title %} – Archives{% endblock %} +{% block title %} – {% trans %}Archives{% endtrans %}{% endblock %} {% block content %}
-

Archives

+

{% trans %}Archives{% endtrans %}

diff --git a/templates/article.html b/templates/article.html index a681793..a3c3a0f 100644 --- a/templates/article.html +++ b/templates/article.html @@ -13,7 +13,7 @@

{{ article.title }}

-

Posted on {{ article.locale_date }} in {{ article.category }}

+

{% trans %}Posted on{% endtrans %} {{ article.locale_date }} {% trans %}in{% endtrans %} {{ article.category }}

{{ article.content }} @@ -29,14 +29,14 @@
{% if ADD_THIS_ID %} {% endif %} {% if article.related_posts %}