From 47b95413f4a4fd88451fde118b1b78caab3eee6c Mon Sep 17 00:00:00 2001
From: Colin Kuskie
Date: Sun, 16 Oct 2005 03:55:17 +0000
Subject: [PATCH] update, internationalize and/or add documentation
---
lib/WebGUI/AssetExportHtml.pm | 6 ++--
lib/WebGUI/i18n/English/Asset.pm | 15 ++++++++++
lib/WebGUI/i18n/English/WebGUI.pm | 48 +++++++++++++++++++------------
3 files changed, 47 insertions(+), 22 deletions(-)
diff --git a/lib/WebGUI/AssetExportHtml.pm b/lib/WebGUI/AssetExportHtml.pm
index 5ebc01d62..08b3ce31d 100644
--- a/lib/WebGUI/AssetExportHtml.pm
+++ b/lib/WebGUI/AssetExportHtml.pm
@@ -230,9 +230,9 @@ sub www_exportGenerate {
my $assets = $self->getLineage(["self","descendants"],{returnObjects=>1,endingLineageLength=>$self->getLineageLength+$session{form}{depth}});
foreach my $asset (@{$assets}) {
my $url = $asset->get("url");
- print "Exporting page ".$url."......";
+ print WebGUI::International::get('exporting page', 'Asset').' '.$url."......";
unless ($asset->canView($userId)) {
- print "User has no privileges to view.
\n";
+ print WebGUI::International::get('bad user privileges', 'Asset')."
\n";
next;
}
my $path;
@@ -267,7 +267,7 @@ sub www_exportGenerate {
print FILE $self->exportAsHtml({userId=>$userId,extrasUrl=>$extrasURL,uploadsUrl=>$uploadsURL});
close(FILE);
}
- print "DONE
";
+ print WebGUI::International::get('done','Asset');
}
print "Exported ".scalar(@{$assets})." pages in ".(time()-$startTime)." seconds.
";
print ''.WebGUI::International::get(493,"Asset").'';
diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm
index 092aa68c3..6a8c0f904 100644
--- a/lib/WebGUI/i18n/English/Asset.pm
+++ b/lib/WebGUI/i18n/English/Asset.pm
@@ -791,6 +791,21 @@ config file must be enabled for this function to be available.
context => q|Help body for Page Export operation|
},
+ 'exporting page' => {
+ message => q|Exporting page|,
+ lastUpdated => 1129420080,
+ },
+
+ 'bad user privileges' => {
+ message => q|User has no privileges to view this page.|,
+ lastUpdated => 1129420080,
+ },
+
+ 'done' => {
+ message => q|DONE
|,
+ lastUpdated => 1129420080,
+ },
+
'topicName' => {
message => q|Assets|,
lastUpdated => 1128920336,
diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm
index 7d36f0674..e5249e16c 100644
--- a/lib/WebGUI/i18n/English/WebGUI.pm
+++ b/lib/WebGUI/i18n/English/WebGUI.pm
@@ -889,8 +889,8 @@ to add or remove user from their groups.
},
'724' => {
- message => q|Your username cannot begin or end with a space.|,
- lastUpdated => 1031879593
+ message => q|Your username cannot begin or end with spaces or tabs.|,
+ lastUpdated => 1129431859
},
'432' => {
@@ -1996,8 +1996,8 @@ This group could then be named "Employees in HMO 1", and would allow you to rest
},
'747' => {
- message => q|Usernames must contain only alpha-numeric characters.|,
- lastUpdated => 1036384261
+ message => q|Usernames must contain only alpha-numeric characters, dashes, underscores, periods, commas or @ signs.|,
+ lastUpdated => 1129431985
},
'479' => {
@@ -3797,44 +3797,54 @@ JavaScript fields from HTML tags.
'glossary body' => {
message => q|
-Assets
+Assets
Everything inside of WebGUI is an Asset: files, images, forums, threads in forums, posts in threads, templates, Wobjects (like Articles, DataForms, EventsCalendars) and more.
-
+
-captcha
+captcha
An image displaying a message along with lines or shades that make it hard for a computer
to do character recognition. Used in WebGUI to prevent accounts from being created by programs or spiders.
-
+
-locked
+locked
If Posts and Threads are "locked", no new posts can be added and no existing posts can be edited.
-
+
-Macros
+Macros
Macros are used to create dynamic content within content that would otherwise be unchanging. For
example, showing today's date, or the name of the user on a page can be done with Macros.
-
+
-sticky
+Passwords
+The validity of a password in WebGUI depends on what kind of authentication system
+is used. If the default, WebGUI authentication, is used, passwords may be made of
+any characters so it meets the minimum length set by the Administrator.
+
+
+sticky
If Posts and Threads are set to being "sticky", they will appear at the top of the Forum listing.
-
+
-UI level
+UI level
For WebGUI Content Managers and Admins, the Asset and Wobject edit
screens can be configured to make them easier to use, based on each
user's UI level. The UI level can be altered by Admins in the user's profile.
Users added to the Admin group have their UI level automatically set to 9
to give them full access to the site controls.
-
+
-Wobjects
+Usernames
+WebGUI usernames cannot start or begin with any kind of space (spaces, tabs, etc.) and can only be made of letters, numbers, or dashes, underscores, periods, commas or @ signs.
+
+
+Wobjects
If you think of Assets as "things" inside of WebGUI, then Wobject are
"things" that "do stuff". Articles are used to display content, DataForms
are for collecting data from users (and optionally emailing a copy), and
Message Boards hold forums for users. There are many different Wobjects in WebGUI.
-
+
|,
- lastUpdated => 1126539126,
+ lastUpdated => 1129432303,
},
'manage cache' => {
message => q|Cache|,