From 2471a4bd374e9ba276aff836e94562e974ff7064 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 2 Mar 2005 23:30:07 +0000 Subject: [PATCH] move MessageBoard labels into its own help file --- lib/WebGUI/Asset/Wobject/MessageBoard.pm | 12 ++++----- lib/WebGUI/i18n/English/MessageBoard.pm | 31 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/MessageBoard.pm b/lib/WebGUI/Asset/Wobject/MessageBoard.pm index c603fa03d..487958184 100644 --- a/lib/WebGUI/Asset/Wobject/MessageBoard.pm +++ b/lib/WebGUI/Asset/Wobject/MessageBoard.pm @@ -104,12 +104,12 @@ sub view { $var{'default.listing'} = $first->view if ($count == 1 && defined $first); $var{'forum.add.url'} = $self->getUrl("func=add&class=WebGUI::Asset::Wobject::Collaboration"); $var{'forum.add.label'} = WebGUI::International::get(75,"MessageBoard"); - $var{'title.label'} = WebGUI::International::get(99); - $var{'views.label'} = WebGUI::International::get(514); - $var{'rating.label'} = WebGUI::International::get(1020); - $var{'threads.label'} = WebGUI::International::get(1036); - $var{'replies.label'} = WebGUI::International::get(1016); - $var{'lastpost.label'} = WebGUI::International::get(1017); + $var{'title.label'} = WebGUI::International::get('title','MessageBoard'); + $var{'views.label'} = WebGUI::International::get('views',,'MessageBoard'); + $var{'rating.label'} = WebGUI::International::get('rating','MessageBoard'); + $var{'threads.label'} = WebGUI::International::get('threads','MessageBoard'); + $var{'replies.label'} = WebGUI::International::get('replies','MessageBoard'); + $var{'lastpost.label'} = WebGUI::International::get('lastpost','MessageBoard'); $var{areMultipleForums} = ($count > 1); $var{forum_loop} = \@forum_loop; return $self->processTemplate(\%var,$self->get("templateId")); diff --git a/lib/WebGUI/i18n/English/MessageBoard.pm b/lib/WebGUI/i18n/English/MessageBoard.pm index 3f55eae86..3f6d671ed 100644 --- a/lib/WebGUI/i18n/English/MessageBoard.pm +++ b/lib/WebGUI/i18n/English/MessageBoard.pm @@ -191,6 +191,37 @@ A conditional indicating whether there is more than one forum. message => q|Are you certain you wish to delete this forum and all the posts it contains?|, lastUpdated => 1066055963 } + + 'title' => { + message => q|Title|, + lastUpdated => 1109806115, + } + + 'views' => { + message => q|Views|, + lastUpdated => 1109806115, + } + + 'rating' => { + message => q|Rating|, + lastUpdated => 1109806115, + } + + 'threads' => { + message => q|Threads|, + lastUpdated => 1109806115, + } + + 'replies' => { + message => q|Replies|, + lastUpdated => 1109806115, + } + + 'lastpost' => { + message => q|Last Post|, + lastUpdated => 1109806115, + } + }; 1;