Skip to content
Permalink
Browse files

Jinjify; clean up translations

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 31, 2015
1 parent d3b0263 commit 73c8f508169e47280147f18f1624bee86d249359
Showing with 971 additions and 123 deletions.
  1. +3 −0 CHANGES.txt
  2. +43 −0 nikola/data/themes/base-jinja/templates/author.tmpl
  3. +13 −0 nikola/data/themes/base-jinja/templates/authorindex.tmpl
  4. +17 −0 nikola/data/themes/base-jinja/templates/authors.tmpl
  5. +1 −1 nikola/data/themes/base-jinja/templates/index.tmpl
  6. +1 −1 nikola/data/themes/base-jinja/templates/post_header.tmpl
  7. +1 −1 nikola/data/themes/base-jinja/templates/sectionindex.tmpl
  8. +1 −1 nikola/data/themes/base-jinja/templates/tag.tmpl
  9. +4 −0 nikola/data/themes/base/messages/messages_ar.py
  10. +4 −0 nikola/data/themes/base/messages/messages_az.py
  11. +4 −0 nikola/data/themes/base/messages/messages_bg.py
  12. +4 −0 nikola/data/themes/base/messages/messages_bs.py
  13. +4 −0 nikola/data/themes/base/messages/messages_ca.py
  14. +4 −0 nikola/data/themes/base/messages/messages_cs.py
  15. +4 −0 nikola/data/themes/base/messages/messages_da.py
  16. +4 −0 nikola/data/themes/base/messages/messages_de.py
  17. +4 −0 nikola/data/themes/base/messages/messages_el.py
  18. +4 −4 nikola/data/themes/base/messages/messages_en.py
  19. +4 −0 nikola/data/themes/base/messages/messages_eo.py
  20. +4 −0 nikola/data/themes/base/messages/messages_es.py
  21. +4 −0 nikola/data/themes/base/messages/messages_et.py
  22. +4 −0 nikola/data/themes/base/messages/messages_eu.py
  23. +4 −0 nikola/data/themes/base/messages/messages_fa.py
  24. +4 −0 nikola/data/themes/base/messages/messages_fi.py
  25. +4 −0 nikola/data/themes/base/messages/messages_fil.py
  26. +4 −0 nikola/data/themes/base/messages/messages_fr.py
  27. +4 −0 nikola/data/themes/base/messages/messages_gl.py
  28. +4 −0 nikola/data/themes/base/messages/messages_hi.py
  29. +4 −0 nikola/data/themes/base/messages/messages_hr.py
  30. +4 −0 nikola/data/themes/base/messages/messages_id.py
  31. +4 −0 nikola/data/themes/base/messages/messages_it.py
  32. +4 −0 nikola/data/themes/base/messages/messages_ja.py
  33. +4 −0 nikola/data/themes/base/messages/messages_ko.py
  34. +4 −0 nikola/data/themes/base/messages/messages_nb.py
  35. +6 −2 nikola/data/themes/base/messages/messages_nl.py
  36. +4 −0 nikola/data/themes/base/messages/messages_pa.py
  37. +4 −0 nikola/data/themes/base/messages/messages_pl.py
  38. +4 −0 nikola/data/themes/base/messages/messages_pt.py
  39. +4 −0 nikola/data/themes/base/messages/messages_pt_br.py
  40. +9 −5 nikola/data/themes/base/messages/messages_ru.py
  41. +4 −0 nikola/data/themes/base/messages/messages_si_lk.py
  42. +4 −0 nikola/data/themes/base/messages/messages_sk.py
  43. +4 −0 nikola/data/themes/base/messages/messages_sl.py
  44. +4 −0 nikola/data/themes/base/messages/messages_sr.py
  45. +4 −0 nikola/data/themes/base/messages/{messages_sr@latin.py → messages_sr_latin.py}
  46. +4 −0 nikola/data/themes/base/messages/messages_sv.py
  47. +4 −0 nikola/data/themes/base/messages/messages_tl.py
  48. +4 −0 nikola/data/themes/base/messages/messages_tr.py
  49. +9 −5 nikola/data/themes/base/messages/messages_uk.py
  50. +4 −0 nikola/data/themes/base/messages/messages_ur.py
  51. +4 −0 nikola/data/themes/base/messages/messages_zh_cn.py
  52. +4 −0 nikola/data/themes/base/messages/messages_zh_tw.py
  53. +17 −0 nikola/data/themes/bootstrap3-jinja/templates/authors.tmpl
  54. +16 −1 nikola/nikola.py
  55. +1 −0 scripts/import_po.py
  56. +15 −2 translations/nikola.messages/ar.po
  57. +15 −2 translations/nikola.messages/az.po
  58. +15 −2 translations/nikola.messages/bg.po
  59. +15 −2 translations/nikola.messages/bs.po
  60. +15 −2 translations/nikola.messages/ca.po
  61. +15 −2 translations/nikola.messages/cs.po
  62. +15 −2 translations/nikola.messages/da.po
  63. +15 −2 translations/nikola.messages/de.po
  64. +15 −2 translations/nikola.messages/el.po
  65. +6 −0 translations/nikola.messages/en.po
  66. +15 −2 translations/nikola.messages/eo.po
  67. +16 −3 translations/nikola.messages/es.po
  68. +15 −2 translations/nikola.messages/et.po
  69. +15 −2 translations/nikola.messages/eu.po
  70. +15 −2 translations/nikola.messages/fa.po
  71. +16 −3 translations/nikola.messages/fi.po
  72. +15 −2 translations/nikola.messages/fil.po
  73. +15 −2 translations/nikola.messages/fr.po
  74. +15 −2 translations/nikola.messages/gl.po
  75. +15 −2 translations/nikola.messages/hi.po
  76. +15 −2 translations/nikola.messages/hr.po
  77. +15 −2 translations/nikola.messages/id.po
  78. +16 −3 translations/nikola.messages/it.po
  79. +15 −2 translations/nikola.messages/ja.po
  80. +15 −2 translations/nikola.messages/ko.po
  81. +16 −3 translations/nikola.messages/nb.po
  82. +16 −3 translations/nikola.messages/nl.po
  83. +15 −2 translations/nikola.messages/pa.po
  84. +15 −2 translations/nikola.messages/pl.po
  85. +16 −3 translations/nikola.messages/pt.po
  86. +15 −2 translations/nikola.messages/pt_BR.po
  87. +20 −6 translations/nikola.messages/ru.po
  88. +15 −2 translations/nikola.messages/si_LK.po
  89. +16 −3 translations/nikola.messages/sk.po
  90. +15 −2 translations/nikola.messages/sl.po
  91. +15 −2 translations/nikola.messages/sr.po
  92. +15 −2 translations/nikola.messages/sr@latin.po
  93. +15 −2 translations/nikola.messages/sv.po
  94. +15 −2 translations/nikola.messages/tl.po
  95. +15 −2 translations/nikola.messages/tr.po
  96. +20 −6 translations/nikola.messages/uk.po
  97. +16 −3 translations/nikola.messages/ur.po
  98. +15 −2 translations/nikola.messages/zh_CN.po
  99. +15 −2 translations/nikola.messages/zh_TW.po
