From 57e6c3861e021d216b200ebfc93f499b5e76f8e0 Mon Sep 17 00:00:00 2001
From: movilla <movilla@movilla-pc.(none)>
Date: Sat, 28 Apr 2012 23:42:37 +0200
Subject: [PATCH] Translation popup "Reshare author's post?" /stream

---
 app/assets/javascripts/app/views/feedback_view.js | 2 +-
 config/locales/javascript/javascript.en.yml       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/assets/javascripts/app/views/feedback_view.js b/app/assets/javascripts/app/views/feedback_view.js
index 869f27042f..86f83bb7f9 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 5f40d31946..02dfdc1bb3 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"
-- 
GitLab