diff --git a/app/assets/javascripts/discourse/controllers/preferences_controller.js b/app/assets/javascripts/discourse/controllers/preferences_controller.js index eae0af1e31b..b784fefee0a 100644 --- a/app/assets/javascripts/discourse/controllers/preferences_controller.js +++ b/app/assets/javascripts/discourse/controllers/preferences_controller.js @@ -43,6 +43,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({ { name: I18n.t('user.new_topic_duration.after_n_days', { count: 1 }), value: 60 * 24 }, { name: I18n.t('user.new_topic_duration.after_n_days', { count: 2 }), value: 60 * 48 }, { name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 1 }), value: 7 * 60 * 24 }, + { name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 2 }), value: 2 * 7 * 60 * 24 }, { name: I18n.t('user.new_topic_duration.last_here'), value: -2 }], saveButtonText: function() { @@ -52,8 +53,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({ actions: { save: function() { var self = this; - this.set('saving', true); - this.set('saved', false); + this.setProperties({ saving: true, saved: false }); // Cook the bio for preview var model = this.get('model'); diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index a6360eb5e7e..35830193c3e 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -332,7 +332,7 @@ en: other: "they were posted in the last {{count}} days" after_n_weeks: one: "they were posted in the last week" - other: "they were posted in the last {{count}} week" + other: "they were posted in the last {{count}} weeks" auto_track_topics: "Automatically track topics I enter" auto_track_options: