Explorar el Código

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

Talha Mansoor hace 11 años
padre
commit
dcc35780ee
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 %}