Procházet zdrojové kódy

Add "and" before the last item in the translation and remove full stop after the last item

Talha Mansoor před 11 roky
rodič
revize
dcc35780ee
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      templates/_includes/translations.html

+ 1 - 1
templates/_includes/translations.html

@@ -3,7 +3,7 @@
 <p id="list-of-translations">
 This post is also available in:
     {% for translation in article.translations %}
-    <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>{%if not loop.last %}, {% else %}.{% endif %}
+    <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>{% if loop.index0 + 2 == loop.length %} and{% elif not loop.last %}, {% endif %}
     {% endfor %}
 </p>
 {% endif %}