diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 7f5842c08..cd32d3310 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -331,11 +331,11 @@ sub getStatus { my $self = shift; my $status = $self->get("status"); if ($status eq "approved") { - return "Approved"; + return WebGUI::International::get('approved','Post'); } elsif ($status eq "denied") { - return "Denied"; + return WebGUI::International::get('denied','Post'); } elsif ($status eq "pending") { - return "Pending"; + return WebGUI::International::get('pending','Post'); } } diff --git a/lib/WebGUI/i18n/English/Post.pm b/lib/WebGUI/i18n/English/Post.pm index 7ceba9e3f..144722084 100644 --- a/lib/WebGUI/i18n/English/Post.pm +++ b/lib/WebGUI/i18n/English/Post.pm @@ -231,8 +231,71 @@ URLs that are used to rate this post. N goes from 1 to 5. A conditional that is true if the user has already rated this Post.
+attachment_loop
+A loop containing all file and image attachments to this Post.
+
+ +
+ +url+ |, - lastUpdated => 1111446222, + lastUpdated => 1111447237, + }, + + 'approved' => { + message => q|Approved|, + lastUpdated => 1031514049, + }, + + 'denied' => { + message => q|Denied|, + lastUpdated => 1031514049 + }, + + 'pending' => { + message => q|Pending|, + lastUpdated => 1031514049 },
+The URL to download this attachment. ++ +icon
+The icon representing the file type of this attachment. ++ +filename
+The name of this attachment. ++ +thumbnail
+A thumbnail of this attachment, if applicable. ++ +isImage
+A conditional indicating whether this attachment is an image. ++ +image.url
+The URL to the image. ++ +image.thumbnail
+A thumbnail for the image. ++ +attachment.url
+The URL to download the attachment. ++ +attachment.icon
+An icon showing the file type of this attachment. ++ +attachment.name
+The name of this attachment. ++ +