@@ -19,10 +19,13 @@ Features
can be overwritten with ``POSTS_SECTION_COLORS`` option (Issue #1980)
* New ``TAG_PAGES_TITLES`` and ``CATEGORY_PAGES_TITLES`` options
(Issue #1962)
* Add Bosnian and Serbian (Latin) languages, by Saša Savić [bs, sr_latin]
* Add Portuguese (Portugal) language, by jamatos [pt]

Bugfixes
--------

* Clean up translations for third party components
* ``pagekind["main_index"]`` set on the main indexes to differentiate
them from all the other indexes.
* Add dependency on metadata file for 2-file posts (Issue #1968)
@@ -0,0 +1,43 @@
{# -*- coding: utf-8 -*- #}
{% extends 'list_post.tmpl' %}

{% block extra_head %}
{{ super() }}
{% if translations|length > 1 and generate_rss %}
{% for language in translations|sort %}
<link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for {{ kind }} {{ author }} ({{ language }})" href="{{ _link(kind + "_rss", author, language) }}">
{% endfor %}
{% elif generate_rss %}
<link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for {{ kind }} {{ author }}" href="{{ _link(kind + "_rss", author) }}">
{% endif %}
{% endblock %}


{% block content %}
<article class="authorpage">
<header>
<h1>{{ title|e }}</h1>
{% if description %}
<p>{{ description }}</p>
{% endif %}
<div class="metadata">
{% if translations|length > 1 and generate_rss %}
{% for language in translations|sort %}
<p class="feedlink">
<a href="{{ _link(kind + "_rss", author, language) }}" hreflang="{{ language }}" type="application/rss+xml">{{ messages('RSS feed', language) }} ({{ language }})</a>&nbsp;
</p>
{% endfor %}
{% elif generate_rss %}
<p class="feedlink"><a href="{{ _link(kind + "_rss", author) }}" type="application/rss+xml">{{ messages('RSS feed') }}</a></p>
{% endif %}
</div>
</header>
{% if posts %}
<ul class="postlist">
{% for post in posts %}
<li><a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a><time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format) }}">{{ post.formatted_date(date_format) }}</time></li>
{% endfor %}
</ul>
{% endif %}
</article>
{% endblock %}
@@ -0,0 +1,13 @@
{# -*- coding: utf-8 -*- #}
{% extends 'index.tmpl' %}

{% block extra_head %}
{{ super() }}
{% if tranlations|length > 1 and generate_atom %}
{% for language in translations|sort %}
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ author }} section ({{ language }})" href="{{ _link(kind + "_atom", author, language) }}">
{% endfor %}
{% elif generate_atom %}
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ author }} section" href="{{ _link("author" + "_atom", author) }}">
{% endif %}
{% endblock %}
@@ -0,0 +1,17 @@
{# -*- coding: utf-8 -*- #}
{% extends 'base.tmpl' %}

{% block content %}
<article class="authorindex">
{% if items %}
<h2>{{ messages("Authors") }}</h2>
<ul class="postlist">
{% for text, link in items %}
{% if text not in hidden_authors %}
<li><a class="reference listtitle" href="{{ link }}">{{ text }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</article>
{% endblock %}
@@ -20,7 +20,7 @@
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">
{% if author_pages_generated %}
<a href="{{_link('author', post.author())}}">{{ post.author() }}</a>
<a href="{{ _link('author', post.author()) }}">{{ post.author() }}</a>
{% else %}
{{ post.author() }}
{% endif %}
@@ -33,7 +33,7 @@
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">
{% if author_pages_generated %}
<a href="{{_link('author', post.author())}}">{{ post.author() }}</a>
<a href="{{ _link('author', post.author()) }}">{{ post.author() }}</a>
{% else %}
{{ post.author() }}
{% endif %}
@@ -4,7 +4,7 @@
{% block extra_head %}
{{ super() }}
{% if generate_atom %}
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ posts[0].section_name() }} section" href="${_link('section_index_atom', posts[0].section_slug())}">
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ posts[0].section_name() }} section" href="{{ _link('section_index_atom', posts[0].section_slug()) }}">
{% endif %}
{% endblock %}

