Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Translations for Destroy Confirms #247

Merged
merged 1 commit into from
Jan 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pageflow.EditChapterView = Backbone.Marionette.Layout.extend({
},

destroy: function() {
if (confirm("Kapitel einschließlich ALLER enthaltener Seiten wirklich löschen?\n\nDieser Schritt kann nicht rückgängig gemacht werden.")) {
if (confirm(I18n.t('pageflow.editor.views.edit_chapter_view.confirm_destroy'))) {
this.model.destroy();
this.goBack();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pageflow.EditPageView = Backbone.Marionette.Layout.extend({
},

destroy: function() {
if (confirm("Seite wirklich löschen?")) {
if (confirm(I18n.t('pageflow.editor.views.edit_page_view.confirm_destroy'))) {
this.model.destroy();
this.goBack();
}
Expand Down
17 changes: 17 additions & 0 deletions config/locales/new/missing_confirms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
de:
pageflow:
editor:
views:
edit_chapter_view:
confirm_destroy: "Kapitel einschließlich ALLER enthaltener Seiten wirklich löschen?\n\nDieser Schritt kann nicht rückgängig gemacht werden."
edit_page_view:
confirm_destroy: "Seite wirklich löschen?"

en:
pageflow:
editor:
views:
edit_chapter_view:
confirm_destroy: "Really delete this chapter including ALL its pages?\n\nThis operation cannot be undone."
edit_page_view:
confirm_destroy: "Really delete this page?"