Skip to content

Commit

Permalink
Move lang to locale for destroy shared page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Oct 16, 2013
1 parent ff4d6c5 commit 3c9e7a7
Show file tree
Hide file tree
Showing 35 changed files with 115 additions and 351 deletions.
9 changes: 0 additions & 9 deletions app/views/admin/resources/destroy.html.erb

This file was deleted.

14 changes: 10 additions & 4 deletions app/views/admin/shared/destroy.html.erb
@@ -1,8 +1,14 @@
<%- content_for :page_heading do %>
<i class="icon-large"></i><h2 class="page-title"><%= _(@record.class.name) %></h2>
<i class="icon-large"></i>
<h2 class="page-title"><%= _(@record.class.name) %></h2>
<% end %>

<p><%= _("Are you sure you want to delete this %s?", _(@record.class.name.downcase))%></p>
<%= form_tag :action => "destroy", :id => @record.id do %>
<div class='form-actions'><%= cancel %> <%= _("or") %> <input type="submit" value='<%= _("delete") %>' class="btn btn-danger" /></div>
<p>
<%= t(".are_you_sure", element: _(@record.class.name.downcase))%>
</p>

<%= form_tag action: "destroy", id: @record.id do %>
<div class='form-actions'>
<%= t(".action_or_other", first_action: link_to(t(".cancel"), {action: 'index'}, class: 'btn'), second_action: submit_tag(t(".delete"), class: "btn btn-danger")) %>
</div>
<% end %>
6 changes: 6 additions & 0 deletions config/locales/da.yml
Expand Up @@ -5,6 +5,12 @@ da:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} eller %{second_action}"
cancel: "Anuller"
delete: "Slet"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/de.yml
Expand Up @@ -5,6 +5,12 @@ de:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} oder %{second_action}"
cancel: "Cancel"
delete: "Löschen"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/en.yml
Expand Up @@ -5,6 +5,12 @@ en:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} or %{second_action}"
cancel: "Cancel"
delete: "Delete"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/es-MX.yml
Expand Up @@ -5,6 +5,12 @@ es-MX:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "&iquest;Est&aacute;s seguro que deseas eliminar este %{element}?"
action_or_other: "%{first_action} o %{second_action}"
cancel: "Cancelar"
delete: "Eliminar"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/fr.yml
Expand Up @@ -5,6 +5,12 @@ fr:
next: "Suivant"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Êtes-vous certain de vouloir supprimer ce %{element}"
action_or_other: "%{first_action} ou %{second_action}"
cancel: "Annuler"
delete: "Supprimer"
resources:
index:
media_library: "Bibliothèque de média"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/he-IL.yml
Expand Up @@ -5,6 +5,12 @@ he-IL:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "האם אתה בטוח שברצונך למחוק את %{element} הזו?"
action_or_other: "%{first_action} או %{second_action}"
cancel: "בטל"
delete: "מחק"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/it.yml
Expand Up @@ -5,6 +5,12 @@ it:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Sei sicuro di voler eliminare questo %{element}?"
action_or_other: "%{first_action} o %{second_action}"
cancel: "Annulla"
delete: "Elimina"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/ja.yml
Expand Up @@ -5,6 +5,12 @@ ja:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} または %{second_action}"
cancel: "キャンセル"
delete: "削除"
resources:
index:
media_library: "Media Library"
Expand Down
12 changes: 9 additions & 3 deletions config/locales/lt.yml
Expand Up @@ -5,6 +5,12 @@ lt:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Ar jūs tikrai nori ištrinti šį %{element}?"
action_or_other: "%{first_action} arba %{second_action}"
cancel: "Baigti"
delete: "Trinti"
resources:
index:
media_library: "Media Library"
Expand Down Expand Up @@ -67,8 +73,8 @@ lt:
email: "Email"
url: "Url"
your_comment: "Your comment"
action_or_other: "%{first_action} or %{second_action}"
cancel: "Cancel"
action_or_other: "%{first_action} arba %{second_action}"
cancel: "Baigti"
save: "Save"
button:
select_action: "Select action"
Expand All @@ -79,7 +85,7 @@ lt:
submit: "Submit"
feedback:
this_comment_by_was_flagged_as_spam: "This comment by %{author} was flagged as spam, %{cancel_link}?"
cancel: "Cancel"
cancel: "Baigti"
dashboard:
drafts:
your_drafts: "Your drafts"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/nb-NO.yml
Expand Up @@ -5,6 +5,12 @@ nb-NO:
next: "Neste"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Er du sikker på at du vil slette denne %{element}?"
action_or_other: "%{first_action} eller %{second_action}"
cancel: "Annuller"
delete: "Slett"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/nl.yml
Expand Up @@ -5,6 +5,12 @@ nl:
next: "Volgende"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} of %{second_action}"
cancel: "Terug"
delete: "Verwijderen"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/pl.yml
Expand Up @@ -5,6 +5,12 @@ pl:
next: "Następne"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} lub %{second_action}"
cancel: "Anuluj"
delete: "Usuń"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/pt-BR.yml
Expand Up @@ -5,6 +5,12 @@ pt-BR:
next: "Próximo"
last: "Anterior"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} ou %{second_action}"
cancel: "Cancelar"
delete: "Deletar"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/ro.yml
Expand Up @@ -5,6 +5,12 @@ ro:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} sau %{second_action}"
cancel: "Anulare"
delete: "Delete"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/ru.yml
Expand Up @@ -5,6 +5,12 @@ ru:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Вы уверены, что хотите удалить %{element}?"
action_or_other: "%{first_action} или %{second_action}"
cancel: "Отменить"
delete: "Удалить"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/zh-CN.yml
Expand Up @@ -5,6 +5,12 @@ zh-CN:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} 或 %{second_action}"
cancel: "取消"
delete: "删除"
resources:
index:
media_library: "Media Library"
Expand Down
6 changes: 6 additions & 0 deletions config/locales/zh-TW.yml
Expand Up @@ -5,6 +5,12 @@ zh-TW:
next: "Next"
last: "Last"
admin:
shared:
destroy:
are_you_sure: "Are you sure you want to delete this %{element}"
action_or_other: "%{first_action} 或 %{second_action}"
cancel: "取消"
delete: "刪除"
resources:
index:
media_library: "Media Library"
Expand Down
40 changes: 0 additions & 40 deletions lang/da_DK.rb
@@ -1,32 +1,5 @@
# coding: utf-8
Localization.define("da_DK") do |l|

