From c6be6929c782c2cfa87d0630eca309b9e68e2ab5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 21 Mar 2005 23:53:40 +0000 Subject: [PATCH] internationalize Post status messages --- lib/WebGUI/Asset/Post.pm | 6 +-- lib/WebGUI/i18n/English/Post.pm | 65 ++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 4 deletions(-) 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
+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. +

+ +

+ |, - lastUpdated => 1111446222, + lastUpdated => 1111447237, + }, + + 'approved' => { + message => q|Approved|, + lastUpdated => 1031514049, + }, + + 'denied' => { + message => q|Denied|, + lastUpdated => 1031514049 + }, + + 'pending' => { + message => q|Pending|, + lastUpdated => 1031514049 },