diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-28 00:49:41 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-28 00:49:41 -0700 |
commit | c1e55e9593a6b0ce9f749eb85c4bca1d649e358a (patch) | |
tree | 6f3e44645209471aede760e79a5c7b1836fdba8b /modules/tag | |
parent | 93053cf83152082ce2fb365ad2ab6034c9edd4ee (diff) | |
parent | 8d2782ad1df10679b302ab6c4fafdd2f5535be4a (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/tag')
-rw-r--r-- | modules/tag/helpers/tag.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 0ca02b42..7c4b56ba 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -81,8 +81,12 @@ class tag_Core { static function get_add_form($item) { $form = new Forge("tags", "", "post", array("id" => "gAddTagForm")); - $group = $form->group("add_tag")->label(t("Add Tag")); - $group->input("name")->label(t("Add tag"))->rules("required|length[1,64]"); + $label = $item->is_album() ? + t("Add tag to album") : + ($item->is_photo() ? t("Add tag to photo") : t("Add tag to movie")); + + $group = $form->group("add_tag")->label("Add Tag"); + $group->input("name")->label($label)->rules("required|length[1,64]"); $group->hidden("item_id")->value($item->id); $group->submit("")->value(t("Add Tag")); return $form; |