From de9a3a5591d4b17c0e0f17abc0ee8ffe85de50e6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 14:24:03 +0200 Subject: Extract admin strings to i18n: assets and events clusters --- app/views/assets/new.html.erb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'app/views/assets/new.html.erb') diff --git a/app/views/assets/new.html.erb b/app/views/assets/new.html.erb index 7bb8a9ce..51e66cd2 100644 --- a/app/views/assets/new.html.erb +++ b/app/views/assets/new.html.erb @@ -1,5 +1,5 @@
-

New asset

+

<%= t(".title") %>

<%= form_for(@asset, :html => { :multipart => true }) do |f| %> <%= form_error_messages(f) %> @@ -8,51 +8,51 @@
<%= f.label :name %>
<%= f.text_field :name %>
-
<%= f.label :upload, "File" %>
+
<%= f.label :upload %>
<%= f.file_field :upload %> -

…or drop a file here.

+

<%= t("assets.form.drop_hint") %>

<%= f.label :creator %>
<%= f.text_field :creator %>
-
<%= f.label :source_url, "Source URL" %>
+
<%= f.label :source_url %>
<%= f.text_field :source_url %>
-
<%= f.label :license_key, "License" %>
+
<%= f.label :license_key %>
<%= f.select :license_key, options_for_select( - [["— none —", ""]] + AssetLicense.keys.map { |key| [t("asset_licenses.#{key}"), key] }, + [[t("assets.form.none_option"), ""]] + AssetLicense.keys.map { |key| [t("asset_licenses.#{key}"), key] }, @asset.license_key ) %>
-
attach to page
+
<%= t("assets.form.attach_to_page") %>
<%= text_field_tag :asset_node_search_term, @attach_node&.title, - :placeholder => "Search for a page…", :autocomplete => "off" %> + :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %>
<%= hidden_field_tag :node_id, @attach_node&.id %> - Optional — attaches this asset to that page, all pending versions included. + <%= t("assets.form.attach_hint") %>
- - Applies only if the page has no headline yet. + + <%= t("assets.form.headline_hint") %>
-
Actions
+
<%= t("admin.columns.actions") %>
-
<%= f.submit 'Create' %>
-
<%= link_to 'Back', assets_path %>
+
<%= f.submit f.submit t("admin.common.create") %>
+
<%= link_to link_to t("admin.common.back"), assets_path %>
-- cgit v1.3