diff --git a/app/assets/javascripts/app/views/feedback_view.js b/app/assets/javascripts/app/views/feedback_view.js index 869f27042f7be3f7ba38e2f7fe201e0024f1053c..86f83bb7f95abf3fb804de6b4517010db41f966f 100644 --- a/app/assets/javascripts/app/views/feedback_view.js +++ b/app/assets/javascripts/app/views/feedback_view.js @@ -26,7 +26,7 @@ app.views.Feedback = app.views.Base.extend({ resharePost : function(evt) { if(evt) { evt.preventDefault(); } - if(!window.confirm("Reshare " + this.model.reshareAuthor().name + "'s post?")) { return } + if(!window.confirm(Diaspora.I18n.t("reshares.post", {name: this.model.reshareAuthor().name}))) { return } var reshare = this.model.reshare() var model = this.model diff --git a/config/locales/javascript/javascript.en.yml b/config/locales/javascript/javascript.en.yml index 5f40d319466c31680f22dc46737f6dcfa0d51721..02dfdc1bb350e06b228d92563b76bc5d3026517f 100644 --- a/config/locales/javascript/javascript.en.yml +++ b/config/locales/javascript/javascript.en.yml @@ -61,6 +61,7 @@ en: reshares: duplicate: "That good, huh? You've already reshared that post!" successful: "The post was successfully reshared!" + post: "Reshare <%= name %>'s post?" aspect_navigation: select_all: "Select all" deselect_all: "Deselect all"