From b7532b5247ff2a97ce917539bfc07c49d826361d Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 8 Nov 2016 15:03:22 +0530 Subject: [PATCH] FIX: download archive confirm message was broken for non-staff users --- .../javascripts/discourse/controllers/user-activity.js.es6 | 2 +- config/locales/client.en.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/user-activity.js.es6 b/app/assets/javascripts/discourse/controllers/user-activity.js.es6 index b899408f420..4e9a063060d 100644 --- a/app/assets/javascripts/discourse/controllers/user-activity.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user-activity.js.es6 @@ -23,7 +23,7 @@ export default Ember.Controller.extend({ actions: { exportUserArchive() { bootbox.confirm( - I18n.t("admin.export_csv.user_archive_confirm"), + I18n.t("user.download_archive_confirm"), I18n.t("no_value"), I18n.t("yes_value"), function(confirmed) { diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index d6a10c0d733..3a00814e541 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -488,6 +488,7 @@ en: mute: "Mute" edit: "Edit Preferences" download_archive: "Download My Posts" + download_archive_confirm: "Are you sure you want to download your posts?" new_private_message: "New Message" private_message: "Message" private_messages: "Messages" @@ -2621,7 +2622,6 @@ en: confirm: "Are you sure you want to rollback the database to the previous working state?" export_csv: - user_archive_confirm: "Are you sure you want to download your posts?" success: "Export initiated, you will be notified via message when the process is complete." failed: "Export failed. Please check the logs." rate_limit_error: "Posts can be downloaded once per day, please try again tomorrow." @@ -3302,5 +3302,3 @@ en: admin: "Admin" moderator: "Moderator" regular: "Regular User" - -