Use gettext for sensitive media warning.
This commit is contained in:
parent
2d1897e8a7
commit
e944a2213d
|
@ -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
|
||||
|
|
|
@ -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)}) %>
|
||||
|
|
Loading…
Reference in New Issue