From dd3f86988acb1c01b0af90a53bad81f3b213b562 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek <kjk@kjk.dog> Date: Mon, 6 Feb 2023 18:54:34 +0100 Subject: [PATCH] Localise strings for question visibility --- app/views/shared/_question.html.haml | 4 ++-- config/locales/views.en.yml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_question.html.haml b/app/views/shared/_question.html.haml index a5094207..e66fddc8 100644 --- a/app/views/shared/_question.html.haml +++ b/app/views/shared/_question.html.haml @@ -4,11 +4,11 @@ - if user_signed_in? && q.user == current_user .card-header %i.fa.fa-eye-slash - Only you can see this + = t(".visible_to_you") - elsif moderation_view? .card-header %i.fa.fa-eye-slash - You can see this because you are in moderation view + = t(".visible_mod_mode") .card-body{ data: { controller: q.long? ? "collapse" : nil } } .d-flex - if type == "discover" diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 65fcdee3..008f5f61 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -578,6 +578,9 @@ en: anonymous_block: deleted_question: "Deleted question" blocked: "blocked %{time} ago" + question: + visible_to_you: "Only visible to you" + visible_mod_mode: "You can see this because you are in moderation view" tabs: admin: announcements: "Announcements"