mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use proper locale for user archive download alerts
This commit is contained in:
@@ -23,7 +23,7 @@ export default Ember.Controller.extend({
|
||||
actions: {
|
||||
exportUserArchive() {
|
||||
bootbox.confirm(
|
||||
I18n.t("user.download_archive_confirm"),
|
||||
I18n.t("user.download_archive.confirm"),
|
||||
I18n.t("no_value"),
|
||||
I18n.t("yes_value"),
|
||||
function(confirmed) {
|
||||
|
||||
@@ -8,9 +8,9 @@ function exportEntityByType(type, entity, args) {
|
||||
|
||||
export function exportUserArchive() {
|
||||
return exportEntityByType('user', 'user_archive').then(function() {
|
||||
bootbox.alert(I18n.t("admin.export_csv.success"));
|
||||
bootbox.alert(I18n.t("user.download_archive.success"));
|
||||
}).catch(function() {
|
||||
bootbox.alert(I18n.t("admin.export_csv.rate_limit_error"));
|
||||
bootbox.alert(I18n.t("user.download_archive.rate_limit_error"));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
{{#if viewingSelf}}
|
||||
<div class='user-archive'>
|
||||
{{d-button action="exportUserArchive" label="user.download_archive" icon="download"}}
|
||||
{{d-button action="exportUserArchive" label="user.download_archive.button_text" icon="download"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/d-section}}
|
||||
|
||||
Reference in New Issue
Block a user