From 38bcbbc4069315d4a760522eef6ba9123360959d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 1 Jul 2006 21:11:59 +0000 Subject: [PATCH] rename i18n/English/ArchiveOldPosts to ArchiveOldThreads to match workflow activity name Add simple docs for Archive Old Threads and CacheEMSPrereqs --- lib/WebGUI/Help/Workflow_Activity.pm | 29 +++++++++++++++++++ .../Workflow/Activity/ArchiveOldThreads.pm | 6 ++-- .../Workflow/Activity/CacheEMSPrereqs.pm | 3 +- lib/WebGUI/i18n/English/Workflow_Activity.pm | 14 ++++++++- .../Workflow_Activity_ArchiveOldPosts.pm | 12 -------- .../Workflow_Activity_ArchiveOldThreads.pm | 17 +++++++++++ 6 files changed, 64 insertions(+), 17 deletions(-) create mode 100644 lib/WebGUI/Help/Workflow_Activity.pm delete mode 100644 lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldPosts.pm create mode 100644 lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldThreads.pm diff --git a/lib/WebGUI/Help/Workflow_Activity.pm b/lib/WebGUI/Help/Workflow_Activity.pm new file mode 100644 index 000000000..77c7e0b19 --- /dev/null +++ b/lib/WebGUI/Help/Workflow_Activity.pm @@ -0,0 +1,29 @@ +package WebGUI::Help::Workflow_Activity; + +our $HELP = { + 'add/edit workflow activity' => { + title => 'add/edit workflow activity', + body => 'add/edit workflow activity body', + isa => [ + ], + fields => [ + { + title => 'title', + description => 'title help', + namespace => 'Workflow_Activity', + }, + { + title => 'description', + description => 'description help', + namespace => 'Workflow_Activity', + }, + ], + variables => [ + ], + related => [ + ], + }, + +}; + +1; ##All perl modules must return true diff --git a/lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm b/lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm index 415ef9e67..29865f877 100644 --- a/lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm +++ b/lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm @@ -21,11 +21,11 @@ use WebGUI::Asset; =head1 NAME -Package WebGUI::Workflow::Activity::ArchiveOldPosts +Package WebGUI::Workflow::Activity::ArchiveOldThreads =head1 DESCRIPTION -Uses the settings in the collaboration systems to determine whether the posts in those collaboration systems should be archived. +Uses the settings in the collaboration systems to determine whether the threads in those collaboration systems should be archived. =head1 SYNOPSIS @@ -50,7 +50,7 @@ sub definition { my $class = shift; my $session = shift; my $definition = shift; - my $i18n = WebGUI::International->new($session, "Workflow_Activity_ArchiveOldPosts"); + my $i18n = WebGUI::International->new($session, "Workflow_Activity_ArchiveOldThreads"); push(@{$definition}, { name=>$i18n->get("topicName"), properties=> {} diff --git a/lib/WebGUI/Workflow/Activity/CacheEMSPrereqs.pm b/lib/WebGUI/Workflow/Activity/CacheEMSPrereqs.pm index 73a9f004d..d1d93d882 100644 --- a/lib/WebGUI/Workflow/Activity/CacheEMSPrereqs.pm +++ b/lib/WebGUI/Workflow/Activity/CacheEMSPrereqs.pm @@ -52,8 +52,9 @@ sub definition { my $class = shift; my $session = shift; my $definition = shift; + my $i18n = WebGUI::International->new($session, "Workflow_Activity_CacheEMSPrereqs"); push(@{$definition}, { - name=>'cacheEMSEvents', + name=>$i18n->get('topicName'), properties=> { } }); return $class->SUPER::definition($session,$definition); diff --git a/lib/WebGUI/i18n/English/Workflow_Activity.pm b/lib/WebGUI/i18n/English/Workflow_Activity.pm index 8a891e789..e549f6172 100644 --- a/lib/WebGUI/i18n/English/Workflow_Activity.pm +++ b/lib/WebGUI/i18n/English/Workflow_Activity.pm @@ -25,8 +25,20 @@ our $I18N = { lastUpdated => 0, }, + 'add/edit workflow activity' => { + message => q|Add/Edit Workflow Activity|, + context => q|Title for the add and edit workflow activity screen|, + lastUpdated => 0, + }, + + 'add/edit workflow activity body' => { + message => q|Add/Edit Workflow Activity|, + context => q|

Most Workflow Activities have these basic fields and properties:

|, + lastUpdated => 0, + }, + 'topicName' => { - message => q|Unnamed|, + message => q|Base Workflow Activity|, context => q|The name of this workflow activity.|, lastUpdated => 0, }, diff --git a/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldPosts.pm b/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldPosts.pm deleted file mode 100644 index 24e20e9b4..000000000 --- a/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldPosts.pm +++ /dev/null @@ -1,12 +0,0 @@ -package WebGUI::i18n::English::Workflow_Activity_ArchiveOldPosts; - -our $I18N = { - 'topicName' => { - message => q|Archive Old Posts|, - context => q|The name of this workflow activity.|, - lastUpdated => 0, - }, - -}; - -1; diff --git a/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldThreads.pm b/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldThreads.pm new file mode 100644 index 000000000..e7a3ea8f0 --- /dev/null +++ b/lib/WebGUI/i18n/English/Workflow_Activity_ArchiveOldThreads.pm @@ -0,0 +1,17 @@ +package WebGUI::i18n::English::Workflow_Activity_ArchiveOldThreads; + +our $I18N = { + 'topicName' => { + message => q|Archive Old Threads|, + context => q|The name of this workflow activity.|, + lastUpdated => 0, + }, + + 'archive old threads body' => { + message => q|

This workflow activity will go through all Collaboration Systems (CS) in your site and, based on the settings of that CS, archive old posts.

|, + lastUpdated => 0, + }, + +}; + +1;