Module: check_mk
Branch: master
Commit: 4b5c11d04c7ab7f00c3886fa07eaa4f906a0093c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4b5c11d04c7ab7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 5 17:08:06 2016 +0200
Better title for button for new bookmark list
---
web/htdocs/pagetypes.py | 2 +-
web/plugins/sidebar/shipped.py | 13 +++++++------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index 9583d99..b7565db 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -712,7 +712,7 @@ class Overridable:
html.header(self.phrase("title_plural"),
stylesheets=["pages", "views", "status"])
html.begin_context_buttons()
- html.context_button(_('New'), self.create_url(), "new_" +
self.type_name())
+ html.context_button(self.phrase("new"), self.create_url(),
"new_" + self.type_name())
# TODO: Remove this legacy code as soon as views, dashboards and reports have
been
# moved to pagetypes.py
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 9507cb9..034a450 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -1073,12 +1073,13 @@ class BookmarkList(pagetypes.Overridable, pagetypes.Base):
@classmethod
def phrase(self, what):
return {
- "title" : _("Bookmark List"),
- "title_plural" : _("Bookmark Lists"),
- "add_to" : _("Add to Bookmark List"),
- "clone" : _("Clone Bookmark List"),
- "create" : _("Create Bookmark List"),
- "edit" : _("Edit Bookmark List"),
+ "title" : _("Bookmark list"),
+ "title_plural" : _("Bookmark lists"),
+ "add_to" : _("Add to bookmark list"),
+ "clone" : _("Clone bookmark list"),
+ "create" : _("Create bookmark list"),
+ "edit" : _("Edit bookmark list"),
+ "new" : _("New list"),
}.get(what, pagetypes.Base.phrase(what))