Use gettext for sensitive media warning.
authorPhil Hagelberg <phil@hagelb.org>
Wed, 30 Oct 2019 00:53:58 +0000 (17:53 -0700)
committerPhil Hagelberg <phil@hagelb.org>
Sun, 10 Nov 2019 02:07:50 +0000 (18:07 -0800)
lib/pleroma/web/static_fe/static_fe_view.ex
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex

index d633751dd1102632990a16bf6b96775f0b4e367b..1194b7ecc12a2bb587c056cb093eff9c23cdd32a 100644 (file)
@@ -6,6 +6,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
   use Pleroma.Web, :view
 
   alias Pleroma.User
+  alias Pleroma.Web.Gettext
   alias Pleroma.Web.MediaProxy
   alias Pleroma.Formatter
   alias Pleroma.Web.Metadata.Utils
index ed43ae838ae3fc5273f34dc8926bb6e869680675..c4cdb102956663082640a0b55336d830f7df3a1d 100644 (file)
@@ -15,7 +15,7 @@
     <%= for %{"name" => name, "url" => [url | _]} <- @data.attachment do %>
       <%= if @data.sensitive do %>
         <details class="nsfw">
-          <summary>sensitive media</summary>
+          <summary><%= Gettext.gettext("sensitive media") %></summary>
           <div>
             <%= render("_attachment.html", %{name: name, url: url["href"],
                                              mediaType: fetch_media_type(url)}) %>