@@ -43,7 +43,7 @@
{% if posts %}
<ul class="postlist">
{% for post in posts %}
<li><a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}</a> <time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format) }}">{{ post.formatted_date(date_format) }}</time></li>
<li><time class="listdate" datetime="{{ post.formatted_date('webiso') }}" title="{{ post.formatted_date(date_format) }}">{{ post.formatted_date(date_format) }}</time><a href="{{ post.permalink() }}" class="listtitle">{{ post.title()|e }}<a></li>
{% endfor %}
</ul>
{% endif %}
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "أيضا متوفر في:",
"Archive": "الأرشيف",
"Authors": "",
"Categories": "فئات",
"Comments": "التّعليقات",
"LANGUAGE": "العربيّة",
@@ -19,6 +20,7 @@
"Original site": "الموقع الأصلي",
"Posted:": "نشر:",
"Posts about %s": "مقالات عن s%",
"Posts by %s": "",
"Posts for year %s": "مقالات سنة s%",
"Posts for {month} {day}, {year}": "",
"Posts for {month} {year}": "",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "تصنيفات و فئات",
"Tags": "تصنيفات",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "مقالات قديمة, صفحة d%",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Həmçinin mövcuddur:",
"Archive": "Arxiv",
"Authors": "",
"Categories": "Kateqoriyalar",
"Comments": "Şərhlər",
"LANGUAGE": "Azərbaycan dili",
@@ -19,6 +20,7 @@
"Original site": "Original sayt",
"Posted:": "yazılma tarixi:",
"Posts about %s": "%s ilə bağlı yazılar",
"Posts by %s": "",
"Posts for year %s": "%s ilindəki yazılar",
"Posts for {month} {day}, {year}": "{month} {day}, {year} üçün yazılar",
"Posts for {month} {year}": "{month} {year} üçün yazılar",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Teqlər və Kateqoriyalar",
"Tags": "Teqlər",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "köhnə yazılar, səhifə %s",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Също достъпно в:",
"Archive": "Архив",
"Authors": "",
"Categories": "Категории",
"Comments": "",
"LANGUAGE": "Български",
@@ -19,6 +20,7 @@
"Original site": "Оригиналния сайт",
"Posted:": "Публиковано:",
"Posts about %s": "Публикации относно %s",
"Posts by %s": "",
"Posts for year %s": "Публикации за %s година",
"Posts for {month} {day}, {year}": "",
"Posts for {month} {year}": "Публикации за {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Тагове и Категории",
"Tags": "Тагове",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "стари публикации, страница %d",
@@ -6,6 +6,7 @@
"(active)": "(aktivno)",
"Also available in:": "Takođe dostupan u:",
"Archive": "Arhiva",
"Authors": "",
"Categories": "Kategorije",
"Comments": "Komentari",
"LANGUAGE": "Bosanski",
@@ -19,6 +20,7 @@
"Original site": "Izvorni sajt",
"Posted:": "Objavljeno:",
"Posts about %s": "Objave o %s",
"Posts by %s": "",
"Posts for year %s": "Objave u godini %s",
"Posts for {month} {day}, {year}": "Objave za {month} {day}, {year}",
"Posts for {month} {year}": "Objave za {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "Podkategorije:",
"Tags and Categories": "Oznake i kategorije",
"Tags": "Oznake",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "Vašu stranicu napišite ovdje.",
"Write your post here.": "Vašu objavu napišite ovdje.",
"old posts, page %d": "stare objave, strana %d",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "També disponibles en:",
"Archive": "Arxiu",
"Authors": "",
"Categories": "Categories",
"Comments": "Comentaris",
"LANGUAGE": "Català",
@@ -19,6 +20,7 @@
"Original site": "Lloc original",
"Posted:": "Publicat:",
"Posts about %s": "Entrades sobre %s",
"Posts by %s": "",
"Posts for year %s": "Entrades de l'any %s",
"Posts for {month} {day}, {year}": "",
"Posts for {month} {year}": "Publicat en {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Etiquetes i Categories",
"Tags": "Etiquetes",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "entrades antigues, pàgina %d",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Dostupné také v",
"Archive": "Archiv",
"Authors": "",
"Categories": "Kategorie",
"Comments": "Komentáře",
"LANGUAGE": "Čeština",
@@ -19,6 +20,7 @@
"Original site": "Původní stránka",
"Posted:": "Zveřejněno:",
"Posts about %s": "Příspěvky o %s",
"Posts by %s": "",
"Posts for year %s": "Příspěvky v roce %s",
"Posts for {month} {day}, {year}": "Příspěvky v {month} {day}, {year}",
"Posts for {month} {year}": "Příspěvky v {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Štítky a kategorie",
"Tags": "Štítky",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "staré příspěvky, strana %d",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Fås også i:",
"Archive": "Arkiv",
"Authors": "",
"Categories": "Kategorier",
"Comments": "Kommentarer",
"LANGUAGE": "Dansk",
@@ -19,6 +20,7 @@
"Original site": "Oprindeligt hjemmeside",
"Posted:": "Opslået:",
"Posts about %s": "Indlæg om %s",
"Posts by %s": "",
"Posts for year %s": "Indlæg for %s",
"Posts for {month} {day}, {year}": "Indlæs for {month} {day}, {year}",
"Posts for {month} {year}": "Indlæg for {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Nøgleord og kategorier",
"Tags": "Nøgleord",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "gamle indlæg, side %d",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Auch verfügbar in:",
"Archive": "Archiv",
"Authors": "",
"Categories": "Kategorien",
"Comments": "Kommentare",
"LANGUAGE": "Deutsch",
@@ -19,6 +20,7 @@
"Original site": "Original-Seite",
"Posted:": "Veröffentlicht:",
"Posts about %s": "Einträge über %s",
"Posts by %s": "",
"Posts for year %s": "Einträge aus dem Jahr %s",
"Posts for {month} {day}, {year}": "Einträge vom {day}. {month} {year}",
"Posts for {month} {year}": "Einträge aus {month} {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "Unterkategorien:",
"Tags and Categories": "Tags und Kategorien",
"Tags": "Tags",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "Ältere Einträge, Seite %d",
@@ -6,6 +6,7 @@
"(active)": "",
"Also available in:": "Διαθέσιμο και στα:",
"Archive": "Αρχείο",
"Authors": "",
"Categories": "Κατηγορίες",
"Comments": "Σχόλια",
"LANGUAGE": "Ελληνικά",
@@ -19,6 +20,7 @@
"Original site": "Ιστοσελίδα αρχικής ανάρτησης",
"Posted:": "Αναρτήθηκε:",
"Posts about %s": "Αναρτήσεις για %s",
"Posts by %s": "",
"Posts for year %s": "Αναρτήσεις για το έτος %s",
"Posts for {month} {day}, {year}": "Αναρτήσεις στις {day} {month}, {year}",
"Posts for {month} {year}": "Αναρτήσεις για τον {month} του {year}",
@@ -32,6 +34,8 @@
"Subcategories:": "",
"Tags and Categories": "Ετικέτες και κατηγορίες",
"Tags": "Ετικέτες",
"Uncategorized": "",
"Updates": "",
"Write your page here.": "",
"Write your post here.": "",
"old posts, page %d": "σελίδα παλαιότερων αναρτήσεων %d",
@@ -6,6 +6,7 @@
"(active)": "(active)",
"Also available in:": "Also available in:",
"Archive": "Archive",
"Authors": "Authors",
"Categories": "Categories",
"Comments": "Comments",
"LANGUAGE": "English",
@@ -19,6 +20,7 @@
"Original site": "Original site",
"Posted:": "Posted:",
"Posts about %s": "Posts about %s",
"Posts by %s": "Posts by %s",
"Posts for year %s": "Posts for year %s",
"Posts for {month} {day}, {year}": "Posts for {month} {day}, {year}",
"Posts for {month} {year}": "Posts for {month} {year}",
@@ -32,12 +34,10 @@
"Subcategories:": "Subcategories:",
"Tags and Categories": "Tags and Categories",
"Tags": "Tags",
"Uncategorized": "Uncategorized",
"Updates": "Updates",
"Write your page here.": "Write your page here.",
"Write your post here.": "Write your post here.",
"old posts, page %d": "old posts, page %d",
"page %d": "page %d",
"Uncategorized": "Uncategorized",
"Updates": "Updates",
"Authors": "Authors",
"Posts by %s": "Posts by %s"
}

0 comments on commit 73c8f50

Please sign in to comment.
You can’t perform that action at this time.