From b3ef23f305736ce5c784026e163796c11497b6f9 Mon Sep 17 00:00:00 2001 From: Mohammed Alotaibi Date: Mon, 12 Feb 2024 20:46:48 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(i18n):=20reverse=20arrows=20?= =?UTF-8?q?in=20RTL=20languages=20(#272)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: welpo --- sass/parts/_misc.scss | 11 +++++++++++ static/feed_style.xsl | 2 +- templates/macros/list_posts.html | 4 ++-- templates/page.html | 6 +++--- templates/partials/paginate.html | 8 ++++---- templates/tags/single.html | 2 +- templates/taxonomy_single.html | 2 +- 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index fb77d85da..1a6dc370d 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -212,3 +212,14 @@ details summary { } } } + +:dir(rtl) .arrow { + display: inline-block; + transform: rotate(180deg); +} + +// This for the arrows that point to a corner, (e.g. '↗', '↘', '↙', '↖') +:dir(rtl) .arrow-corner { + display: inline-block; + transform: rotate(270deg); +} diff --git a/static/feed_style.xsl b/static/feed_style.xsl index a36aa4ae4..9d7ad6a69 100644 --- a/static/feed_style.xsl +++ b/static/feed_style.xsl @@ -42,7 +42,7 @@ -

+  

diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html index b61d0a3fc..d0f2fcc78 100644 --- a/templates/macros/list_posts.html +++ b/templates/macros/list_posts.html @@ -39,14 +39,14 @@

{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…

{% endif %}

- {{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }} → + {{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }}  {% endif %} {% if not loop.last %} {% if loop.index == max %} {% endif %} {% endif %} diff --git a/templates/page.html b/templates/page.html index b27c29201..b33ed7770 100644 --- a/templates/page.html +++ b/templates/page.html @@ -88,7 +88,7 @@

{# Show link to remote changes if enabled #} {% if config.extra.remote_repository_url and macros_settings::evaluate_setting_priority(setting="show_remote_changes", page=page, default_global_value=true) == "true" %} {{ separator }} -
  • {{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }}
  • +
  • {{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }} 
  • {% endif %} {% endif %} @@ -165,13 +165,13 @@

    TL;DR: