From 052dcd3ee8d48ffa1da0579a650065f3ff07e312 Mon Sep 17 00:00:00 2001 From: Foram Shah Date: Wed, 8 Jun 2016 17:53:22 +0530 Subject: [PATCH] [IMP] web: 'Not Archived' becomes 'Active', 'Not published' becomes 'Unpublished' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Another reason why it’s better to change ‘not archived’ into ‘active’ is because ‘active’ is the functional name of this field in the filter list in list view. For the rest, it’s just a better en_US way of saying it. --- addons/web/static/src/js/views/form_widgets.js | 2 +- addons/website/static/src/js/website.backend.js | 2 +- addons/website/views/website_templates.xml | 4 ++-- addons/website_blog/controllers/main.py | 2 +- .../static/src/xml/website_blog.inline.discussion.xml | 2 +- addons/website_blog/views/website_blog_templates.xml | 6 +++--- addons/website_event/views/website_event_templates.xml | 2 +- .../views/website_event_track_templates.xml | 2 +- addons/website_hr_recruitment/views/templates.xml | 2 +- addons/website_rating_project_issue/controllers/main.py | 2 +- addons/website_slides/controllers/main.py | 2 +- addons/website_slides/view/website_slides.xml | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index d3a6e44c1ca..194f9bc5443 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -634,7 +634,7 @@ var FieldBooleanButton = common.AbstractField.extend({ this.hover_false = _t("Activate"); break; case "archive": - this.string_true = _t("Not Archived"); + this.string_true = _t("Active"); this.hover_true = _t("Archive"); this.string_false = _t("Archived"); this.hover_false = _t("Unarchive"); diff --git a/addons/website/static/src/js/website.backend.js b/addons/website/static/src/js/website.backend.js index a50b838854c..4d4959cba42 100644 --- a/addons/website/static/src/js/website.backend.js +++ b/addons/website/static/src/js/website.backend.js @@ -19,7 +19,7 @@ var WidgetWebsiteButton = form_common.AbstractField.extend({ .removeClass('text-danger') .addClass('text-success'); } else { - $value.html(_t('Not Published')) + $value.html(_t('Unpublished')) .removeClass('text-success') .addClass('text-danger'); } diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 1a1f72da751..12fc1bca33e 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -423,7 +423,7 @@