summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-04 20:40:50 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-04 20:40:50 -0700
commit60126adc7e73ec6e70ee5033abf5032ac6b88305 (patch)
treefe9761baeaece43df7dc956f24ba9b8af0b32c32 /modules/gallery/helpers
parent0d424a635d12eee59d2080fa7ffa32a248b0fd5c (diff)
In the site menu, say "Delete album", "Delete photo" or "Delete movie"
as appropriate for the item type. Fixes ticket #1175.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_event.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 40ea50fa..272fd205 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -228,14 +228,17 @@ class gallery_event_Core {
case "album":
$option_text = t("Album options");
$edit_text = t("Edit album");
+ $delete_text = t("Delete album");
break;
case "movie":
$option_text = t("Movie options");
$edit_text = t("Edit movie");
+ $delete_text = t("Delete movie");
break;
default:
$option_text = t("Photo options");
$edit_text = t("Edit photo");
+ $delete_text = t("Delete photo");
}
$menu->append($options_menu = Menu::factory("submenu")
@@ -309,7 +312,7 @@ class gallery_event_Core {
->append(
Menu::factory("dialog")
->id("delete")
- ->label(t("Delete this photo"))
+ ->label($delete_text)
->css_class("ui-icon-trash")
->css_class("g-quick-delete")
->url(url::site("quick/form_delete/$item->id?csrf=$csrf&amp;from_id=$theme_item->id&amp;page_type=$page_type")));