From c8e0edc6aab194c8bccc9c123270f43e61e65930 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Mon, 15 Feb 2021 13:51:01 +0900 Subject: [PATCH] Add locale --- app/views/wiki/show.html.erb | 2 +- config/locales/de.yml | 1 + config/locales/en.yml | 1 + config/locales/ja.yml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index beb76c1df..d6db7e477 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -17,7 +17,7 @@ <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %> <% if User.current.allowed_to?(:rename_wiki_pages, @project) %> <% @redirects_to_self.map { |redirect| %> - <%= link_to("Delete redirect from #{WikiPage.pretty_title(redirect.title)}", {:controller => 'wiki_redirects', :action => 'destroy', :project_id => @project.identifier, :wiki_page_id => @page.title, :id => redirect.id}, :method => :delete, :class => 'icon icon-link-break') %> + <%= link_to(l(:button_delete_redirect, :page_title => WikiPage.pretty_title(redirect.title)), {:controller => 'wiki_redirects', :action => 'destroy', :project_id => @project.identifier, :wiki_page_id => @page.title, :id => redirect.id}, :method => :delete, :class => 'icon icon-link-break') %> <% } %> <% end %> <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'icon icon-del') %> diff --git a/config/locales/de.yml b/config/locales/de.yml index bcfbe9b7d..f6dbfa98f 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -177,6 +177,7 @@ de: button_create_and_continue: Anlegen und weiter button_delete: Löschen button_delete_my_account: Mein Benutzerkonto löschen + button_delete_redirect: "Lösche Umleitung von %{page_title}" button_download: Herunterladen button_edit: Bearbeiten button_edit_associated_wikipage: "Zugehörige Wikiseite bearbeiten: %{page_title}" diff --git a/config/locales/en.yml b/config/locales/en.yml index 335614dfb..3009f3e8b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1174,6 +1174,7 @@ en: button_unarchive: Unarchive button_reset: Reset button_rename: Rename + button_delete_redirect: "Delete redirect from %{page_title}" button_change_password: Change password button_copy: Copy button_copy_and_follow: Copy and follow diff --git a/config/locales/ja.yml b/config/locales/ja.yml index e22651e41..ad49db760 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -858,6 +858,7 @@ ja: button_unarchive: アーカイブ解除 button_reset: リセット button_rename: 名前変更 + button_delete_redirect: "%{page_title}からのリダイレクトを削除" button_change_password: パスワード変更 button_copy: コピー button_copy_and_follow: コピー後表示