Use gettext for sensitive media warning.

This commit is contained in:
Phil Hagelberg 2019-10-29 17:53:58 -07:00
parent 2d1897e8a7
commit e944a2213d
2 changed files with 2 additions and 1 deletions

View 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

View 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)}) %>