# app/controllers/accounts_controller.rb
l.store "Login successful", ""
l.store "Login unsuccessful", ""
l.store "An email has been successfully sent to your address with your new password", ""
l.store "Oops, something wrong just happened", ""
l.store "Successfully logged out", ""
l.store "login", ""
l.store "signup", ""
l.store "Recover your password", ""

# app/controllers/admin/categories_controller.rb
l.store "Category was successfully saved.", ""
l.store "Category could not be saved.", ""

# app/controllers/admin/content_controller.rb
l.store "Error, you are not allowed to perform this action", ""
l.store "Preview", ""
l.store "Deleted", ""
l.store "Not found", ""
l.store "Deleted %d item(s)", ""
l.store "Confirmed classification of %s item(s)", ""
l.store "Not implemented", ""
l.store "Delete", "Slet"
l.store "delete", ""
l.store "Delete content", ""
l.store "Are you sure?", ""
l.store "Please select", "Vælg venligst"
l.store "All categories", "Alle kategorier"
l.store "All authors", "Alle forfattere"
Expand Down Expand Up @@ -238,19 +211,6 @@
l.store "remove", "supprimer"

l.store "Display name", "Vis navn"

l.store "Are you sure you want to delete the tag", ""
l.store "Delete this tag", ""

l.store "Editing ", ""

l.store "Display Name", ""

# app/views/admin/themes/catalogue.html.erb
l.store "Sorry the theme catalogue is not available", ""
l.store "Theme catalogue", ""

# app/views/admin/themes/index.html.erb
l.store "Active theme", "Aktiv tema"
l.store "Choose a theme", "Vælg et tema"
l.store "Use this theme", ""
Expand Down

0 comments on commit 3c9e7a7

Please sign in to comment.