rewrote internationalization and help system
This commit is contained in:
parent
e0d4792587
commit
7bb6ac31c1
57 changed files with 11072 additions and 731 deletions
|
|
@ -18,15 +18,20 @@
|
|||
benefits and detriments. This allows you to increase scalability and
|
||||
performance at a cost of either memory or disk space or both. The gains
|
||||
here are primarily enjoyed by large heavy traffic sites that use lots of
|
||||
templates.
|
||||
complex templates.
|
||||
- Added convenience methods to Wobject superclass for internationalization,
|
||||
wobject ID, and namespace.
|
||||
- Added an object-oriented interface to the internationalization system. The
|
||||
old procedural interface still works as well.
|
||||
- Added on the wire compression to HTTP transport for WSClient wobject. This
|
||||
will have no effect on clients/servers that can't support compression.
|
||||
- A small patch from Roy Johnson to deal with different types of WSDLs in th
|
||||
WS Client.
|
||||
- A small patch from Roy Johnson to deal with different types of WSDLs in the
|
||||
WSClient.
|
||||
- Moved to a compiled internationalization and help system. At a cost of 3
|
||||
megabytes of RAM, it provides a boost in performance of over 35%. More
|
||||
importantly though, it cuts the number of database queries in half on an
|
||||
average page, which leads to much greater scalability. See
|
||||
docs/migration.txt for API changes.
|
||||
- Added the ability to select session v. global caches to WSClient.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,19 @@ save you many hours of grief.
|
|||
|
||||
* See docs/migration.txt for changes in the template system.
|
||||
|
||||
* See docs/migration.txt for changes in the Internationalization
|
||||
and help systems.
|
||||
|
||||
* If you're using any third-party plug-ins, you'll need to get
|
||||
updated versions to work with 6.1.
|
||||
|
||||
* If you're using a language other than English on your current site,
|
||||
you'll need to obtain a language pack from either the user
|
||||
contributions or one of the WebGUI Worldwide sites.
|
||||
|
||||
* Each user's language has been reset to the default language for
|
||||
the site as specified in the profile settings.
|
||||
|
||||
|
||||
6.0.2
|
||||
--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -125,4 +125,19 @@ In 6.1 we completely rewrote the underlying template framework to add template
|
|||
caching. Any plug-ins that use WebGUI::Template, must be updated to reflect
|
||||
the new API.
|
||||
|
||||
5.7 Internationalization and Help Change
|
||||
|
||||
In 6.1 we moved the internationalization out of the database and into compiled
|
||||
perl modules. This helps tremendously in performance. It also allows for
|
||||
text-based tags to be used instead of integers for international ids. If
|
||||
you've written any plug-ins that use the internationalization system, you'll
|
||||
need to migrate them to the new system. We've created a tool that will
|
||||
auto-generate the new help and internationalization files from an existing 6.0
|
||||
database. You can get it from the "tools" module in CVS or in the user
|
||||
contributions area on plainblack.com. The utility is called:
|
||||
gen61i18nfrom60data.pl
|
||||
|
||||
We also made the International API object oriented. The old procedural version
|
||||
is still intact as well. See WebGUI::International for API changes.
|
||||
|
||||
|
||||
|
|
|
|||
77
docs/upgrades/upgrade_6.0.3-6.1.0.pl
Normal file
77
docs/upgrades/upgrade_6.0.3-6.1.0.pl
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use lib "../../lib";
|
||||
use Getopt::Long;
|
||||
use Parse::PlainConfig;
|
||||
use strict;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
|
||||
|
||||
my $configFile;
|
||||
my $quiet;
|
||||
|
||||
GetOptions(
|
||||
'configFile=s'=>\$configFile,
|
||||
'quiet'=>\$quiet
|
||||
);
|
||||
|
||||
WebGUI::Session::open("../..",$configFile);
|
||||
|
||||
#--------------------------------------------
|
||||
print "\tRemoving unneeded files and directories.\n" unless ($quiet);
|
||||
unlink("../../lib/WebGUI/Operation/International.pm");
|
||||
unlink("../../lib/WebGUI/Wobject/Item.pm");
|
||||
unlink("../../lib/WebGUI/Wobject/LinkList.pm");
|
||||
unlink("../../lib/WebGUI/Wobject/FAQ.pm");
|
||||
unlink("../../lib/WebGUI/Wobject/ExtraColumn.pm");
|
||||
unlink("../../lib/WebGUI/Macro/m_currentMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/M_currentMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/s_specificMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/S_specificMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/t_topMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/T_topMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/p_previousMenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/P_previousMenuVertical.pm");
|
||||
unlink("../../lib/WebGUI/Macro/C_crumbTrail.pm");
|
||||
unlink("../../lib/WebGUI/Macro/FlexMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/PreviousDropMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/Synopsis.pm");
|
||||
unlink("../../lib/WebGUI/Macro/rootmenuHorizontal.pm");
|
||||
unlink("../../lib/WebGUI/Macro/RootTab.pm");
|
||||
unlink("../../lib/WebGUI/Macro/SpecificDropMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/TopDropMenu.pm");
|
||||
unlink("../../lib/WebGUI/Macro/Question_search.pm");
|
||||
|
||||
|
||||
print "\tResetting user languages.\n" unless ($quiet);
|
||||
my ($defaultLangId) = WebGUI::SQL->quickArray("select dataDefault from userProfileField where fieldName='language'");
|
||||
$defaultLangId =~ s/\[//;
|
||||
$defaultLangId =~ s/\]//;
|
||||
my $langs = {
|
||||
1 => "English",
|
||||
2 => "German",
|
||||
3 => "Dutch",
|
||||
4 => "Spanish",
|
||||
5 => "Portuguese",
|
||||
6 => "Swedish",
|
||||
7 => "Chinese-Simplified",
|
||||
8 => "Italian",
|
||||
9 => "Chinese-Traditional",
|
||||
10 => "Danish",
|
||||
11 => "Arabic",
|
||||
12 => "Norwegian",
|
||||
13 => "Finnish",
|
||||
14 => "Japanese",
|
||||
15 => "Croatian",
|
||||
16 => "Polish",
|
||||
21 => "Russian"
|
||||
};
|
||||
WebGUI::SQL->write("update userProfileField set dataDefault='[\'".$langs->{$defaultLangId}."\']' where fieldName='language'");
|
||||
WebGUI::SQL->write("update userProfileData set language='".$langs->{$defaultLangId}."' where fieldName='language' and fieldData<>1");
|
||||
WebGUI::SQL->write("update userProfileData set language='English' where fieldName='language' and fieldData=1");
|
||||
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
insert into webguiVersion values ('6.1.0','upgrade',unix_timestamp());
|
||||
alter table DW_SOAPClient add sharedCache tinyint unsigned not null default '0';alter table DW_SOAPClient add cacheTTL smallint(5) unsigned NOT NULL default '60';
|
||||
update international set message='A Web Services Client allows a user to query data from any SOAP server to which they have access. This wobject is in development status and should not be made accessible to un-trusted site administratores.<p></p>\n\n<b>SOAP URI/WSDL</b><br>\nFrom the SOAP::Lite manpage, \"URIs are just identifiers. They may look like URLs, but they are not guaranteed to point to anywhere and shouldn\'t be used as such pointers. URIs assume to be unique within the space of all XML documents, so consider them as unique identifiers and nothing else.\" If you specify a URI, you probably also need a proxy below. Alternatively, you can specify a WSDL file in place of a URI. This file refers to a real location at which a SOAP service description can be downloaded and used. For our purposes, the file must end in \".wsdl\" to be properly recognized. If you use a WSDL file, you probably don\'t need to specify a proxy.<p></p>\n\n<b>SOAP Proxy</b><br>\nThe SOAP proxy is the full name of the server and/or script that is listening for SOAP calls. For example:\n<code>http://mydomain.com/cgi-bin/soaplistener.pl</code><p></p>\n\n<b>SOAP Method/Call</b><br>\nThe SOAP method is the name of the function to be invoked by the SOAP server. Include any extra parameters in the SOAP Call Parameters field below.<p></p>\n\n<b>SOAP Call Parameters</b><br>\nIf your SOAP call requires any additional parameters, include them here as a valid perl hash, array or scalar. For example: <code>\'userid\' => \'12\', companyid => \'^FormParam(\"companyid\"); Whether you need to use scalar, hash or array is entirely dependent on what your SOAP service expects as input. Likewise, what you get back is entirely dependent on what the service deems to return.\'</code>.<p></p>\n\n<b>Execute by default?</b><br>\nLeave this set to yes unless your page is calling itself with additional parameters. You will probably know if/when you need to turn off default execution. To force execution when it has been disabled by default, pass a form variable \"targetWobjects\" specifying the name of the SOAP call to force execution.<p></p>\n\n<b>Template</b><br>\nChoose a layout for this SOAP client.<p></p>\n\n<b>Preprocess macros on query?</b><br>\nIf you\'re using WebGUI macros in your query you\'ll want to check this box.<p></p>\n\n<b>Pagination After</b><br>\nHow many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?<p></p>\n\n<b>Pagination Variable</b><br>\nBecause a SOAP call can return complex data structures, you\'ll need to specify which named variable is to be paginated. If none is specified, no pagination will occur.<p></p>\n\n<b>Debug?</b><br>\nIf you want to display debugging and error messages on the page, check this box.<p></p>\n\n<b>Decode utf8?</b><br />\nThis option will only display if you have Data::Structure::Util installed. SOAP calls return utf8 strings even if they may not have utf8 characters within them. This converts utf8 characters to that there aren\'t collisions with any character sets specified in the page header. Deocing is turned off by default, but try turning it on if you see goofy gibberish, especially with the display of copyright symbols and the like.<p></p>\n\n<b>Cache</b><br />\nBy default, SOAP calls are cached uniquely for each user session. By selecting "Global" call returns can be shared between users.<p></p>\n\n<b>Cache expires</b>Number of seconds a SOAP return will be cached. Set to 1 to essentially skip caching.' where namespace='DWSOAPClient' and languageId=1 and internationalId=71;
|
||||
insert into international values (27,'DW_SOAPClient',1,'Cache expires',unix_timestamp(now()),NULL);
|
||||
insert into international values (28,'DW_SOAPClient',1,'Cache',unix_timestamp(now()),NULL);insert into international values (29,'DW_SOAPClient',1,'Session',1088120988,NULL);
|
||||
insert into international values (19,'DW_SOAPClient',1,'Global',unix_timestamp(now()),NULL);
|
||||
drop table language;
|
||||
drop table international;
|
||||
drop table help;
|
||||
alter table WSClient add sharedCache tinyint unsigned not null default '0';
|
||||
alter table WSClient add cacheTTL smallint(5) unsigned NOT NULL default '60';
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ sub _isValidLDAPUser {
|
|||
my $self = shift;
|
||||
my ($uri, $error, $ldap, $search, $auth, $connectDN);
|
||||
|
||||
$uri = URI->new($session{setting}{ldapURL}) or $error = WebGUI::International::get(2,'Auth/LDAP');
|
||||
$uri = URI->new($session{setting}{ldapURL}) or $error = WebGUI::International::get(2,'AuthLDAP');
|
||||
if($error ne ""){
|
||||
$self->error($error);
|
||||
return 0;
|
||||
|
|
@ -62,7 +62,7 @@ sub _isValidLDAPUser {
|
|||
$connectDN = $search->entry(0)->get_value($session{setting}{ldapUserRDN});
|
||||
}
|
||||
$ldap->unbind;
|
||||
$ldap = Net::LDAP->new($uri->host, (port=>$uri->port)) or $error .= WebGUI::International::get(2,'Auth/LDAP');
|
||||
$ldap = Net::LDAP->new($uri->host, (port=>$uri->port)) or $error .= WebGUI::International::get(2,'AuthLDAP');
|
||||
$auth = $ldap->bind(dn=>$connectDN, password=>$session{form}{'authLDAP.identifier'});
|
||||
if ($auth->code == 48 || $auth->code == 49) {
|
||||
$error .= '<li>'.WebGUI::International::get(68);
|
||||
|
|
@ -77,11 +77,11 @@ sub _isValidLDAPUser {
|
|||
WebGUI::ErrorHandler::warn("Invalid LDAP information for registration of LDAP ID: ".$session{form}{'authLDAP.ldapId'});
|
||||
}
|
||||
} else {
|
||||
$error = WebGUI::International::get(2,'Auth/LDAP');
|
||||
$error = WebGUI::International::get(2,'AuthLDAP');
|
||||
WebGUI::ErrorHandler::warn("Couldn't bind to LDAP server: ".$session{setting}{ldapURL});
|
||||
}
|
||||
} else {
|
||||
$error = WebGUI::International::get(2,'Auth/LDAP');
|
||||
$error = WebGUI::International::get(2,'AuthLDAP');
|
||||
WebGUI::ErrorHandler::warn("Couldn't create LDAP object: ".$uri->host);
|
||||
}
|
||||
$self->error($error);
|
||||
|
|
@ -102,8 +102,8 @@ sub addUserForm {
|
|||
my $connectDN = $session{form}{'authLDAP.connectDN'} || $userData->{connectDN};
|
||||
|
||||
my $f = WebGUI::HTMLForm->new;
|
||||
$f->url("authLDAP.ldapUrl",WebGUI::International::get(3,'Auth/LDAP'),$ldapUrl);
|
||||
$f->text("authLDAP.connectDN",WebGUI::International::get(4,'Auth/LDAP'),$connectDN);
|
||||
$f->url("authLDAP.ldapUrl",WebGUI::International::get(3,'AuthLDAP'),$ldapUrl);
|
||||
$f->text("authLDAP.connectDN",WebGUI::International::get(4,'AuthLDAP'),$connectDN);
|
||||
return $f->printRowsOnly;
|
||||
}
|
||||
|
||||
|
|
@ -133,8 +133,8 @@ sub authenticate {
|
|||
my $userData = $self->getParams;
|
||||
|
||||
|
||||
$error .= WebGUI::International::get(12,'Auth/LDAP') if ($userData->{ldapUrl} eq "");
|
||||
$error .= WebGUI::International::get(11,'Auth/LDAP') if ($userData->{connectDN} eq "");
|
||||
$error .= WebGUI::International::get(12,'AuthLDAP') if ($userData->{ldapUrl} eq "");
|
||||
$error .= WebGUI::International::get(11,'AuthLDAP') if ($userData->{connectDN} eq "");
|
||||
|
||||
$self->error($error);
|
||||
if($error ne ""){
|
||||
|
|
@ -143,7 +143,7 @@ sub authenticate {
|
|||
}
|
||||
|
||||
if($uri = URI->new($userData->{ldapUrl})) {
|
||||
$ldap = Net::LDAP->new($uri->host, (port=>$uri->port)) or $error .= WebGUI::International::get(2,'Auth/LDAP');
|
||||
$ldap = Net::LDAP->new($uri->host, (port=>$uri->port)) or $error .= WebGUI::International::get(2,'AuthLDAP');
|
||||
if($error ne ""){
|
||||
$self->user(WebGUI::User->new(1));
|
||||
return 0 ;
|
||||
|
|
@ -157,7 +157,7 @@ sub authenticate {
|
|||
}
|
||||
$ldap->unbind;
|
||||
}else{
|
||||
$error .= WebGUI::International::get(13,'Auth/LDAP');
|
||||
$error .= WebGUI::International::get(13,'AuthLDAP');
|
||||
WebGUI::ErrorHandler::warn("Could not process this LDAP URL: ".$userData->{ldapUrl});
|
||||
}
|
||||
if($error ne ""){
|
||||
|
|
@ -261,7 +261,7 @@ sub displayAccount {
|
|||
$vars->{'account.form.karma.label'} = WebGUI::International::get(537);
|
||||
}
|
||||
$vars->{'account.options'} = WebGUI::Operation::Shared::accountOptions();
|
||||
return WebGUI::Template::process(1,'Auth/LDAP/Account', $vars);
|
||||
return WebGUI::Template::process(1,'AuthLDAP/Account', $vars);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -310,11 +310,11 @@ sub editUserFormSave {
|
|||
sub editUserSettingsForm {
|
||||
my $self = shift;
|
||||
my $f = WebGUI::HTMLForm->new;
|
||||
$f->text("ldapUserRDN",WebGUI::International::get(9,'Auth/LDAP'),$session{setting}{ldapUserRDN});
|
||||
$f->url("ldapURL",WebGUI::International::get(5,'Auth/LDAP'),$session{setting}{ldapURL});
|
||||
$f->text("ldapId",WebGUI::International::get(6,'Auth/LDAP'),$session{setting}{ldapId});
|
||||
$f->text("ldapIdName",WebGUI::International::get(7,'Auth/LDAP'),$session{setting}{ldapIdName});
|
||||
$f->text("ldapPasswordName",WebGUI::International::get(8,'Auth/LDAP'),$session{setting}{ldapPasswordName});
|
||||
$f->text("ldapUserRDN",WebGUI::International::get(9,'AuthLDAP'),$session{setting}{ldapUserRDN});
|
||||
$f->url("ldapURL",WebGUI::International::get(5,'AuthLDAP'),$session{setting}{ldapURL});
|
||||
$f->text("ldapId",WebGUI::International::get(6,'AuthLDAP'),$session{setting}{ldapId});
|
||||
$f->text("ldapIdName",WebGUI::International::get(7,'AuthLDAP'),$session{setting}{ldapIdName});
|
||||
$f->text("ldapPasswordName",WebGUI::International::get(8,'AuthLDAP'),$session{setting}{ldapPasswordName});
|
||||
$f->yesNo(
|
||||
-name=>"ldapSendWelcomeMessage",
|
||||
-value=>$session{setting}{ldapSendWelcomeMessage},
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ use warnings;
|
|||
our @ISA = qw(WebGUI::Auth);
|
||||
|
||||
my %smbError = (
|
||||
1 => WebGUI::International::get(2,'Auth/SMB'),
|
||||
2 => WebGUI::International::get(3,'Auth/SMB'),
|
||||
3 => WebGUI::International::get(4,'Auth/SMB')
|
||||
1 => WebGUI::International::get(2,'AuthSMB'),
|
||||
2 => WebGUI::International::get(3,'AuthSMB'),
|
||||
3 => WebGUI::International::get(4,'AuthSMB')
|
||||
);
|
||||
|
||||
|
||||
|
|
@ -45,10 +45,10 @@ sub addUserForm {
|
|||
my $login = $session{form}{'authSMB.smbLogin'} || $userData->{smbLogin};
|
||||
|
||||
my $f = WebGUI::HTMLForm->new;
|
||||
$f->text("authSMB.smbPDC",WebGUI::International::get(5,'Auth/SMB'),$pdc);
|
||||
$f->text("authSMB.smbBDC",WebGUI::International::get(6,'Auth/SMB'),$bdc);
|
||||
$f->text("authSMB.smbDomain",WebGUI::International::get(7,'Auth/SMB'),$domain);
|
||||
$f->text("authSMB.smbLogin",WebGUI::International::get(8,'Auth/SMB'),$login);
|
||||
$f->text("authSMB.smbPDC",WebGUI::International::get(5,'AuthSMB'),$pdc);
|
||||
$f->text("authSMB.smbBDC",WebGUI::International::get(6,'AuthSMB'),$bdc);
|
||||
$f->text("authSMB.smbDomain",WebGUI::International::get(7,'AuthSMB'),$domain);
|
||||
$f->text("authSMB.smbLogin",WebGUI::International::get(8,'AuthSMB'),$login);
|
||||
return $f->printRowsOnly;
|
||||
}
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ sub authenticate {
|
|||
$smb = Authen::Smb::authen($userData->{smbLogin}, $password, $userData->{smbPDC}, $userData->{smbBDC}, $userData->{smbDomain});
|
||||
$error = "<li>".$smbError{$smb} if($smb > 0)
|
||||
}else{
|
||||
$error .= "<li>".WebGUI::International::get(5,'Auth/SMB');
|
||||
$error .= "<li>".WebGUI::International::get(5,'AuthSMB');
|
||||
}
|
||||
$self->user(WebGUI::User->new(1)) if $error ne "";
|
||||
$self->error($error);
|
||||
|
|
@ -102,9 +102,9 @@ sub createAccount {
|
|||
}
|
||||
$vars->{'create.message'} = $_[0] if ($_[0]);
|
||||
$vars->{'create.form.loginId'} = WebGUI::Form::text({"name"=>"authSMB.loginId","value"=>$session{form}{"authSMB.loginId"}});
|
||||
$vars->{'create.form.loginId.label'} = WebGUI::International::get(8,'Auth/SMB');
|
||||
$vars->{'create.form.loginId.label'} = WebGUI::International::get(8,'AuthSMB');
|
||||
$vars->{'create.form.password'} = WebGUI::Form::password({"name"=>"authSMB.identifier","value"=>$session{form}{"authSMB.identifier"}});
|
||||
$vars->{'create.form.password.label'} = WebGUI::International::get(9,'Auth/SMB');
|
||||
$vars->{'create.form.password.label'} = WebGUI::International::get(9,'AuthSMB');
|
||||
$vars->{'create.form.hidden'} = WebGUI::Form::hidden({"name"=>"confirm","value"=>$session{form}{confirm}});
|
||||
return $self->SUPER::createAccount("createAccountSave",$vars);
|
||||
}
|
||||
|
|
@ -169,7 +169,7 @@ sub displayAccount {
|
|||
$vars->{'account.form.karma.label'} = WebGUI::International::get(537);
|
||||
}
|
||||
$vars->{'account.options'} = WebGUI::Operation::Shared::accountOptions();
|
||||
return WebGUI::Template::process(1,'Auth/SMB/Account', $vars);
|
||||
return WebGUI::Template::process(1,'AuthSMB/Account', $vars);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -218,9 +218,9 @@ sub editUserFormSave {
|
|||
sub editUserSettingsForm {
|
||||
my $self = shift;
|
||||
my $f = WebGUI::HTMLForm->new;
|
||||
$f->text("smbPDC",WebGUI::International::get(5,'Auth/SMB'),$session{setting}{smbPDC});
|
||||
$f->text("smbBDC",WebGUI::International::get(6,'Auth/SMB'),$session{setting}{smbBDC});
|
||||
$f->text("smbDomain",WebGUI::International::get(7,'Auth/SMB'),$session{setting}{smbDomain});
|
||||
$f->text("smbPDC",WebGUI::International::get(5,'AuthSMB'),$session{setting}{smbPDC});
|
||||
$f->text("smbBDC",WebGUI::International::get(6,'AuthSMB'),$session{setting}{smbBDC});
|
||||
$f->text("smbDomain",WebGUI::International::get(7,'AuthSMB'),$session{setting}{smbDomain});
|
||||
$f->yesNo(
|
||||
-name=>"smbSendWelcomeMessage",
|
||||
-value=>$session{setting}{smbSendWelcomeMessage},
|
||||
|
|
|
|||
|
|
@ -39,14 +39,14 @@ sub _isValidPassword {
|
|||
my $error = "";
|
||||
|
||||
if ($password ne $confirm) {
|
||||
$error .= '<li>'.WebGUI::International::get(3,'Auth/WebGUI');
|
||||
$error .= '<li>'.WebGUI::International::get(3,'AuthWebGUI');
|
||||
}
|
||||
if ($password eq "") {
|
||||
$error .= '<li>'.WebGUI::International::get(4,'Auth/WebGUI');
|
||||
$error .= '<li>'.WebGUI::International::get(4,'AuthWebGUI');
|
||||
}
|
||||
|
||||
if ($self->getSetting("passwordLength") && length($password) < $self->getSetting("passwordLength")){
|
||||
$error .= '<li>'.WebGUI::International::get(7,'Auth/WebGUI')." ".$self->getSetting("passwordLength");
|
||||
$error .= '<li>'.WebGUI::International::get(7,'AuthWebGUI')." ".$self->getSetting("passwordLength");
|
||||
}
|
||||
|
||||
$self->error($error);
|
||||
|
|
@ -80,7 +80,7 @@ sub addUserForm {
|
|||
my $userData = $self->getParams;
|
||||
my $f = WebGUI::HTMLForm->new;
|
||||
$f->password("authWebGUI.identifier",WebGUI::International::get(51),"password");
|
||||
$f->interval("authWebGUI.passwordTimeout",WebGUI::International::get(16,'Auth/WebGUI'),WebGUI::DateTime::secondsToInterval(($userData->{passwordTimeout} || $session{setting}{webguiPasswordTimeout})));
|
||||
$f->interval("authWebGUI.passwordTimeout",WebGUI::International::get(16,'AuthWebGUI'),WebGUI::DateTime::secondsToInterval(($userData->{passwordTimeout} || $session{setting}{webguiPasswordTimeout})));
|
||||
my $userChange = $session{setting}{webguiChangeUsername};
|
||||
if($userChange || $userChange eq "0"){
|
||||
$userChange = $userData->{changeUsername};
|
||||
|
|
@ -88,7 +88,7 @@ sub addUserForm {
|
|||
$f->yesNo(
|
||||
-name=>"authWebGUI.changeUsername",
|
||||
-value=>$userChange,
|
||||
-label=>WebGUI::International::get(21,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(21,'AuthWebGUI')
|
||||
);
|
||||
my $passwordChange = $session{setting}{webguiChangePassword};
|
||||
if($passwordChange || $passwordChange eq "0"){
|
||||
|
|
@ -97,7 +97,7 @@ sub addUserForm {
|
|||
$f->yesNo(
|
||||
-name=>"authWebGUI.changePassword",
|
||||
-value=>$passwordChange,
|
||||
-label=>WebGUI::International::get(20,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(20,'AuthWebGUI')
|
||||
);
|
||||
return $f->printRowsOnly;
|
||||
}
|
||||
|
|
@ -159,7 +159,7 @@ sub createAccount {
|
|||
$vars->{'create.form.password'} = WebGUI::Form::password({"name"=>"authWebGUI.identifier","value"=>$session{form}{"authWebGUI.identifier"}});
|
||||
$vars->{'create.form.password.label'} = WebGUI::International::get(51);
|
||||
$vars->{'create.form.passwordConfirm'} = WebGUI::Form::password({"name"=>"authWebGUI.identifierConfirm","value"=>$session{form}{"authWebGUI.identifierConfirm"}});
|
||||
$vars->{'create.form.passwordConfirm.label'} = WebGUI::International::get(2,'Auth/WebGUI');
|
||||
$vars->{'create.form.passwordConfirm.label'} = WebGUI::International::get(2,'AuthWebGUI');
|
||||
$vars->{'create.form.hidden'} = WebGUI::Form::hidden({"name"=>"confirm","value"=>$session{form}{confirm}});
|
||||
$vars->{'recoverPassword.isAllowed'} = $self->getSetting("passwordRecovery");
|
||||
$vars->{'recoverPassword.url'} = WebGUI::URL::page('op=recoverPassword');
|
||||
|
|
@ -227,12 +227,12 @@ sub displayAccount {
|
|||
$vars->{'account.form.password'} = WebGUI::Form::password({"name"=>"authWebGUI.identifier","value"=>"password"});
|
||||
$vars->{'account.form.password.label'} = WebGUI::International::get(51);
|
||||
$vars->{'account.form.passwordConfirm'} = WebGUI::Form::password({"name"=>"authWebGUI.identifierConfirm","value"=>"password"});
|
||||
$vars->{'account.form.passwordConfirm.label'} = WebGUI::International::get(2,'Auth/WebGUI');
|
||||
$vars->{'account.form.passwordConfirm.label'} = WebGUI::International::get(2,'AuthWebGUI');
|
||||
}
|
||||
if(!$userData->{changeUsername} && !$userData->{changePassword}){
|
||||
$vars->{'account.noform'} = "true";
|
||||
}
|
||||
$vars->{'account.nofields'} = WebGUI::International::get(22,'Auth/WebGUI');
|
||||
$vars->{'account.nofields'} = WebGUI::International::get(22,'AuthWebGUI');
|
||||
return $self->SUPER::displayAccount("updateAccount",$vars);
|
||||
}
|
||||
|
||||
|
|
@ -307,15 +307,15 @@ sub editUserSettingsForm {
|
|||
$f->text(
|
||||
-name=>"webguiPasswordLength",
|
||||
-value=>$session{setting}{webguiPasswordLength},
|
||||
-label=>WebGUI::International::get(15,'Auth/WebGUI'),
|
||||
-label=>WebGUI::International::get(15,'AuthWebGUI'),
|
||||
-size=>5,
|
||||
-maxLength=>5,
|
||||
);
|
||||
$f->interval("webguiPasswordTimeout",WebGUI::International::get(16,'Auth/WebGUI'),WebGUI::DateTime::secondsToInterval($session{setting}{webguiPasswordTimeout}));
|
||||
$f->interval("webguiPasswordTimeout",WebGUI::International::get(16,'AuthWebGUI'),WebGUI::DateTime::secondsToInterval($session{setting}{webguiPasswordTimeout}));
|
||||
$f->yesNo(
|
||||
-name=>"webguiExpirePasswordOnCreation",
|
||||
-value=>$session{setting}{webguiExpirePasswordOnCreation},
|
||||
-label=>WebGUI::International::get(9,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(9,'AuthWebGUI')
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"webguiSendWelcomeMessage",
|
||||
|
|
@ -330,17 +330,17 @@ sub editUserSettingsForm {
|
|||
$f->yesNo(
|
||||
-name=>"webguiChangeUsername",
|
||||
-value=>$session{setting}{webguiChangeUsername},
|
||||
-label=>WebGUI::International::get(19,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(19,'AuthWebGUI')
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"webguiChangePassword",
|
||||
-value=>$session{setting}{webguiChangePassword},
|
||||
-label=>WebGUI::International::get(18,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(18,'AuthWebGUI')
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"webguiPasswordRecovery",
|
||||
-value=>$session{setting}{webguiPasswordRecovery},
|
||||
-label=>WebGUI::International::get(6,'Auth/WebGUI')
|
||||
-label=>WebGUI::International::get(6,'AuthWebGUI')
|
||||
);
|
||||
$f->textarea("webguiRecoverPasswordEmail",WebGUI::International::get(134),$session{setting}{webguiRecoverPasswordEmail});
|
||||
return $f->printRowsOnly;
|
||||
|
|
@ -382,7 +382,7 @@ sub new {
|
|||
sub recoverPassword {
|
||||
my $self = shift;
|
||||
return $self->displayLogin if($self->userId != 1);
|
||||
my $template = 'Auth/WebGUI/Recovery';
|
||||
my $template = 'AuthWebGUI/Recovery';
|
||||
my $vars;
|
||||
$vars->{title} = WebGUI::International::get(71);
|
||||
$vars->{'recover.form.header'} = "\n\n".WebGUI::Form::formHeader({});
|
||||
|
|
@ -443,7 +443,7 @@ sub resetExpiredPassword {
|
|||
my $self = shift;
|
||||
my $vars;
|
||||
|
||||
$vars->{displayTitle} = '<h3>'.WebGUI::International::get(8,'Auth/WebGUI').'</h3>';
|
||||
$vars->{displayTitle} = '<h3>'.WebGUI::International::get(8,'AuthWebGUI').'</h3>';
|
||||
$vars->{'expired.message'} = $_[0] if($_[0]);
|
||||
$vars->{'expired.form.header'} = "\n\n".WebGUI::Form::formHeader({});
|
||||
$vars->{'expired.form.hidden'} = WebGUI::Form::hidden({"name"=>"op","value"=>"auth"});
|
||||
|
|
@ -451,15 +451,15 @@ sub resetExpiredPassword {
|
|||
$vars->{'expired.form.hidden'} .= WebGUI::Form::hidden({"name"=>"uid","value"=>$session{form}{uid}});
|
||||
|
||||
$vars->{'expired.form.oldPassword'} = WebGUI::Form::password({"name"=>"oldPassword"});
|
||||
$vars->{'expired.form.oldPassword.label'} = WebGUI::International::get(10,'Auth/WebGUI');
|
||||
$vars->{'expired.form.oldPassword.label'} = WebGUI::International::get(10,'AuthWebGUI');
|
||||
$vars->{'expired.form.password'} = WebGUI::Form::password({"name"=>"identifier"});
|
||||
$vars->{'expired.form.password.label'} = WebGUI::International::get(11,'Auth/WebGUI');
|
||||
$vars->{'expired.form.password.label'} = WebGUI::International::get(11,'AuthWebGUI');
|
||||
$vars->{'expired.form.passwordConfirm'} = WebGUI::Form::password({"name"=>"identifierConfirm"});
|
||||
$vars->{'expired.form.passwordConfirm.label'} = WebGUI::International::get(2,'Auth/WebGUI');
|
||||
$vars->{'expired.form.passwordConfirm.label'} = WebGUI::International::get(2,'AuthWebGUI');
|
||||
$vars->{'expired.form.submit'} = WebGUI::Form::submit({});
|
||||
$vars->{'expired.form.footer'} = "</form>";
|
||||
|
||||
return WebGUI::Template::process(1,'Auth/WebGUI/Expired', $vars);
|
||||
return WebGUI::Template::process(1,'AuthWebGUI/Expired', $vars);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -471,8 +471,8 @@ sub resetExpiredPasswordSave {
|
|||
$session{form}{username} = $u->username;
|
||||
|
||||
$error .= $self->error if(!$self->authenticate($session{form}{oldPassword}));
|
||||
$error .= '<li>'.WebGUI::International::get(5,'Auth/WebGUI') if($session{form}{identifier} eq "password");
|
||||
$error .= '<li>'.WebGUI::International::get(12,'Auth/WebGUI') if ($session{form}{oldPassword} eq $session{form}{identifier});
|
||||
$error .= '<li>'.WebGUI::International::get(5,'AuthWebGUI') if($session{form}{identifier} eq "password");
|
||||
$error .= '<li>'.WebGUI::International::get(12,'AuthWebGUI') if ($session{form}{oldPassword} eq $session{form}{identifier});
|
||||
$error .= $self->error if(!$self->_isValidPassword($session{form}{identifier},$session{form}{identifierConfirm}));
|
||||
|
||||
return $self->resetExpiredPassword("<h1>".WebGUI::International::get(70)."</h1>".$error) if($error ne "");
|
||||
|
|
@ -485,7 +485,7 @@ sub resetExpiredPasswordSave {
|
|||
|
||||
$msg = $self->login;
|
||||
if($msg eq ""){
|
||||
$msg = "<li>".WebGUI::International::get(17,'Auth/WebGUI');
|
||||
$msg = "<li>".WebGUI::International::get(17,'AuthWebGUI');
|
||||
}
|
||||
return $self->displayLogin($msg);
|
||||
}
|
||||
|
|
|
|||
42
lib/WebGUI/Help/Article.pm
Normal file
42
lib/WebGUI/Help/Article.pm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package WebGUI::Help::Article;
|
||||
|
||||
our $HELP = {
|
||||
'article add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'article template',
|
||||
namespace => 'Article'
|
||||
},
|
||||
{
|
||||
tag => 'forum discussion properties',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'article template' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'article add/edit',
|
||||
namespace => 'Article'
|
||||
},
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
36
lib/WebGUI/Help/AuthLDAP.pm
Normal file
36
lib/WebGUI/Help/AuthLDAP.pm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package WebGUI::Help::AuthLDAP;
|
||||
|
||||
our $HELP = {
|
||||
'ldap authentication display account template' => {
|
||||
title => 'account-1',
|
||||
body => 'account-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'ldap authentication anonymous registration template' => {
|
||||
title => 'create-1',
|
||||
body => 'create-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'ldap authentication login template' => {
|
||||
title => 'login-1',
|
||||
body => 'login-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
36
lib/WebGUI/Help/AuthSMB.pm
Normal file
36
lib/WebGUI/Help/AuthSMB.pm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package WebGUI::Help::AuthSMB;
|
||||
|
||||
our $HELP = {
|
||||
'smb authentication display account template' => {
|
||||
title => 'account-1',
|
||||
body => 'account-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'smb authentication anonymous registration template' => {
|
||||
title => 'create-1',
|
||||
body => 'create-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'smb authentication login template' => {
|
||||
title => 'login-1',
|
||||
body => 'login-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
56
lib/WebGUI/Help/AuthWebGUI.pm
Normal file
56
lib/WebGUI/Help/AuthWebGUI.pm
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package WebGUI::Help::AuthWebGUI;
|
||||
|
||||
our $HELP = {
|
||||
'webgui authentication display account template' => {
|
||||
title => 'account-1',
|
||||
body => 'account-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'webgui authentication anonymous registration template' => {
|
||||
title => 'create-1',
|
||||
body => 'create-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'webgui authentication password expiration template' => {
|
||||
title => 'expired-1',
|
||||
body => 'expired-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'webgui authentication login template' => {
|
||||
title => 'login-1',
|
||||
body => 'login-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'webgui authentication password recovery template' => {
|
||||
title => 'recovery-1',
|
||||
body => 'recovery-2',
|
||||
related => [
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
70
lib/WebGUI/Help/DataForm.pm
Normal file
70
lib/WebGUI/Help/DataForm.pm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package WebGUI::Help::DataForm;
|
||||
|
||||
our $HELP = {
|
||||
'data form add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'data form fields add/edit',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'data form list template',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'data form template',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'data form fields add/edit' => {
|
||||
title => 62,
|
||||
body => 72,
|
||||
related => [
|
||||
{
|
||||
tag => 'data form template',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'data form add/edit',
|
||||
namespace => 'DataForm'
|
||||
}
|
||||
]
|
||||
},
|
||||
'data form template' => {
|
||||
title => 82,
|
||||
body => 83,
|
||||
related => [
|
||||
{
|
||||
tag => 'data form fields add/edit',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'data form add/edit',
|
||||
namespace => 'DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'data form list template' => {
|
||||
title => 88,
|
||||
body => 89,
|
||||
related => [
|
||||
{
|
||||
tag => 'data form add/edit',
|
||||
namespace => 'DataForm'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
70
lib/WebGUI/Help/EventsCalendar.pm
Normal file
70
lib/WebGUI/Help/EventsCalendar.pm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package WebGUI::Help::EventsCalendar;
|
||||
|
||||
our $HELP = {
|
||||
'events calendar add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'event add/edit',
|
||||
namespace => 'EventsCalendar'
|
||||
},
|
||||
{
|
||||
tag => 'events calendar template',
|
||||
namespace => 'EventsCalendar'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'event add/edit' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'event template',
|
||||
namespace => 'EventsCalendar'
|
||||
},
|
||||
{
|
||||
tag => 'events calendar add/edit',
|
||||
namespace => 'EventsCalendar'
|
||||
}
|
||||
]
|
||||
},
|
||||
'events calendar template' => {
|
||||
title => 94,
|
||||
body => 95,
|
||||
related => [
|
||||
{
|
||||
tag => 'events calendar add/edit',
|
||||
namespace => 'EventsCalendar'
|
||||
},
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'event template' => {
|
||||
title => 96,
|
||||
body => 97,
|
||||
related => [
|
||||
{
|
||||
tag => 'event add/edit',
|
||||
namespace => 'EventsCalendar'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
52
lib/WebGUI/Help/FileManager.pm
Normal file
52
lib/WebGUI/Help/FileManager.pm
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package WebGUI::Help::FileManager;
|
||||
|
||||
our $HELP = {
|
||||
'file manager add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'file manager template',
|
||||
namespace => 'FileManager'
|
||||
},
|
||||
{
|
||||
tag => 'file add/edit',
|
||||
namespace => 'FileManager'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'file add/edit' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'file manager add/edit',
|
||||
namespace => 'FileManager'
|
||||
}
|
||||
]
|
||||
},
|
||||
'file manager template' => {
|
||||
title => 75,
|
||||
body => 76,
|
||||
related => [
|
||||
{
|
||||
tag => 'file manager add/edit',
|
||||
namespace => 'FileManager'
|
||||
},
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
16
lib/WebGUI/Help/HttpProxy.pm
Normal file
16
lib/WebGUI/Help/HttpProxy.pm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package WebGUI::Help::HttpProxy;
|
||||
|
||||
our $HELP = {
|
||||
'http proxy add/edit' => {
|
||||
title => 10,
|
||||
body => 11,
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
34
lib/WebGUI/Help/IndexedSearch.pm
Normal file
34
lib/WebGUI/Help/IndexedSearch.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package WebGUI::Help::IndexedSearch;
|
||||
|
||||
our $HELP = {
|
||||
'search add/edit' => {
|
||||
title => 26,
|
||||
body => 27,
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'search template',
|
||||
namespace => 'IndexedSearch'
|
||||
}
|
||||
]
|
||||
},
|
||||
'search template' => {
|
||||
title => 29,
|
||||
body => 28,
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'search add/edit',
|
||||
namespace => 'IndexedSearch'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
76
lib/WebGUI/Help/MessageBoard.pm
Normal file
76
lib/WebGUI/Help/MessageBoard.pm
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package WebGUI::Help::MessageBoard;
|
||||
|
||||
our $HELP = {
|
||||
'message board add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'forum add/edit',
|
||||
namespace => 'MessageBoard'
|
||||
},
|
||||
{
|
||||
tag => 'message board template',
|
||||
namespace => 'MessageBoard'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'message board template' => {
|
||||
title => 73,
|
||||
body => 74,
|
||||
related => [
|
||||
{
|
||||
tag => 'forum notification template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'forum post form template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'forum post template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'forum search template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'forum template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'forum thread template',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'message board add/edit',
|
||||
namespace => 'MessageBoard'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'forum add/edit' => {
|
||||
title => 78,
|
||||
body => 79,
|
||||
related => [
|
||||
{
|
||||
tag => 'forum discussion properties',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'message board add/edit',
|
||||
namespace => 'MessageBoard'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
34
lib/WebGUI/Help/Poll.pm
Normal file
34
lib/WebGUI/Help/Poll.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package WebGUI::Help::Poll;
|
||||
|
||||
our $HELP = {
|
||||
'poll add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'poll template',
|
||||
namespace => 'Poll'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'poll template' => {
|
||||
title => 73,
|
||||
body => 74,
|
||||
related => [
|
||||
{
|
||||
tag => 'poll add/edit',
|
||||
namespace => 'Poll'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
112
lib/WebGUI/Help/Product.pm
Normal file
112
lib/WebGUI/Help/Product.pm
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
package WebGUI::Help::Product;
|
||||
|
||||
our $HELP = {
|
||||
'product add/edit' => {
|
||||
title => 38,
|
||||
body => 39,
|
||||
related => [
|
||||
{
|
||||
tag => 'product related add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product accessory add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product benefit add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product feature add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product specification add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product template',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product feature add/edit' => {
|
||||
title => 40,
|
||||
body => 41,
|
||||
related => [
|
||||
{
|
||||
tag => 'product benefit add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product specification add/edit' => {
|
||||
title => 42,
|
||||
body => 43,
|
||||
related => [
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product accessory add/edit' => {
|
||||
title => 44,
|
||||
body => 45,
|
||||
related => [
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product related add/edit' => {
|
||||
title => 46,
|
||||
body => 47,
|
||||
related => [
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product benefit add/edit' => {
|
||||
title => 49,
|
||||
body => 50,
|
||||
related => [
|
||||
{
|
||||
tag => 'product feature add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
}
|
||||
]
|
||||
},
|
||||
'product template' => {
|
||||
title => 62,
|
||||
body => 63,
|
||||
related => [
|
||||
{
|
||||
tag => 'product add/edit',
|
||||
namespace => 'Product'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
38
lib/WebGUI/Help/SQLReport.pm
Normal file
38
lib/WebGUI/Help/SQLReport.pm
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
package WebGUI::Help::SQLReport;
|
||||
|
||||
our $HELP = {
|
||||
'sql report add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'sql report template',
|
||||
namespace => 'SQLReport'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'sql report template' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'sql report add/edit',
|
||||
namespace => 'SQLReport'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
34
lib/WebGUI/Help/SiteMap.pm
Normal file
34
lib/WebGUI/Help/SiteMap.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package WebGUI::Help::SiteMap;
|
||||
|
||||
our $HELP = {
|
||||
'site map add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'site map template',
|
||||
namespace => 'SiteMap'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'site map template' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'site map add/edit',
|
||||
namespace => 'SiteMap'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
44
lib/WebGUI/Help/Survey.pm
Normal file
44
lib/WebGUI/Help/Survey.pm
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
package WebGUI::Help::Survey;
|
||||
|
||||
our $HELP = {
|
||||
'survey add/edit' => {
|
||||
title => 3,
|
||||
body => 4,
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'survey template' => {
|
||||
title => 88,
|
||||
body => 89,
|
||||
related => [
|
||||
{
|
||||
tag => 'survey template common vars',
|
||||
namespace => 'Survey'
|
||||
},
|
||||
{
|
||||
tag => 'survey add/edit',
|
||||
namespace => 'Survey'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'survey template common vars' => {
|
||||
title => 90,
|
||||
body => 91,
|
||||
related => [
|
||||
{
|
||||
tag => 'survey template',
|
||||
namespace => 'Survey'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
30
lib/WebGUI/Help/SyndicatedContent.pm
Normal file
30
lib/WebGUI/Help/SyndicatedContent.pm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
package WebGUI::Help::SyndicatedContent;
|
||||
|
||||
our $HELP = {
|
||||
'syndicated content add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'syndicated content template',
|
||||
namespace => 'SyndicatedContent'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'syndicated content template' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'syndicated content add/edit',
|
||||
namespace => 'SyndicatedContent'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
74
lib/WebGUI/Help/USS.pm
Normal file
74
lib/WebGUI/Help/USS.pm
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
package WebGUI::Help::USS;
|
||||
|
||||
our $HELP = {
|
||||
'user submission system add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'forum discussion properties',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'submission form template',
|
||||
namespace => 'USS'
|
||||
},
|
||||
{
|
||||
tag => 'submission template',
|
||||
namespace => 'USS'
|
||||
},
|
||||
{
|
||||
tag => 'user submission system template',
|
||||
namespace => 'USS'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'submission form template' => {
|
||||
title => 93,
|
||||
body => 94,
|
||||
related => [
|
||||
{
|
||||
tag => 'user submission system add/edit',
|
||||
namespace => 'USS'
|
||||
}
|
||||
]
|
||||
},
|
||||
'user submission system template' => {
|
||||
title => 74,
|
||||
body => 75,
|
||||
related => [
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI'
|
||||
},
|
||||
{
|
||||
tag => 'user submission system add/edit',
|
||||
namespace => 'USS'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'submission template' => {
|
||||
title => 76,
|
||||
body => 77,
|
||||
related => [
|
||||
{
|
||||
tag => 'user submission system add/edit',
|
||||
namespace => 'USS'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
34
lib/WebGUI/Help/WSClient.pm
Normal file
34
lib/WebGUI/Help/WSClient.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package WebGUI::Help::WSClient;
|
||||
|
||||
our $HELP = {
|
||||
'web services client add/edit' => {
|
||||
title => 61,
|
||||
body => 71,
|
||||
related => [
|
||||
{
|
||||
tag => 'web services client template',
|
||||
namespace => 'WSClient'
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
'web services client template' => {
|
||||
title => 72,
|
||||
body => 73,
|
||||
related => [
|
||||
{
|
||||
tag => 'web services client add/edit',
|
||||
namespace => 'WSClient'
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
1114
lib/WebGUI/Help/WebGUI.pm
Normal file
1114
lib/WebGUI/Help/WebGUI.pm
Normal file
File diff suppressed because it is too large
Load diff
16
lib/WebGUI/Help/WobjectProxy.pm
Normal file
16
lib/WebGUI/Help/WobjectProxy.pm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package WebGUI::Help::WobjectProxy;
|
||||
|
||||
our $HELP = {
|
||||
'wobject proxy add/edit' => {
|
||||
title => 5,
|
||||
body => 6,
|
||||
related => [
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'WebGUI'
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
@ -16,9 +16,7 @@ package WebGUI::International;
|
|||
|
||||
|
||||
use strict;
|
||||
use WebGUI::Cache;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
|
||||
|
||||
=head1 NAME
|
||||
|
|
@ -75,29 +73,20 @@ An integer that specifies the language that the user should see. Defaults to th
|
|||
sub get {
|
||||
my ($id, $language, $namespace);
|
||||
if (ref($_[0]) eq "WebGUI::International") {
|
||||
$id = $_[1] || 0;
|
||||
$id = $_[1];
|
||||
$namespace = $_[2] || $_[0]->{_namespace} || "WebGUI";
|
||||
$language = $_[3] || $_[0]->{_language} || $session{user}{language} || 1;
|
||||
$language = $_[3] || $_[0]->{_language} || $session{user}{language} || "English";
|
||||
} else {
|
||||
$id = $_[0] || 0;
|
||||
$id = $_[0];
|
||||
$namespace = $_[1] || "WebGUI";
|
||||
$language = $_[2] || $session{user}{language} || 1;
|
||||
$language = $_[2] || $session{user}{language} || "English";
|
||||
}
|
||||
my $cachetag = $session{config}{configFile}."-International";
|
||||
if ($session{config}{useSharedInternationalCache}) {
|
||||
$cachetag = "International";
|
||||
}
|
||||
my $cache = WebGUI::Cache->new($language."_".$namespace."_".$id,$cachetag);
|
||||
my $output = $cache->get;
|
||||
if (not defined $output) {
|
||||
($output) = WebGUI::SQL->quickArray("select message from international
|
||||
where internationalId=$id and namespace='$namespace' and languageId='$language'");
|
||||
if ($output eq "" && $language ne 1) {
|
||||
$output = get($id,$namespace,1);
|
||||
}
|
||||
$cache->set($output, 3600);
|
||||
}
|
||||
return $output;
|
||||
my $cmd = "WebGUI::i18n::".$language."::".$namespace;
|
||||
my $load = "use ".$cmd;
|
||||
eval($load);
|
||||
$cmd = "\$".$cmd."::I18N->{'".$id."'}";
|
||||
my $output = eval($cmd);
|
||||
return $output || get($id,$namespace,"English");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -111,7 +100,24 @@ Returns a hash reference to the languages (languageId/lanugage) installed on thi
|
|||
|
||||
sub getLanguages {
|
||||
my ($hashRef);
|
||||
$hashRef = WebGUI::SQL->buildHashRef("select languageId,language from language");
|
||||
my $dir = $session{config}{webguiRoot}.$session{os}{slash}."lib".$session{os}{slash}."WebGUI".$session{os}{slash}."i18n";
|
||||
opendir (DIR,$dir) or WebGUI::ErrorHandler::fatalError("Can't open I18N directory!");
|
||||
my @files = readdir(DIR);
|
||||
closedir(DIR);
|
||||
foreach my $file (@files) {
|
||||
if ($file =~ /(.*?)\.pm$/) {
|
||||
my $language = $1;
|
||||
my $cmd = "WebGUI::i18n::".$language;
|
||||
my $load = "use ".$cmd;
|
||||
eval($load);
|
||||
unless ($@) {
|
||||
$cmd = "\$".$cmd."::I18N->{'label'}";
|
||||
$hashRef->{$language} = eval($cmd);
|
||||
} else {
|
||||
WebGUI::ErrorHandler::warn("Language failed to compile: $language. ".$@);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $hashRef;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use WebGUI::Operation::Collateral;
|
|||
use WebGUI::Operation::DatabaseLink;
|
||||
use WebGUI::Operation::Group;
|
||||
use WebGUI::Operation::Help;
|
||||
use WebGUI::Operation::International;
|
||||
use WebGUI::Operation::MessageLog;
|
||||
use WebGUI::Operation::Package;
|
||||
use WebGUI::Operation::Page;
|
||||
|
|
|
|||
|
|
@ -13,257 +13,101 @@ package WebGUI::Operation::Help;
|
|||
use Exporter;
|
||||
use strict;
|
||||
use Tie::IxHash;
|
||||
use Tie::CPHash;
|
||||
use WebGUI::DateTime;
|
||||
use WebGUI::Grouping;
|
||||
use WebGUI::HTMLForm;
|
||||
use WebGUI::Icon;
|
||||
use WebGUI::International;
|
||||
use WebGUI::Macro;
|
||||
use WebGUI::Operation::Shared;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::URL;
|
||||
use WebGUI::Utility;
|
||||
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT = qw(&www_viewHelp &www_viewHelpIndex &www_manageHelp &www_editHelp &www_editHelpSave
|
||||
&www_exportHelp &www_deleteHelp &www_deleteHelpConfirm);
|
||||
our @EXPORT = qw(&www_viewHelp &www_viewHelpIndex);
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _helpLink {
|
||||
return '<a href="'.WebGUI::URL::page('op=viewHelp&hid='.$_[0].'&namespace='.$_[1]).'">'.$_[2].'</a>';
|
||||
sub _get {
|
||||
my $id = shift;
|
||||
my $namespace = shift;
|
||||
my $cmd = "WebGUI::Help::".$namespace;
|
||||
my $load = "use ".$cmd;
|
||||
eval($load);
|
||||
$cmd = "\$".$cmd."::HELP->{'".$id."'}";
|
||||
return eval($cmd);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _link {
|
||||
return '<a href="'.WebGUI::URL::page('op=viewHelp&hid='.WebGUI::URL::escape($_[0]).'&namespace='.$_[1]).'">'.$_[2].'</a>';
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _seeAlso {
|
||||
my ($item, $seeAlso, @items, $namespace, $helpId, $titleId, $output);
|
||||
$seeAlso = $_[0];
|
||||
$seeAlso =~ s/\n//g; #removes line feeds
|
||||
$seeAlso =~ s/\r//g; #removes carriage returns
|
||||
$seeAlso =~ s/ //g; #removes spaces
|
||||
@items = split(/;/,$seeAlso);
|
||||
foreach $item (@items) {
|
||||
($helpId,$namespace) = split(/,/,$item);
|
||||
($titleId) = WebGUI::SQL->quickArray("select titleId from help where helpId=$helpId
|
||||
and namespace='$namespace'");
|
||||
$output .= '<li>'._helpLink($helpId,$namespace,WebGUI::International::get($titleId,$namespace));
|
||||
my $related = shift;
|
||||
my $namespace = shift;
|
||||
my $output;
|
||||
foreach my $row (@{$related}) {
|
||||
my $help = _get($row->{tag},$row->{namespace});
|
||||
$output .= '<li>'._link($row->{tag},$row->{namespace},WebGUI::International::get($help->{title},$row->{namespace}));
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _submenu {
|
||||
my (%menu);
|
||||
tie %menu, 'Tie::IxHash';
|
||||
%menu = %{$_[1]};
|
||||
if ($session{form}{op} ne "viewHelp" && $session{form}{op} ne "viewHelpIndex") {
|
||||
$menu{WebGUI::URL::page('op=editHelp&hid=new')} = "Add new help.";
|
||||
$menu{WebGUI::URL::page('op=exportHelp')} = "Export help.";
|
||||
}
|
||||
if (($session{form}{op} eq "editHelp" && $session{form}{hid} ne "new") || $session{form}{op} eq "deleteHelp") {
|
||||
$menu{WebGUI::URL::page('op=editHelpIndex&hid='.$session{form}{hid})} = "Edit this help.";
|
||||
$menu{WebGUI::URL::page('op=deleteHelp&hid='.$session{form}{hid}.'&namespace='.$session{form}{namespace})} = "Delete this help.";
|
||||
}
|
||||
$menu{WebGUI::URL::page('op=viewHelpIndex')} = WebGUI::International::get(13);
|
||||
return menuWrapper($_[0],\%menu);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_deleteHelp {
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
my $output = '<h1>Confirm</h1>Are you sure? Deleting help is never a good idea. <a href="'
|
||||
.WebGUI::URL::page("op=deleteHelpConfirm&hid=".$session{form}{hid}."&namespace=".$session{form}{namespace})
|
||||
.'">Yes</a> / <a href="'.WebGUI::URL::page("op=manageHelp").'">No</a><p>';
|
||||
return _submenu($output,{});
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_deleteHelpConfirm {
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
my ($titleId, $bodyId) = WebGUI::SQL->quickArray("select titleId,bodyId from help where helpId=".$session{form}{hid}."
|
||||
and namespace=".quote($session{form}{namespace}));
|
||||
WebGUI::SQL->write("delete from international where internationalId=$titleId
|
||||
and namespace=".quote($session{form}{namespace}));
|
||||
WebGUI::SQL->write("delete from international where internationalId=$bodyId
|
||||
and namespace=".quote($session{form}{namespace}));
|
||||
WebGUI::SQL->write("delete from help where helpId=".$session{form}{hid}."
|
||||
and namespace=".quote($session{form}{namespace}));
|
||||
return www_manageHelp();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editHelp {
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
my ($output, $f, %data, %help, @seeAlso);
|
||||
tie %data, 'Tie::IxHash';
|
||||
tie %help, 'Tie::CPHash';
|
||||
if ($session{form}{hid} ne "new") {
|
||||
%help = WebGUI::SQL->quickHash("select * from help where
|
||||
helpId=$session{form}{hid} and namespace=".quote($session{form}{namespace}));
|
||||
($help{title}) = WebGUI::SQL->quickArray("select message from international where internationalId=$help{titleId} and namespace=".quote($help{namespace})." and languageId=$session{user}{language}");
|
||||
($help{body}) = WebGUI::SQL->quickArray("select message from international where internationalId=$help{bodyId} and namespace=".quote($help{namespace})." and languageId=$session{user}{language}");
|
||||
$help{seeAlso} =~ s/\n//g;
|
||||
$help{seeAlso} =~ s/\r//g;
|
||||
$help{seeAlso} =~ s/ //g;
|
||||
@seeAlso = split(/;/,$help{seeAlso});
|
||||
} else {
|
||||
$help{titleId} = "new";
|
||||
$help{bodyId} = "new";
|
||||
$help{namespace} = "WebGUI";
|
||||
}
|
||||
$output = '<h1>Edit Help</h1>';
|
||||
$f = WebGUI::HTMLForm->new();
|
||||
$f->hidden("op","editHelpSave");
|
||||
$f->hidden("hid",$session{form}{hid});
|
||||
$f->readOnly($session{form}{hid},"Help ID");
|
||||
if ($session{form}{hid} eq "new") {
|
||||
%data = WebGUI::SQL->buildHash("select namespace,namespace from help order by namespace");
|
||||
$f->combo("namespace",\%data,"Namespace",[$help{namespace}]);
|
||||
} else {
|
||||
$f->hidden("namespace",$session{form}{namespace});
|
||||
$f->readOnly($session{form}{namespace},"Namespace");
|
||||
}
|
||||
$f->hidden("titleId",$help{titleId});
|
||||
$f->readOnly($help{titleId},"Title ID");
|
||||
$f->text("title","Title",$help{title});
|
||||
$f->hidden("bodyId",$help{bodyId});
|
||||
$f->readOnly($help{bodyId},"Body ID");
|
||||
$f->HTMLArea("body","Body",$help{body},'','','',20,60);
|
||||
%data = WebGUI::SQL->buildHash("select concat(help.helpId,',',help.namespace),
|
||||
concat(international.message,' (',help.helpId,'/',help.namespace,')')
|
||||
from help,international where help.titleId=international.internationalId
|
||||
and help.namespace=international.namespace and international.languageId=1 order by international.message");
|
||||
$f->select("seeAlso",\%data,"See Also",\@seeAlso,8,1);
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
return _submenu($output,{});
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editHelpSave {
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
my (@seeAlso);
|
||||
if ($session{form}{hid} eq "new") {
|
||||
if ($session{form}{namespace_new} ne "") {
|
||||
$session{form}{namespace} = $session{form}{namespace_new};
|
||||
}
|
||||
($session{form}{titleId}) = WebGUI::SQL->quickArray("select max(internationalId) from international
|
||||
where namespace=".quote($session{form}{namespace})." and languageId=1");
|
||||
$session{form}{titleId}++;
|
||||
$session{form}{bodyId} = $session{form}{titleId}+1;
|
||||
($session{form}{hid}) = WebGUI::SQL->quickArray("select max(helpId) from help
|
||||
where namespace=".quote($session{form}{namespace}));
|
||||
$session{form}{hid}++;
|
||||
WebGUI::SQL->write("insert into international (internationalId,languageId,namespace) values
|
||||
($session{form}{titleId},1,".quote($session{form}{namespace}).")");
|
||||
WebGUI::SQL->write("insert into international (internationalId,languageId,namespace) values
|
||||
($session{form}{bodyId},1,".quote($session{form}{namespace}).")");
|
||||
WebGUI::SQL->write("insert into help (helpId,namespace,titleId,bodyId) values
|
||||
($session{form}{hid},".quote($session{form}{namespace}).",$session{form}{titleId},
|
||||
$session{form}{bodyId})");
|
||||
}
|
||||
@seeAlso = $session{cgi}->param('seeAlso');
|
||||
if ($seeAlso[0] ne "") {
|
||||
$session{form}{seeAlso} = join(";",@seeAlso);
|
||||
$session{form}{seeAlso} .= ';';
|
||||
}
|
||||
WebGUI::SQL->write("update international set message=".quote($session{form}{title}).", lastUpdated=".time()."
|
||||
where internationalId=$session{form}{titleId} and languageId=1 and namespace=".quote($session{form}{namespace}));
|
||||
WebGUI::SQL->write("update international set message=".quote($session{form}{body}).", lastUpdated=".time()."
|
||||
where internationalId=$session{form}{bodyId} and languageId=1 and namespace=".quote($session{form}{namespace}));
|
||||
WebGUI::SQL->write("update help set seeAlso=".quote($session{form}{seeAlso})."
|
||||
where helpId=$session{form}{hid} and namespace=".quote($session{form}{namespace}));
|
||||
return www_manageHelp();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_exportHelp {
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
my ($export, $output, %help, $sth);
|
||||
$export = "#export of WebGUI ".$WebGUI::VERSION." help system.\n\n";
|
||||
$sth = WebGUI::SQL->read("select * from help");
|
||||
while (%help = $sth->hash) {
|
||||
$export .= "delete from help where helpId=$help{helpId} and namespace=".quote($help{namespace}).";\n";
|
||||
$export .= "insert into help (helpId,namespace,titleId,bodyId,seeAlso) values ($help{helpId}, "
|
||||
.quote($help{namespace}).", $help{titleId}, $help{bodyId}, ".quote($help{seeAlso}).");\n";
|
||||
}
|
||||
$sth->finish;
|
||||
$session{header}{mimetype} = 'text/plain';
|
||||
return $export;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_manageHelp {
|
||||
my ($sth, @help, $output);
|
||||
return "" unless (WebGUI::Grouping::isInGroup(3));
|
||||
$output = '<h1>Manage Help</h1>';
|
||||
$output .= 'This interface is for WebGUI developers only. If you\'re not a developer, leave this alone. Also,
|
||||
this interface works <b>ONLY</b> under MySQL and is not supported by Plain Black under any
|
||||
circumstances.<p>';
|
||||
$output .= '<table class="tableData">';
|
||||
$sth = WebGUI::SQL->read("select help.helpId,help.namespace,international.message from help,international
|
||||
where help.titleId=international.internationalId and help.namespace=international.namespace
|
||||
and international.languageId=1 order by international.message");
|
||||
while (@help = $sth->array) {
|
||||
$output .= '<tr><td>'
|
||||
.deleteIcon("op=deleteHelp&hid=".$help[0]."&namespace=".$help[1])
|
||||
.editIcon("op=editHelp&hid=".$help[0]."&namespace=".$help[1])
|
||||
.'</td>'
|
||||
.'<td>'._helpLink($help[0],$help[1],$help[2]).'</td>'
|
||||
.'<td>'.$help[0].'/'.$help[1].'</td>'
|
||||
.'</tr>';
|
||||
}
|
||||
$sth->finish;
|
||||
$output .= '</table>';
|
||||
return _submenu($output,{});
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_viewHelp {
|
||||
my ($output, %help, $namespace);
|
||||
$namespace = $session{form}{namespace} || "WebGUI";
|
||||
tie %help, 'Tie::CPHash';
|
||||
%help = WebGUI::SQL->quickHash("select * from help where helpId=$session{form}{hid} and namespace='$namespace'");
|
||||
$output = '<h1>'.WebGUI::International::get(93).': '.WebGUI::International::get($help{titleId},$help{namespace}).'</h1>';
|
||||
$output .= WebGUI::International::get($help{bodyId},$help{namespace});
|
||||
my $namespace = $session{form}{namespace} || "WebGUI";
|
||||
my $help = _get($session{form}{hid},$namespace);
|
||||
my $output = '<h1>'.WebGUI::International::get(93).': '.WebGUI::International::get($help->{title},$namespace).'</h1>';
|
||||
$output .= WebGUI::International::get($help->{body},$namespace);
|
||||
$output .= '<p><b>'.WebGUI::International::get(94).':<ul>';
|
||||
$output .= _seeAlso($help{seeAlso});
|
||||
$output .= _seeAlso($help->{related},$namespace);
|
||||
$output .= '<li><a href="'.WebGUI::URL::page('op=viewHelpIndex').'">'.WebGUI::International::get(95).'</a></ul>';
|
||||
return WebGUI::Macro::negate($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_viewHelpIndex {
|
||||
my ($sth, %help, $output, $key, %index, $title, $seeAlso, %sortedIndex, $i, $midpoint);
|
||||
tie %help, 'Tie::CPHash';
|
||||
tie %sortedIndex, 'Tie::IxHash';
|
||||
$output = '<h1>'.WebGUI::International::get(95).'</h1>';
|
||||
$sth = WebGUI::SQL->read("select helpId,namespace,titleId,seeAlso from help");
|
||||
while (%help = $sth->hash) {
|
||||
$title = WebGUI::International::get($help{titleId},$help{namespace});
|
||||
$index{$title} = _helpLink($help{helpId},$help{namespace},$title);
|
||||
$seeAlso = _seeAlso($help{seeAlso});
|
||||
if ($seeAlso ne "") {
|
||||
$index{$title} .= '<span style="font-size: 11px"><ul>'.$seeAlso.'</ul></span>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$midpoint = round($i/2);
|
||||
$sth->finish;
|
||||
foreach $key (sort {$a cmp $b} keys %index) {
|
||||
$sortedIndex{$key}=$index{$key};
|
||||
my %helpIndex;
|
||||
tie %helpIndex, "Tie::IxHash";
|
||||
my $i;
|
||||
my $dir = $session{config}{webguiRoot}.$session{os}{slash}."lib".$session{os}{slash}."WebGUI".$session{os}{slash}."Help";
|
||||
opendir (DIR,$dir) or WebGUI::ErrorHandler::fatalError("Can't open Help directory!");
|
||||
my @files = readdir(DIR);
|
||||
closedir(DIR);
|
||||
foreach my $file (@files) {
|
||||
if ($file =~ /(.*?)\.pm$/) {
|
||||
my $namespace = $1;
|
||||
my $cmd = "WebGUI::Help::".$namespace;
|
||||
my $load = "use ".$cmd;
|
||||
eval($load);
|
||||
unless ($@) {
|
||||
$cmd = "\$".$cmd."::HELP";
|
||||
my $help = eval($cmd);
|
||||
foreach my $key (keys %{$help}) {
|
||||
$helpIndex{$key."_".$namespace} = WebGUI::International::get($help->{$key}{title},$namespace);
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
WebGUI::ErrorHandler::warn("Help failed to compile: $namespace. ".$@);
|
||||
}
|
||||
}
|
||||
}
|
||||
my $output = '<h1>Help Index</h1><table width="100%" class="content"><tr><td valign="top">';
|
||||
my $halfway = round($i/2);
|
||||
$i = 0;
|
||||
$output .= '<table width="100%"><tr><td width="50%" valign="top" class="content">';
|
||||
foreach $key (keys %sortedIndex) {
|
||||
if ($i == $midpoint) {
|
||||
$output .= '</td><td width="50%" valign="top" class="content">';
|
||||
}
|
||||
$output .= $sortedIndex{$key}.'<p>';
|
||||
%helpIndex = sortHash(%helpIndex);
|
||||
foreach my $key (keys %helpIndex) {
|
||||
my ($id,$namespace) = split("_",$key);
|
||||
my $help = _get($id,$namespace);
|
||||
$output .= _link($id,$namespace,$helpIndex{$key});
|
||||
$output .= '<ul style="padding-left: 20px; margin: 2px; font-size: smaller;">';
|
||||
$output .= _seeAlso($help->{related},$namespace);
|
||||
$output .= '</ul>';
|
||||
$output .= "<br>";
|
||||
$i++;
|
||||
if ($i == $halfway) {
|
||||
$output .= '</td><td valign="top">';
|
||||
}
|
||||
}
|
||||
$output .= '</table>';
|
||||
$output .= '</td></tr></table>';
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,409 +0,0 @@
|
|||
package WebGUI::Operation::International;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2004 Plain Black LLC.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use Exporter;
|
||||
use strict;
|
||||
use Tie::CPHash;
|
||||
use WebGUI::DateTime;
|
||||
use WebGUI::Grouping;
|
||||
use WebGUI::HTMLForm;
|
||||
use WebGUI::Icon;
|
||||
use WebGUI::International;
|
||||
use WebGUI::Macro;
|
||||
use WebGUI::Mail;
|
||||
use WebGUI::Operation::Shared;
|
||||
use WebGUI::Paginator;
|
||||
use WebGUI::Privilege;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::URL;
|
||||
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT = qw(&www_listLanguages &www_editLanguage &www_submitTranslation &www_submitTranslationConfirm
|
||||
&www_deleteLanguage &www_deleteLanguageConfirm &www_addInternationalMessage &www_addInternationalMessageSave
|
||||
&www_listInternationalMessages &www_editLanguageSave &www_editInternationalMessage
|
||||
&www_exportTranslation &www_editInternationalMessageSave );
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _export {
|
||||
my ($sth, %data, $export);
|
||||
tie %data, 'Tie::CPHash';
|
||||
%data = WebGUI::SQL->quickHash("select * from language where languageId=".$_[0]);
|
||||
$export = "#Exported from ".$session{setting}{companyName}." (http://".$session{env}{SERVER_NAME}.") by "
|
||||
.$session{user}{username}." (".$session{user}{email}.")\n";
|
||||
$export .= "#".$data{language}." translation export for WebGUI ".$WebGUI::VERSION.".\n\n";
|
||||
$export .= "#language\n\n";
|
||||
$export .= "delete from language where languageId=".$_[0].";\n";
|
||||
$export .= "insert into language (languageId,language,characterSet,toolbar) values ("
|
||||
.$data{languageId}.", ".quote($data{language}).", ".quote($data{characterSet}).", "
|
||||
.quote($data{toolbar}).");\n";
|
||||
$export .= "\n#international messages\n\n";
|
||||
$sth = WebGUI::SQL->read("select * from international where languageId=".$_[0]." order by lastUpdated desc");
|
||||
while (%data = $sth->hash) {
|
||||
$export .= "delete from international where languageId=".$_[0]." and namespace="
|
||||
.quote($data{namespace})." and internationalId=".$data{internationalId}.";\n";
|
||||
$export .= "insert into international (internationalId,languageId,namespace,message,lastUpdated";
|
||||
$export .= ",context" if ($_[0] == 1);
|
||||
$export .= ") values ("
|
||||
.$data{internationalId}.",".$data{languageId}.",".quote($data{namespace})
|
||||
.",".quote($data{message}).", ".$data{lastUpdated};
|
||||
$export .= ",".quote($data{context}) if ($_[0] == 1);
|
||||
$export .= ");\n";
|
||||
}
|
||||
$sth->finish;
|
||||
return $export;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _submenu {
|
||||
my (%menu);
|
||||
tie %menu, 'Tie::IxHash';
|
||||
$menu{WebGUI::URL::page('op=editLanguage&lid=new')} = WebGUI::International::get(584);
|
||||
if ($session{form}{lid} == 1) {
|
||||
$menu{WebGUI::URL::page('op=addInternationalMessage&lid=1')} = "Add a new message.";
|
||||
}
|
||||
if ($session{form}{lid} ne "new" && $session{form}{lid} ne "") {
|
||||
$menu{WebGUI::URL::page('op=listInternationalMessages&lid='.$session{form}{lid})} =
|
||||
WebGUI::International::get(594);
|
||||
$menu{WebGUI::URL::page('op=exportTranslation&lid='.$session{form}{lid})} = WebGUI::International::get(718);
|
||||
$menu{WebGUI::URL::page('op=submitTranslation&lid='.$session{form}{lid})} = WebGUI::International::get(593);
|
||||
$menu{WebGUI::URL::page('op=editLanguage&lid='.$session{form}{lid})} = WebGUI::International::get(598);
|
||||
$menu{WebGUI::URL::page("op=deleteLanguage&lid=".$session{form}{lid})} = WebGUI::International::get(791);
|
||||
}
|
||||
$menu{WebGUI::URL::page('op=listLanguages')} = WebGUI::International::get(585);
|
||||
return menuWrapper($_[0],\%menu);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_addInternationalMessage {
|
||||
my ($output,$f);
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
$output = '<h1>Add English Message</h1>';
|
||||
$f = WebGUI::HTMLForm->new();
|
||||
$f->hidden("lid",1);
|
||||
$f->hidden("op","addInternationalMessageSave");
|
||||
$f->combo("namespace",
|
||||
WebGUI::SQL->buildHashRef("select namespace,namespace from international where languageId=1 order by namespace")
|
||||
,"Namespace",['WebGUI']);
|
||||
$f->textarea("message","Message");
|
||||
$f->textarea("context","Context");
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_addInternationalMessageSave {
|
||||
my ($nextId);
|
||||
($nextId) = WebGUI::SQL->quickArray("select max(internationalId) from international where languageId=1
|
||||
and namespace=".quote($session{form}{namespace}));
|
||||
$nextId++;
|
||||
my $namespace = $session{form}{namespace_new} || $session{form}{namespace};
|
||||
WebGUI::SQL->write("insert into international (languageId, internationalId, namespace, message, lastUpdated,
|
||||
context) values
|
||||
(1,$nextId,".quote($namespace).",".quote($session{form}{message}).",".time().",
|
||||
".quote($session{form}{context}).")");
|
||||
return "<b>Message was added with id $nextId.</b>".www_listInternationalMessages();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_deleteLanguage {
|
||||
my ($output);
|
||||
return WebGUI::Privilege::vitalComponent() if ($session{form}{lid} < 1000 && $session{form}{lid} > 0);
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
$output .= '<h1>'.WebGUI::International::get(42).'</h1>';
|
||||
$output .= WebGUI::International::get(587).'<p>';
|
||||
$output .= '<div align="center"><a href="'.
|
||||
WebGUI::URL::page('op=deleteLanguageConfirm&lid='.$session{form}{lid})
|
||||
.'">'.WebGUI::International::get(44).'</a>';
|
||||
$output .= ' <a href="'.WebGUI::URL::page('op=listLanguages').
|
||||
'">'.WebGUI::International::get(45).'</a></div>';
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_deleteLanguageConfirm {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
return WebGUI::Privilege::vitalComponent() if ($session{form}{lid} < 1000 && $session{form}{lid} > 0);
|
||||
WebGUI::SQL->write("delete from language where languageId=".$session{form}{lid});
|
||||
WebGUI::SQL->write("delete from international where languageId=".$session{form}{lid});
|
||||
WebGUI::SQL->write("delete from userProfileData where fieldName='language' and fieldData=".$session{form}{lid});
|
||||
$session{form}{lid} = "";
|
||||
return www_listLanguages();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editInternationalMessage {
|
||||
my ($output, $message, $context, $f, $language);
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
($language) = WebGUI::SQL->quickArray("select language from language where languageId=".$session{form}{lid});
|
||||
$output = '<h1>'.WebGUI::International::get(597).'</h1>';
|
||||
$f = WebGUI::HTMLForm->new;
|
||||
$f->readOnly($session{form}{iid},WebGUI::International::get(601));
|
||||
$f->hidden("lid",$session{form}{lid});
|
||||
$f->hidden("status",$session{form}{status});
|
||||
$f->hidden("iid",$session{form}{iid});
|
||||
$f->hidden("pn",$session{form}{pn});
|
||||
$f->hidden("namespace",$session{form}{namespace});
|
||||
$f->hidden("op","editInternationalMessageSave");
|
||||
($message) = WebGUI::SQL->quickArray("select message from international where internationalId=".$session{form}{iid}."
|
||||
and namespace='".$session{form}{namespace}."' and languageId=".$session{form}{lid});
|
||||
$f->textarea("message",$language,$message);
|
||||
$f->submit;
|
||||
($message, $context) = WebGUI::SQL->quickArray("select message,context from international where internationalId=".$session{form}{iid}."
|
||||
and namespace='".$session{form}{namespace}."' and languageId=1");
|
||||
$f->readOnly(WebGUI::Macro::negate($message),"English");
|
||||
$f->readOnly(
|
||||
-label=>"Message Context",
|
||||
-value=>$context
|
||||
);
|
||||
$output .= $f->print;
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editInternationalMessageSave {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
if ($session{form}{status} eq "missing") {
|
||||
WebGUI::SQL->write("insert into international (message,namespace,languageId,internationalId,lastUpdated)
|
||||
values (".quote($session{form}{message}).",".quote($session{form}{namespace})
|
||||
.",".$session{form}{lid}.",".$session{form}{iid}.", ".time().")");
|
||||
} else {
|
||||
WebGUI::SQL->write("update international set message=".quote($session{form}{message}).", lastUpdated="
|
||||
.time()." where namespace=".quote($session{form}{namespace})."
|
||||
and languageId=".$session{form}{lid}." and internationalId=".$session{form}{iid});
|
||||
}
|
||||
return www_listInternationalMessages();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editLanguage {
|
||||
my ($output, $dir, @files, $file, %data, $f, %options);
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
tie %data, 'Tie::CPHash';
|
||||
$dir = $session{config}{extrasPath}.$session{os}{slash}."toolbar";
|
||||
opendir (DIR,$dir) or WebGUI::ErrorHandler::warn("Can't open toolbar directory!");
|
||||
@files = readdir(DIR);
|
||||
foreach $file (@files) {
|
||||
if ($file ne ".." && $file ne ".") {
|
||||
$options{$file} = $file;
|
||||
}
|
||||
}
|
||||
closedir(DIR);
|
||||
if ($session{form}{lid} eq "new") {
|
||||
$data{characterSet} = "ISO-8859-1";
|
||||
$data{toolbar} = "default";
|
||||
} else {
|
||||
%data = WebGUI::SQL->quickHash("select * from language where languageId=".$session{form}{lid});
|
||||
}
|
||||
$output = '<h1>'.WebGUI::International::get(589).'</h1>';
|
||||
$f = WebGUI::HTMLForm->new;
|
||||
$f->readOnly($session{form}{lid},WebGUI::International::get(590));
|
||||
$f->hidden("lid",$session{form}{lid});
|
||||
$f->hidden("op","editLanguageSave");
|
||||
$f->text("language",WebGUI::International::get(591),$data{language});
|
||||
$f->text("characterSet",WebGUI::International::get(592),$data{characterSet});
|
||||
$f->select("toolbar",\%options,WebGUI::International::get(746),[$data{toolbar}]);
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_editLanguageSave {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
if ($session{form}{lid} eq "new") {
|
||||
$session{form}{lid} = getNextId("languageId");
|
||||
WebGUI::SQL->write("insert into language (languageId) values ($session{form}{lid})");
|
||||
}
|
||||
WebGUI::SQL->write("update language set language=".quote($session{form}{language}).",
|
||||
characterSet=".quote($session{form}{characterSet}).", toolbar=".quote($session{form}{toolbar})."
|
||||
where languageId=".$session{form}{lid});
|
||||
return www_editLanguage();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_exportTranslation {
|
||||
$session{header}{mimetype} = 'text/plain';
|
||||
return _export($session{form}{lid});
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_listInternationalMessages {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
my ($output, $sth, $key, $p, $status,%data, %list, $deprecated, $i, $missing, @row, $f, $outOfDate, $ok);
|
||||
tie %data, 'Tie::CPHash';
|
||||
%data = WebGUI::SQL->quickHash("select language from language where languageId=".$session{form}{lid});
|
||||
$missing = '<b>'.WebGUI::International::get(596).'</b>';
|
||||
$outOfDate = '<b>'.WebGUI::International::get(719).'</b>';
|
||||
$ok = WebGUI::International::get(720);
|
||||
$deprecated = WebGUI::International::get(723);
|
||||
$output = '<h1>'.WebGUI::International::get(595).' ('.$data{language}.')</h1>';
|
||||
WebGUI::Session::setScratch("internationalSearchId",$session{form}{internationalSearchId});
|
||||
WebGUI::Session::setScratch("internationalSearchKeyword",$session{form}{internationalSearchKeyword});
|
||||
WebGUI::Session::setScratch("internationalSearchNamespace",$session{form}{internationalSearchNamespace});
|
||||
$f = WebGUI::HTMLForm->new(1);
|
||||
$f->hidden("op","listInternationalMessages");
|
||||
$f->hidden("lid",$session{form}{lid});
|
||||
my $selectedNamespace = $session{scratch}{internationalSearchNamespace} || "Any";
|
||||
my %namespaces;
|
||||
tie %namespaces, 'Tie::IxHash';
|
||||
%namespaces = (
|
||||
""=>"Any",
|
||||
WebGUI::SQL->buildHash("select distinct namespace,namespace from international order by namespace")
|
||||
);
|
||||
$f->selectList(
|
||||
-name=>"internationalSearchNamespace",
|
||||
-value=>[$selectedNamespace],
|
||||
-options=>\%namespaces
|
||||
);
|
||||
$f->integer(
|
||||
-name=>"internationalSearchId",
|
||||
-value=>$session{scratch}{internationalSearchId},
|
||||
-size=>4,
|
||||
-maxLength=>4
|
||||
);
|
||||
$f->text(
|
||||
-name=>"internationalSearchKeyword",
|
||||
-value=>$session{scratch}{internationalSearchKeyword},
|
||||
-size=>20
|
||||
);
|
||||
$f->submit("search");
|
||||
$output .= $f->print;
|
||||
my $search;
|
||||
my $searchFlag = 0;
|
||||
if ($session{scratch}{internationalSearchKeyword} ne "") {
|
||||
$search = " and message like ".quote("%".$session{scratch}{internationalSearchKeyword}."%");
|
||||
$searchFlag = 1;
|
||||
}
|
||||
if ($session{scratch}{internationalSearchNamespace} ne "") {
|
||||
$search .= " and namespace=".quote($session{scratch}{internationalSearchNamespace});
|
||||
$searchFlag = 1;
|
||||
}
|
||||
if ($session{scratch}{internationalSearchId}) {
|
||||
$search .= " and internationalId=".$session{scratch}{internationalSearchId};
|
||||
$searchFlag = 1;
|
||||
}
|
||||
$sth = WebGUI::SQL->read("select * from international where languageId=".$session{form}{lid}.$search);
|
||||
while (%data = $sth->hash) {
|
||||
$list{"z-".$data{namespace}."-".$data{internationalId}}{id} = $data{internationalId};
|
||||
$list{"z-".$data{namespace}."-".$data{internationalId}}{namespace} = $data{namespace};
|
||||
$list{"z-".$data{namespace}."-".$data{internationalId}}{message} = $data{message};
|
||||
$list{"z-".$data{namespace}."-".$data{internationalId}}{lastUpdated} = $data{lastUpdated};
|
||||
$list{"z-".$data{namespace}."-".$data{internationalId}}{status} = "deleted";
|
||||
}
|
||||
$sth->finish;
|
||||
$sth = WebGUI::SQL->read("select * from international where languageId=1");
|
||||
while (%data = $sth->hash) {
|
||||
$key = $data{namespace}."-".$data{internationalId};
|
||||
if ($searchFlag) {
|
||||
if ($list{"z-".$key}) {
|
||||
if ($list{"z-".$key}{lastUpdated} < $data{lastUpdated}) {
|
||||
$list{"o-".$key} = $list{"z-".$key};
|
||||
delete($list{"z-".$key});
|
||||
$list{"o-".$key}{status} = "updated";
|
||||
} else {
|
||||
$list{"q-".$key} = $list{"z-".$key};
|
||||
delete($list{"z-".$key});
|
||||
$list{"q-".$key}{status} = "ok";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
unless ($list{"z-".$key}) {
|
||||
$list{"a-".$key}{namespace} = $data{namespace};
|
||||
$list{"a-".$key}{id} = $data{internationalId};
|
||||
$list{"a-".$key}{status} = "missing";
|
||||
} else {
|
||||
if ($list{"z-".$key}{lastUpdated} < $data{lastUpdated}) {
|
||||
$list{"o-".$key} = $list{"z-".$key};
|
||||
delete($list{"z-".$key});
|
||||
$list{"o-".$key}{status} = "updated";
|
||||
} else {
|
||||
$list{"q-".$key} = $list{"z-".$key};
|
||||
delete($list{"z-".$key});
|
||||
$list{"q-".$key}{status} = "ok";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
foreach $key (sort {$a cmp $b} keys %list) {
|
||||
if ($list{$key}{status} eq "updated") {
|
||||
$status = $outOfDate;
|
||||
} elsif ($list{$key}{status} eq "missing") {
|
||||
$status = $missing;
|
||||
} elsif ($list{$key}{status} eq "deleted") {
|
||||
$status = $deprecated;
|
||||
} else {
|
||||
$status = $ok;
|
||||
}
|
||||
$row[$i] = '<tr valign="top"><td nowrap="1">'.$status."</td><td>"
|
||||
.editIcon('op=editInternationalMessage&lid='.$session{form}{lid}
|
||||
.'&iid='.$list{$key}{id}.'&namespace='.$list{$key}{namespace}.'&pn='.$session{form}{pn}
|
||||
."&status=".$list{$key}{status})."</td><td>".$list{$key}{namespace}."</td><td>"
|
||||
.$list{$key}{id}."</td><td>".$list{$key}{message}."</td></tr>\n";
|
||||
$i++;
|
||||
}
|
||||
$p = WebGUI::Paginator->new(WebGUI::URL::page('op=listInternationalMessages&lid='.$session{form}{lid}),100);
|
||||
$p->setDataByArrayRef(\@row);
|
||||
$output .= $p->getBarTraditional($session{form}{pn});
|
||||
$output .= '<table style="font-size: 11px;" width="100%">';
|
||||
$output .= '<tr><td class="tableHeader">'.WebGUI::International::get(434).'</td><td class="tableHeader">'.
|
||||
WebGUI::International::get(575).'</td><td class="tableHeader">'.WebGUI::International::get(721)
|
||||
.'</td><td class="tableHeader">'.WebGUI::International::get(722)
|
||||
.'</td><td class="tableHeader" width="100%">'.WebGUI::International::get(230).'</td></tr>';
|
||||
$output .= $p->getPage($session{form}{pn});
|
||||
$output .= '</table>';
|
||||
$output .= $p->getBarTraditional($session{form}{pn});
|
||||
return _submenu(WebGUI::Macro::negate($output));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_listLanguages {
|
||||
my ($output, $sth, %data);
|
||||
tie %data, 'Tie::CPHash';
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(10));
|
||||
$output = '<h1>'.WebGUI::International::get(586).'</h1>';
|
||||
$sth = WebGUI::SQL->read("select languageId,language from language where languageId<>1 order by language");
|
||||
while (%data = $sth->hash) {
|
||||
$output .= '<a href="'.WebGUI::URL::page("op=editLanguage&lid=".$data{languageId}).'">'.$data{language}.'<br>';
|
||||
}
|
||||
$sth->finish;
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_submitTranslation {
|
||||
my ($output);
|
||||
$output .= '<h1>'.WebGUI::International::get(42).'</h1>';
|
||||
$output .= WebGUI::International::get(588).'<p>';
|
||||
$output .= '<div align="center"><a href="'.
|
||||
WebGUI::URL::page('op=submitTranslationConfirm&lid='.$session{form}{lid})
|
||||
.'">'.WebGUI::International::get(44).'</a>';
|
||||
$output .= ' <a href="'.WebGUI::URL::page('op=listLanguages').
|
||||
'">'.WebGUI::International::get(45).'</a></div>';
|
||||
return _submenu($output);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_submitTranslationConfirm {
|
||||
WebGUI::Mail::send("info\@plainblack.com","International Message Submission",_export($session{form}{lid}));
|
||||
return www_editLanguage();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1;
|
||||
|
|
@ -52,15 +52,15 @@ sub _reorderFields {
|
|||
sub _submenu {
|
||||
my (%menu);
|
||||
tie %menu, 'Tie::IxHash';
|
||||
$menu{WebGUI::URL::page("op=editProfileCategory")} = WebGUI::International::get(490,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page("op=editProfileField")} = WebGUI::International::get(491,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page("op=editProfileCategory")} = WebGUI::International::get(490,"WebGUI-Profile");
|
||||
$menu{WebGUI::URL::page("op=editProfileField")} = WebGUI::International::get(491,"WebGUI-Profile");
|
||||
if (($session{form}{op} eq "editProfileField" && $session{form}{fid} ne "new") || $session{form}{op} eq "deleteProfileField") {
|
||||
$menu{WebGUI::URL::page('op=editProfileField&fid='.$session{form}{fid})} = WebGUI::International::get(787,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page('op=deleteProfileField&fid='.$session{form}{fid})} = WebGUI::International::get(788,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page('op=editProfileField&fid='.$session{form}{fid})} = WebGUI::International::get(787,"WebGUI-Profile");
|
||||
$menu{WebGUI::URL::page('op=deleteProfileField&fid='.$session{form}{fid})} = WebGUI::International::get(788,"WebGUI-Profile");
|
||||
}
|
||||
if (($session{form}{op} eq "editProfileCategory" && $session{form}{cid} ne "new") || $session{form}{op} eq "deleteProfileCategory") {
|
||||
$menu{WebGUI::URL::page('op=editProfileCategory&cid='.$session{form}{cid})} = WebGUI::International::get(789,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page('op=deleteProfileCategory&cid='.$session{form}{cid})} = WebGUI::International::get(790,"WebGUI/Profile");
|
||||
$menu{WebGUI::URL::page('op=editProfileCategory&cid='.$session{form}{cid})} = WebGUI::International::get(789,"WebGUI-Profile");
|
||||
$menu{WebGUI::URL::page('op=deleteProfileCategory&cid='.$session{form}{cid})} = WebGUI::International::get(790,"WebGUI-Profile");
|
||||
}
|
||||
$menu{WebGUI::URL::page("op=editProfileSettings")} = WebGUI::International::get(492);
|
||||
$menu{WebGUI::URL::page('op=manageSettings')} = WebGUI::International::get(4);
|
||||
|
|
@ -73,7 +73,7 @@ sub www_deleteProfileCategory {
|
|||
my ($output);
|
||||
return WebGUI::Privilege::vitalComponent() if ($session{form}{cid} < 1000);
|
||||
$output = '<h1>'.WebGUI::International::get(42).'</h1>';
|
||||
$output .= WebGUI::International::get(466,"WebGUI/Profile").'<p>';
|
||||
$output .= WebGUI::International::get(466,"WebGUI-Profile").'<p>';
|
||||
$output .= '<div align="center"><a href="'.WebGUI::URL::page('op=deleteProfileCategoryConfirm&cid='.$session{form}{cid}).
|
||||
'">'.WebGUI::International::get(44).'</a>';
|
||||
$output .= ' <a href="'.WebGUI::URL::page('op=editProfileSettings').'">'.
|
||||
|
|
@ -97,7 +97,7 @@ sub www_deleteProfileField {
|
|||
($protected) = WebGUI::SQL->quickArray("select protected from userProfileField where fieldname=".quote($session{form}{fid}));
|
||||
return WebGUI::Privilege::vitalComponent() if ($protected);
|
||||
$output = '<h1>'.WebGUI::International::get(42).'</h1>';
|
||||
$output .= WebGUI::International::get(467,"WebGUI/Profile").'<p>';
|
||||
$output .= WebGUI::International::get(467,"WebGUI-Profile").'<p>';
|
||||
$output .= '<div align="center"><a href="'.WebGUI::URL::page('op=deleteProfileFieldConfirm&fid='.$session{form}{fid}).
|
||||
'">'.WebGUI::International::get(44).'</a>';
|
||||
$output .= ' <a href="'.WebGUI::URL::page('op=editProfileSettings').'">'.
|
||||
|
|
@ -121,7 +121,7 @@ sub www_editProfileCategory {
|
|||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3));
|
||||
my ($output, $f, %data);
|
||||
tie %data, 'Tie::CPHash';
|
||||
$output = '<h1>'.WebGUI::International::get(468,"WebGUI/Profile").'</h1>';
|
||||
$output = '<h1>'.WebGUI::International::get(468,"WebGUI-Profile").'</h1>';
|
||||
$f = WebGUI::HTMLForm->new;
|
||||
$f->hidden("op","editProfileCategorySave");
|
||||
if ($session{form}{cid}) {
|
||||
|
|
@ -134,13 +134,13 @@ sub www_editProfileCategory {
|
|||
$f->text("categoryName",WebGUI::International::get(470),$data{categoryName});
|
||||
$f->yesNo(
|
||||
-name=>"visible",
|
||||
-label=>WebGUI::International::get(473,"WebGUI/Profile"),
|
||||
-label=>WebGUI::International::get(473,"WebGUI-Profile"),
|
||||
-value=>$data{visible}
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"editable",
|
||||
-value=>$data{editable},
|
||||
-label=>WebGUI::International::get(897,"WebGUI/Profile")
|
||||
-label=>WebGUI::International::get(897,"WebGUI-Profile")
|
||||
);
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
|
|
@ -171,7 +171,7 @@ sub www_editProfileField {
|
|||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3));
|
||||
my ($output, $f, %data, %hash, $key);
|
||||
tie %data, 'Tie::CPHash';
|
||||
$output = '<h1>'.WebGUI::International::get(471,"WebGUI/Profile").'</h1>';
|
||||
$output = '<h1>'.WebGUI::International::get(471,"WebGUI-Profile").'</h1>';
|
||||
$f = WebGUI::HTMLForm->new;
|
||||
$f->hidden("op","editProfileFieldSave");
|
||||
if ($session{form}{fid}) {
|
||||
|
|
@ -185,17 +185,17 @@ sub www_editProfileField {
|
|||
$f->text("fieldLabel",WebGUI::International::get(472),$data{fieldLabel});
|
||||
$f->yesNo(
|
||||
-name=>"visible",
|
||||
-label=>WebGUI::International::get(473,"WebGUI/Profile"),
|
||||
-label=>WebGUI::International::get(473,"WebGUI-Profile"),
|
||||
-value=>$data{visible}
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"editable",
|
||||
-value=>$data{editable},
|
||||
-label=>WebGUI::International::get(897,"WebGUI/Profile")
|
||||
-label=>WebGUI::International::get(897,"WebGUI-Profile")
|
||||
);
|
||||
$f->yesNo(
|
||||
-name=>"required",
|
||||
-label=>WebGUI::International::get(474,"WebGUI/Profile"),
|
||||
-label=>WebGUI::International::get(474,"WebGUI-Profile"),
|
||||
-value=>$data{required}
|
||||
);
|
||||
$f->fieldType(
|
||||
|
|
@ -213,7 +213,7 @@ sub www_editProfileField {
|
|||
$f->select(
|
||||
-name=>"profileCategoryId",
|
||||
-options=>\%hash,
|
||||
-label=>WebGUI::International::get(489,"WebGUI/Profile"),
|
||||
-label=>WebGUI::International::get(489,"WebGUI-Profile"),
|
||||
-value=>[$data{profileCategoryId}]
|
||||
);
|
||||
$f->submit;
|
||||
|
|
|
|||
|
|
@ -495,7 +495,7 @@ sub _getContentTypes {
|
|||
'content' => WebGUI::International::get(21,$self->get("namespace")),
|
||||
'discussion' => WebGUI::International::get(892),
|
||||
'profile' => WebGUI::International::get(22,$self->get("namespace")),
|
||||
'help' => WebGUI::International::get(93),
|
||||
#'help' => WebGUI::International::get(93),
|
||||
'any' => WebGUI::International::get(23,$self->get("namespace")),
|
||||
);
|
||||
tie my %contentTypes, 'Tie::IxHash';
|
||||
|
|
|
|||
9
lib/WebGUI/i18n/English.pm
Normal file
9
lib/WebGUI/i18n/English.pm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package WebGUI::i18n::English;
|
||||
|
||||
our $LANGUAGE = {
|
||||
label => "English",
|
||||
charset => "ISO-8859-1",
|
||||
toolbar => "metal"
|
||||
};
|
||||
|
||||
1;
|
||||
187
lib/WebGUI/i18n/English/Article.pm
Normal file
187
lib/WebGUI/i18n/English/Article.pm
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
package WebGUI::i18n::English::Article;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|Article|,
|
||||
|
||||
3 => q|Start Date|,
|
||||
|
||||
4 => q|End Date|,
|
||||
|
||||
6 => q|Image|,
|
||||
|
||||
7 => q|Link Title|,
|
||||
|
||||
8 => q|Link URL|,
|
||||
|
||||
9 => q|Attachment|,
|
||||
|
||||
10 => q|Convert carriage returns?|,
|
||||
|
||||
11 => q|(Select "Yes" only if you aren't adding <br> manually.)|,
|
||||
|
||||
12 => q|Edit Article|,
|
||||
|
||||
13 => q|Delete|,
|
||||
|
||||
22 => q|Author|,
|
||||
|
||||
23 => q|Date|,
|
||||
|
||||
24 => q|Post Response|,
|
||||
|
||||
28 => q|View Responses|,
|
||||
|
||||
61 => q|Article, Add/Edit|,
|
||||
|
||||
71 => q|Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article.
|
||||
<br><br>
|
||||
|
||||
NOTE: You can create a multi-paged article by placing the seperator macro (^-;) at various places through-out your article.
|
||||
|
||||
<p />
|
||||
<b>Template</b><br/>
|
||||
Select a template to layout your article.
|
||||
<p />
|
||||
|
||||
<b>Image</b><br>
|
||||
Choose an image (.jpg, .gif, .png) file from your hard drive. This file will be uploaded to the server and displayed in your article.
|
||||
<br><br>
|
||||
|
||||
|
||||
<b>Attachment</b><br>
|
||||
If you wish to attach a word processor file, a zip file, or any other file for download by your users, then choose it from your hard drive.
|
||||
<br><br>
|
||||
|
||||
<b>Link Title</b><br>
|
||||
If you wish to add a link to your article, enter the title of the link in this field.
|
||||
<br><br>
|
||||
<i>Example:</i> Google
|
||||
<br><br>
|
||||
|
||||
<b>Link URL</b><br>
|
||||
If you added a link title, now add the URL (uniform resource locator) here.
|
||||
<br><br>
|
||||
<i>Example:</i> http://www.google.com
|
||||
|
||||
<br><br>
|
||||
|
||||
<b>Convert carriage returns?</b><br>
|
||||
If you're publishing HTML there's generally no need to check this option, but if you aren't using HTML and you want a carriage return every place you hit your "Enter" key, then check this option.
|
||||
<p>
|
||||
|
||||
<b>Allow discussion?</b><br>
|
||||
Checking this box will enable responses to your article much like Articles on Slashdot.org.
|
||||
<p>
|
||||
|
||||
|
||||
|,
|
||||
|
||||
73 => q|The following template variables are available for article templates.
|
||||
<p/>
|
||||
|
||||
<b>new.template</b><br>
|
||||
Articles have the special ability to change their template so that you can allow users to see different views of the article. You do this by creating a link with a URL like this (replace 999 with the template Id you wish to use):<p>
|
||||
<a href="<tmpl_var new.template>999">Read more...</a>
|
||||
<p>
|
||||
<b>description.full</b><br>
|
||||
The full description without any pagination. (For the paginated description use "description" instead.)
|
||||
<p>
|
||||
|
||||
<b>description.first.100words</b><br>
|
||||
The first 100 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.
|
||||
<p>
|
||||
|
||||
<b>description.first.75words</b><br>
|
||||
The first 75 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.
|
||||
<p>
|
||||
|
||||
<b>description.first.50words</b><br>
|
||||
The first 50 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.
|
||||
<p>
|
||||
|
||||
<b>description.first.25words</b><br>
|
||||
The first 25 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.
|
||||
<p>
|
||||
|
||||
<b>description.first.10words</b><br>
|
||||
The first 10 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.
|
||||
<p>
|
||||
|
||||
<b>description.first.paragraph</b><br>
|
||||
The first paragraph of the description. The first paragraph is determined by the first carriage return found in the text.
|
||||
<p>
|
||||
|
||||
<b>description.first.2paragraphs</b><br>
|
||||
The first two paragraphs of the description. A paragraph is determined by counting the carriage returns found in the text.
|
||||
<p>
|
||||
|
||||
<b>description.first.sentence</b><br>
|
||||
The first sentence in the description. A sentence is determined by counting the periods found in the text.
|
||||
<p>
|
||||
|
||||
<b>description.first.2sentences</b><br>
|
||||
The first two sentences in the description. A sentence is determined by counting the periods found in the text.
|
||||
<p>
|
||||
|
||||
<b>description.first.3sentences</b><br>
|
||||
The first three sentences in the description. A sentence is determined by counting the periods found in the text.
|
||||
<p>
|
||||
|
||||
<b>description.first.4sentences</b><br>
|
||||
The first four sentences in the description. A sentence is determined by counting the periods found in the text.
|
||||
<p>
|
||||
|
||||
|
||||
|
||||
<b>attachment.box</b><br/>
|
||||
Outputs a standard WebGUI attachment box including icon, filename, and attachment indicator.
|
||||
<p/>
|
||||
|
||||
<b>attachment.icon</b><br/>
|
||||
The URL to the icon image for this attachment type.
|
||||
<p/>
|
||||
|
||||
<b>attachment.name</b><br/>
|
||||
The filename for this attachment.
|
||||
<p/>
|
||||
|
||||
<b>attachment.url</b><br/>
|
||||
The URL to download this attachment.
|
||||
<p/>
|
||||
|
||||
<b>image.thumbnail</b><br/>
|
||||
The URL to the thumbnail for the attached image.
|
||||
<p/>
|
||||
|
||||
<b>image.url</b><br/>
|
||||
The URL to the attached image.
|
||||
<p/>
|
||||
|
||||
<b>post.label</b><br/>
|
||||
The translated label to add a comment to this article.
|
||||
<p/>
|
||||
|
||||
|
||||
<b>post.URL</b><br/>
|
||||
The URL to add a comment to this article.
|
||||
<p/>
|
||||
|
||||
<b>replies.count</b><br/>
|
||||
The number of comments attached to this article.
|
||||
<p/>
|
||||
|
||||
<b>replies.label</b><br/>
|
||||
The translated text indicating that you can view the replies.
|
||||
<p/>
|
||||
|
||||
<b>replies.url</b><br/>
|
||||
The URL to view the replies to this article.
|
||||
<p/>
|
||||
|
||||
|,
|
||||
|
||||
72 => q|Article Template|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
52
lib/WebGUI/i18n/English/AuthLDAP.pm
Normal file
52
lib/WebGUI/i18n/English/AuthLDAP.pm
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
package WebGUI::i18n::English::AuthLDAP;
|
||||
|
||||
our $I18N = {
|
||||
2 => q|Cannot connect to LDAP server.|,
|
||||
|
||||
5 => q|LDAP URL (default)|,
|
||||
|
||||
6 => q|LDAP Identity (default)|,
|
||||
|
||||
7 => q|LDAP Identity Name|,
|
||||
|
||||
8 => q|LDAP Password Name|,
|
||||
|
||||
3 => q|LDAP URL|,
|
||||
|
||||
4 => q|Connect DN|,
|
||||
|
||||
9 => q|User RDN|,
|
||||
|
||||
1 => q|LDAP Authentication Options|,
|
||||
|
||||
10 => q|Password (confirm)|,
|
||||
|
||||
11 => q|No connect DN specified for this user|,
|
||||
|
||||
13 => q|Invalid LDAP connection URL. Contact your administrator.|,
|
||||
|
||||
12 => q|No LDAP Url Specified for this user|,
|
||||
|
||||
'account-1' => q|LDAP Authentication Display Account Template|,
|
||||
|
||||
'account-2' => q|The following template variables are available for the LDAP Authentication Display Account templates.
|
||||
<P><STRONG>account.form.karma</STRONG><BR>A read only form property displaying the amount of karma a user has. Karma is a configurable user setting that is turned off by default
|
||||
<P><STRONG>account.form.karma.label</STRONG><BR>Internationalized text label for the karma form value
|
||||
<P><STRONG>account.options</STRONG><BR>Links list of options which allow users to turn on Admin, view and edit profile, view the messageLog, etc. <BR><BR><STRONG>displayTitle<BR></STRONG>Page title<BR><STRONG><BR>account.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.</P>|,
|
||||
|
||||
'create-1' => q|LDAP Authentication Anonymous Registration Template|,
|
||||
|
||||
'create-2' => q|The following template variables are available for LDAP Authentication Anonymous Registration templates. <BR><BR><STRONG>create.form.header</STRONG><BR>The required form elements that go at the top of the anonymous registration page.<BR><BR><STRONG>create.form.hidden<BR></STRONG>Hidden form fields required for form submittal<BR><BR><STRONG>create.form.footer</STRONG><BR>The required form elements that go after the anonymous registration page form.
|
||||
<P><STRONG>create.form.submit<BR></STRONG>The default submit button for the anonymous registration form. <BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>create.form.profile<BR></STRONG>A loop containing visible and required profile fields for registration<BR><BR> <STRONG>profile.formElement</STRONG><BR> Form element for visible or required profile field<BR><BR> <STRONG>profile.formElement.label</STRONG><BR><STRONG> </STRONG>Default text label for profile form element<BR><BR><BR><STRONG>login.url<BR></STRONG>URL for the login page<BR><BR><STRONG>login.label</STRONG><BR>Default text label for login page link.<BR><BR><STRONG>create.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>create.form.ldapId</STRONG><BR>Default ldapId form field<BR><BR><STRONG>create.form.ldapId.label</STRONG><BR>Default text for ldapId form field<BR><BR><STRONG>create.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>create.form.password.label<BR></STRONG>Default text for password form field</P>|,
|
||||
|
||||
'login-1' => q|LDAP Authentication Login Template|,
|
||||
|
||||
'login-2' => q|The following template variables are available for LDAP Authentication Login templates.
|
||||
<P><STRONG>login.form.header</STRONG><BR>The required form elements that go at the top of the login page.<BR><BR><STRONG>login.form.hidden</STRONG><BR>Hidden form fields required for form submission<BR><BR><STRONG>login.form.footer</STRONG><BR>The required form elements that go after the login page form.</P>
|
||||
<P><STRONG>login.form.submit<BR></STRONG>The default submit button for the login form. <BR><BR><STRONG>login.form.username<BR></STRONG>Default username form field<BR><BR><STRONG>login.form.username.label<BR></STRONG>Default text for username form field<BR><BR><STRONG>login.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>login.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>login.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>anonymousRegistration.isAllowed<BR></STRONG>Flag indicating whether or not anoymous registrations are allowed<BR><BR><STRONG>createAccount.url</STRONG><BR>URL for the anonymous registration page<BR><BR><STRONG>createAccount.label<BR></STRONG>Default label for the anonymous registration link</P>|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
46
lib/WebGUI/i18n/English/AuthSMB.pm
Normal file
46
lib/WebGUI/i18n/English/AuthSMB.pm
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package WebGUI::i18n::English::AuthSMB;
|
||||
|
||||
our $I18N = {
|
||||
9 => q|NT Password|,
|
||||
|
||||
8 => q|NT Login|,
|
||||
|
||||
7 => q|NT Domain|,
|
||||
|
||||
6 => q|BDC|,
|
||||
|
||||
5 => q|PDC|,
|
||||
|
||||
4 => q|SMB Logon Error (3)<br>You have supplied an invalid username/password pair. Probably a typo, please try again.|,
|
||||
|
||||
3 => q|SMB Protocol Error (2)<br>Please contact your sysadmin.|,
|
||||
|
||||
2 => q|SMB Server Error (1)<br>Something went wrong accessing the domain controller. Perhaps the connection timed out. Please try again or contact your sysadmin.|,
|
||||
|
||||
1 => q|SMB Authentication Options|,
|
||||
|
||||
10 => q|No SMB username specfified.|,
|
||||
|
||||
'account-1' => q|SMB Authentication Display Account Template|,
|
||||
|
||||
'account-2' => q|The following template variables are available for the SMB Authentication Display Account templates.
|
||||
<P><STRONG>account.form.karma</STRONG><BR>A read only form property displaying the amount of karma a user has. Karma is a configurable user setting that is turned off by default
|
||||
<P><STRONG>account.form.karma.label</STRONG><BR>Internationalized text label for the karma form value
|
||||
<P><STRONG>account.options</STRONG><BR>Links list of options which allow users to turn on Admin, view and edit profile, view the messageLog, etc. <BR><BR><STRONG>displayTitle<BR></STRONG>Page title<BR><STRONG><BR>account.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.</P>|,
|
||||
|
||||
'create-1' => q|SMB Authentication Anonymous Registration Template|,
|
||||
|
||||
'create-2' => q|The following template variables are available for SMB Authentication Anonymous Registration templates. <BR><BR><STRONG>create.form.header</STRONG><BR>The required form elements that go at the top of the anonymous registration page.<BR><BR><STRONG>create.form.hidden<BR></STRONG>Hidden form fields required for form submittal<BR><BR><STRONG>create.form.footer</STRONG><BR>The required form elements that go after the anonymous registration page form.
|
||||
<P><STRONG>create.form.submit<BR></STRONG>The default submit button for the anonymous registration form. <BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>create.form.profile<BR></STRONG>A loop containing visible and required profile fields for registration<BR><BR> <STRONG>profile.formElement</STRONG><BR> Form element for visible or required profile field<BR><BR> <STRONG>profile.formElement.label</STRONG><BR><STRONG> </STRONG>Default text label for profile form element<BR><BR><BR><STRONG>login.url<BR></STRONG>URL for the login page<BR><BR><STRONG>login.label</STRONG><BR>Default text label for login page link.<BR><BR><STRONG>create.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>create.form.loginId</STRONG><BR>Default SMB loginId form field<BR><BR><STRONG>create.form.loginId.label</STRONG><BR>Default text for SMB loginId form field<BR><BR><STRONG>create.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>create.form.password.label<BR></STRONG>Default text for password form field</P>|,
|
||||
|
||||
'login-1' => q|SMB Authentication Login Template|,
|
||||
|
||||
'login-2' => q|The following template variables are available for SMB Authentication Login templates.
|
||||
<P><STRONG>login.form.header</STRONG><BR>The required form elements that go at the top of the login page.<BR><BR><STRONG>login.form.hidden</STRONG><BR>Hidden form fields required for form submission<BR><BR><STRONG>login.form.footer</STRONG><BR>The required form elements that go after the login page form.</P>
|
||||
<P><STRONG>login.form.submit<BR></STRONG>The default submit button for the login form. <BR><BR><STRONG>login.form.username<BR></STRONG>Default username form field<BR><BR><STRONG>login.form.username.label<BR></STRONG>Default text for username form field<BR><BR><STRONG>login.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>login.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>login.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>anonymousRegistration.isAllowed<BR></STRONG>Flag indicating whether or not anoymous registrations are allowed<BR><BR><STRONG>createAccount.url</STRONG><BR>URL for the anonymous registration page<BR><BR><STRONG>createAccount.label<BR></STRONG>Default label for the anonymous registration link</P>|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
85
lib/WebGUI/i18n/English/AuthWebGUI.pm
Normal file
85
lib/WebGUI/i18n/English/AuthWebGUI.pm
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
package WebGUI::i18n::English::AuthWebGUI;
|
||||
|
||||
our $I18N = {
|
||||
8 => q|Your Password Has Expired|,
|
||||
|
||||
2 => q|Password (confirm)|,
|
||||
|
||||
3 => q|Your passwords did not match. Please try again.|,
|
||||
|
||||
10 => q|Old Password|,
|
||||
|
||||
9 => q|Expire passwords on user creation?|,
|
||||
|
||||
14 => q|Minimum password length|,
|
||||
|
||||
7 => q|Passwords must have a minimum character length of|,
|
||||
|
||||
11 => q|New Password|,
|
||||
|
||||
12 => q|You may not use your old password as your new password|,
|
||||
|
||||
13 => q|Allow password recovery?|,
|
||||
|
||||
6 => q|Allow Password Recovery?|,
|
||||
|
||||
5 => q|Your password cannot be "password".|,
|
||||
|
||||
4 => q|Your password cannot be blank.|,
|
||||
|
||||
15 => q|Minimum Password Length|,
|
||||
|
||||
1 => q|WebGUI Authentication Options|,
|
||||
|
||||
22 => q|There are no fields to update.|,
|
||||
|
||||
21 => q|Allow User to Change Username?|,
|
||||
|
||||
20 => q|Allow User to Change Password?|,
|
||||
|
||||
19 => q|Allow Users to Change Username?|,
|
||||
|
||||
18 => q|Allow Users to Change Passwords?|,
|
||||
|
||||
17 => q|Password Updated|,
|
||||
|
||||
16 => q|Password Timeout|,
|
||||
|
||||
'account-1' => q|WebGUI Authentication Display Account Template|,
|
||||
|
||||
'account-2' => q|The following template variables are available for WebGUI Authentication Display Account templates.
|
||||
<P><STRONG>account.form.header</STRONG><BR>The required form elements that go at the top of the display account page.<BR><BR><STRONG>account.form.footer</STRONG><BR>The required form elements that go after the display account page form. </P>
|
||||
<P><STRONG>account.form.karma</STRONG><BR>A read only form property displaying the amount of karma a user has. Karma is a configurable user setting that is turned off by default
|
||||
<P><STRONG>account.form.karma.label</STRONG><BR>Internationalized text label for the karma form value
|
||||
<P><STRONG>account.form.submit<BR></STRONG>The default submit button for the display account form. <BR><BR><STRONG>account.options</STRONG><BR>Links list of options which allow users to turn on Admin, view and edit profile, view the messageLog, etc. <BR><BR><STRONG>displayTitle<BR></STRONG>Page title
|
||||
<P><STRONG>account.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>account.form.username</STRONG><BR>Default username form field<BR><BR><STRONG>account.form.username.label</STRONG><BR>Default text for username form field<BR><BR><STRONG>account.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>account.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>account.form.passwordConfirm</STRONG><BR>Default password confirm form field<BR><BR><STRONG>account.form.passwordConfirm.label<BR></STRONG>Default text for password confirm form field<BR><BR><STRONG>account.noform</STRONG><BR>Indicates whether or not the display account form has any visible fields<BR><BR><STRONG>account.nofields<BR></STRONG>Default display in the case that there are no form elements to display</P>|,
|
||||
|
||||
'create-2' => q|The following template variables are available for WebGUI Authentication Anonymous Registration templates. <BR><BR><STRONG>create.form.header</STRONG><BR>The required form elements that go at the top of the anonymous registration page.<BR><BR><STRONG>create.form.hidden<BR></STRONG>Hidden form fields required for form submittal<BR><BR><STRONG>create.form.footer</STRONG><BR>The required form elements that go after the anonymous registration page form.
|
||||
<P><STRONG>create.form.submit<BR></STRONG>The default submit button for the anonymous registration form. <BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>create.form.profile<BR></STRONG>A loop containing visible and required profile fields for anonymouse registration<BR><BR> <STRONG>profile.formElement</STRONG><BR> Form element for visible or required profile field<BR><BR> <STRONG>profile.formElement.label</STRONG><BR><STRONG> </STRONG>Default text label for profile form element<BR><BR><BR><STRONG>login.url<BR></STRONG>URL for the login page<BR><BR><STRONG>login.label</STRONG><BR>Default text label for login page link.<BR><BR><STRONG>create.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>create.form.username</STRONG><BR>Default username form field<BR><BR><STRONG>create.form.username.label</STRONG><BR>Default text for username form field<BR><BR><STRONG>create.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>create.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>create.form.passwordConfirm</STRONG><BR>Default password confirm form field<BR><BR><STRONG>create.form.passwordConfirm.label<BR></STRONG>Default text for password confirm form field<BR><BR><STRONG>recoverPassword.isAllowed<BR></STRONG>Flag indicating whether or not password recovery is enabled<BR><BR><STRONG>recoverPassword.url<BR></STRONG>URL for the password recovery page.<BR><BR><STRONG>recoverPassword.label<BR></STRONG>Default label for the password recovery link</P>|,
|
||||
|
||||
'create-1' => q|WebGUI Authentication Anonymous Registration Template|,
|
||||
|
||||
'expired-1' => q|WebGUI Authentication Password Expiration Template|,
|
||||
|
||||
'expired-2' => q|The following template variables are available for WebGUI Authentication Password Expiration templates. <BR><BR><STRONG>expired.form.header</STRONG><BR>The required form elements that go at the top of the password expiration page.<BR><BR><STRONG>expired.form.hidden<BR></STRONG>Hidden form fields required for form submittal<BR><BR><STRONG>expired.form.footer</STRONG><BR>The required form elements that go after the password expiration page form.
|
||||
<P><STRONG>expired.form.submit<BR></STRONG>The default submit button for the password expiration form. <BR><BR><STRONG>displayTitle<BR></STRONG>Default page title
|
||||
<P><STRONG>expired.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>create.form.oldPassword</STRONG><BR>Default old password form field<BR><BR><STRONG>create.form.oldPassword.label</STRONG><BR>Default text for old password form field<BR><BR><STRONG>expired.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>expired.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>expired.form.passwordConfirm</STRONG><BR>Default password confirm form field<BR><BR><STRONG>expired.form.passwordConfirm.label<BR></STRONG>Default text for password confirm form field</P>|,
|
||||
|
||||
'login-1' => q|WebGUI Authentication Login Template|,
|
||||
|
||||
'login-2' => q|The following template variables are available for WebGUI Authentication Login templates.
|
||||
<P><STRONG>login.form.header</STRONG><BR>The required form elements that go at the top of the login page.<BR><BR><STRONG>login.form.hidden</STRONG><BR>Hidden form fields required for form submission<BR><BR><STRONG>login.form.footer</STRONG><BR>The required form elements that go after the login page form.</P>
|
||||
<P><STRONG>login.form.submit<BR></STRONG>The default submit button for the login form. <BR><BR><STRONG>login.form.username<BR></STRONG>Default username form field<BR><BR><STRONG>login.form.username.label<BR></STRONG>Default text for username form field<BR><BR><STRONG>login.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>login.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>login.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>anonymousRegistration.isAllowed<BR></STRONG>Flag indicating whether or not anoymous registrations are allowed<BR><BR><STRONG>createAccount.url</STRONG><BR>URL for the anonymous registration page<BR><BR><STRONG>createAccount.label<BR></STRONG>Default label for the anonymous registration link<BR><BR><STRONG>recoverPassword.isAllowed</STRONG><BR>Flag indicating whether or not password recovery is enabled<BR><BR><STRONG>recoverPassword.url<BR></STRONG>URL for the password recovery page.<BR><BR><STRONG>recoverPassword.label<BR></STRONG>Default label for the password recovery link</P>|,
|
||||
|
||||
'recovery-1' => q|WebGUI Authentication Password Recovery Template|,
|
||||
|
||||
'recovery-2' => q|The following template variables are available for WebGUI Authentication Password Recovery templates.
|
||||
<P><STRONG>recover.form.header</STRONG><BR>The required form elements that go at the top of the password recovery page.<BR><BR><STRONG>recover.form.hidden</STRONG><BR>Hidden form fields required for form submission<BR><BR><STRONG>recover.form.footer</STRONG><BR>The required form elements that go after the password recovery page form.</P>
|
||||
<P><STRONG>recover.form.submit<BR></STRONG>The default submit button for the password recovery form. <BR><BR><STRONG>login.form.email<BR></STRONG>Default email form field<BR><BR><STRONG>login.form.email.label<BR></STRONG>Default text for email form field<BR><BR><STRONG>title<BR></STRONG>Default page title
|
||||
<P><STRONG>recover.message</STRONG><BR>Any message returned by the system. Usually displays after the form is submitted.<BR><BR><STRONG>anonymousRegistration.isAllowed<BR></STRONG>Flag indicating whether or not anoymous registrations are allowed<BR><BR><STRONG>createAccount.url</STRONG><BR>URL for the anonymous registration page<BR><BR><STRONG>createAccount.label<BR></STRONG>Default label for the anonymous registration link<BR><BR><STRONG>login.url<BR></STRONG>URL for the login page<BR><BR><STRONG>login.label</STRONG><BR>Default text label for login page link.</P>|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
424
lib/WebGUI/i18n/English/DataForm.pm
Normal file
424
lib/WebGUI/i18n/English/DataForm.pm
Normal file
|
|
@ -0,0 +1,424 @@
|
|||
package WebGUI::i18n::English::DataForm;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|Data Form|,
|
||||
|
||||
2 => q|Your email subject here|,
|
||||
|
||||
3 => q|Thank you for your feedback!|,
|
||||
|
||||
4 => q|Hidden|,
|
||||
|
||||
5 => q|Displayed|,
|
||||
|
||||
6 => q|Modifiable|,
|
||||
|
||||
7 => q|Edit Data Form|,
|
||||
|
||||
8 => q|Width|,
|
||||
|
||||
10 => q|From|,
|
||||
|
||||
11 => q|To|,
|
||||
|
||||
12 => q|Cc|,
|
||||
|
||||
13 => q|Bcc|,
|
||||
|
||||
14 => q|Subject|,
|
||||
|
||||
16 => q|Acknowledgement|,
|
||||
|
||||
17 => q|Mail Sent|,
|
||||
|
||||
18 => q|Go back!|,
|
||||
|
||||
19 => q|Are you certain that you want to delete this field?|,
|
||||
|
||||
20 => q|Edit Field|,
|
||||
|
||||
21 => q|Field Name|,
|
||||
|
||||
22 => q|Status|,
|
||||
|
||||
23 => q|Type|,
|
||||
|
||||
24 => q|Possible Values|,
|
||||
|
||||
25 => q|Default Value(s)|,
|
||||
|
||||
79 => q|Subtext|,
|
||||
|
||||
61 => q|Data Form, Add/Edit|,
|
||||
|
||||
62 => q|Data Form Fields, Add/Edit|,
|
||||
|
||||
71 => q|This wobject creates a simple multipurpose data-entry form.
|
||||
<br><br>
|
||||
|
||||
<b>Acknowledgement</b><br>
|
||||
This message will be displayed to the user after they submit their data..
|
||||
<p>
|
||||
|
||||
<b>Mail entries?</b></br>
|
||||
If set to yes, some additional fields will be added to your form for dealing with email. These fields will then be used to email any date entered into the form to a person of your choice.
|
||||
<p>
|
||||
<b>NOTE:</b> The "To" field that is added as a result of setting this to yes can accept a standard email address, or a WebGUI username or a WebGUI group name.
|
||||
<p>
|
||||
|
||||
<b>Template</b><br>
|
||||
Choose a template for your form.
|
||||
<p>
|
||||
|
||||
<b>Email Template</b><br>
|
||||
Choose a template for the data that will be sent via email.
|
||||
<p>
|
||||
|
||||
<b>Acknowlegement Template</b><br>
|
||||
Choose a template that will be used to display the acknowlegement.
|
||||
<p>
|
||||
|
||||
<b>List Template</b><br>
|
||||
Choose a template that will be used to display the list of stored records in this Data Form.
|
||||
<p>|,
|
||||
|
||||
83 => q|The following template variables are available for Data Form templates.
|
||||
<p/>
|
||||
|
||||
<b>acknowledgement</b><br>
|
||||
The acknowledgement specified in the wobject's properties. This message should be displayed after a user submits data.
|
||||
<p>
|
||||
<b>export.tab.url</b><br>
|
||||
Following this URL will export the data stored to this data form as a tab delimited file.
|
||||
<p>
|
||||
|
||||
<b>export.tab.label</b><br>
|
||||
The default label for the export.tab.url variable.
|
||||
<p>
|
||||
|
||||
<b>entryList.url</b><br>
|
||||
Following this URL will display a list of all the record entries in this data form.
|
||||
<p>
|
||||
|
||||
<b>entryList.label</b><br>
|
||||
The default label for the entryList.url variable.
|
||||
<p>
|
||||
|
||||
<b>canEdit</b>
|
||||
A conditional indicating whether the current user has the privileges to edit an existing entry or export the form's data.
|
||||
<p>
|
||||
|
||||
<b>back.url</b><br>
|
||||
A url that will take you back to the default page in the form.
|
||||
<p>
|
||||
|
||||
<b>back.label</b><br>
|
||||
The default label for the back.url variable.
|
||||
<p>
|
||||
|
||||
<b>username</b>*<br>
|
||||
The username of the user that submitted the data.
|
||||
<p>
|
||||
|
||||
<b>userId</b>*<br>
|
||||
The user id of the user that submitted the data.
|
||||
<p>
|
||||
|
||||
<b>date</b>*<br>
|
||||
The date that this data was submitted or last updated formatted as the user's preferred date/time format.
|
||||
<p>
|
||||
|
||||
|
||||
<b>epoch</b>*<br>
|
||||
The date that this data was submitted or last updated formatted as an epoch date.
|
||||
<p>
|
||||
|
||||
<b>ipAddress</b>*<br>
|
||||
The IP address of the user that submitted the data.
|
||||
<p>
|
||||
|
||||
<b>edit.url</b>*<br>
|
||||
The URL to the page to edit this entry.
|
||||
<p>
|
||||
|
||||
<b>error_loop</b>*<br>
|
||||
A loop containing error information, for instance if someone doesn't fill out a required field.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>error.message</b>*<br>
|
||||
An error message indicating what the user might have done wrong.
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>addField.url</b><br>
|
||||
The URL that content managers will visit to add a new field to the form.
|
||||
<p>
|
||||
|
||||
<b>addField.label</b><br>
|
||||
The default label for the addField.url variable.
|
||||
<p>
|
||||
|
||||
<b>form.start</b><br>
|
||||
The beginning of the form.
|
||||
<p>
|
||||
|
||||
<b>field_loop</b><br>
|
||||
A loop containing all of the field information.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>field.form</b><br>
|
||||
The form element for this field.
|
||||
<p>
|
||||
|
||||
<b>field.name</b><br>
|
||||
The name of this field.
|
||||
<p>
|
||||
|
||||
<b>field.value</b><br>
|
||||
The value of this field. If this is new data, then the default value will be used.
|
||||
<p>
|
||||
|
||||
<b>field.label</b><br>
|
||||
The text label for this field.
|
||||
<p>
|
||||
|
||||
<b>field.isHidden</b><br>
|
||||
A conditional indicating whether this field is supposed to be hidden.
|
||||
<p>
|
||||
|
||||
<b>field.isDisplayed</b><br>
|
||||
A conditional indicating whether this field is supposed to be displayed.
|
||||
<p>
|
||||
|
||||
<b>field.isEditable</b><br>
|
||||
A conditional indicating whether this field is editable.
|
||||
<p>
|
||||
|
||||
<b>field.isRequired</b><br>
|
||||
A conditional indicating whether this field is required.
|
||||
<p>
|
||||
|
||||
<b>field.isMailField</b><br>
|
||||
A conditional indicating whether this field is present only to facilitate sending an email.
|
||||
<p>
|
||||
|
||||
|
||||
<b>field.subtext</b><br>
|
||||
A description of the field so that users know what to put in the field.
|
||||
<p>
|
||||
|
||||
<b>field.controls</b><br>
|
||||
WebGUI's administrative controls for this field.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>form.send</b><br>
|
||||
A form button with the word "send" printed on it.
|
||||
<p>
|
||||
|
||||
<b>form.save/b><br>
|
||||
A form button with the word "save" printed on it.
|
||||
<p>
|
||||
|
||||
<b>form.end</b><br>
|
||||
The end of the form.
|
||||
<p>
|
||||
|
||||
*Only available if the user has already submitted the form.|,
|
||||
|
||||
72 => q|You may add as many additional fields to your Data Form as you like.
|
||||
<br><br>
|
||||
|
||||
<b>Label</b><br>
|
||||
This is an informative text label to let the user know what this field represents.
|
||||
<p>
|
||||
|
||||
<b>Field Name</b><br>
|
||||
The name of this field. It must be unique among all of the other fields on your form.
|
||||
<p>
|
||||
|
||||
<b>Subtext</b><br>
|
||||
An extension of the label, this is a description of what should go in the field or optional instructions for the field.
|
||||
<p>
|
||||
|
||||
<b>Status</b><br>
|
||||
Hidden fields will not be visible to the user, but will be sent in the email.Displayed fields can be seen by the user but not modified. Modifiable fields can be filled in by the user. Required fields must be filled in by the user.
|
||||
If you choose Hidden or Displayed, be sure to fill in a Default Value.
|
||||
<p>
|
||||
|
||||
<b>Type</b><br>
|
||||
Choose the type of form element for this field.
|
||||
<p>
|
||||
|
||||
<b>Width</b><br>
|
||||
Set the number of characters wide this field will be.
|
||||
<p>
|
||||
|
||||
<b>Height</b><br>
|
||||
Set the number of characters tall this field will be. Only used on textarea and HTMLArea.
|
||||
<p>
|
||||
|
||||
<b>Possible Values</b><br>
|
||||
This field is used for the list types (like Checkbox List and Select List). Enter the values you wish to appear, one per line.
|
||||
<p>
|
||||
|
||||
<b>Default Value (optional)</b><br>
|
||||
Enter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
80 => q|Email Template|,
|
||||
|
||||
73 => q|Send|,
|
||||
|
||||
27 => q|Height|,
|
||||
|
||||
28 => q|Optional for text area and HTML area.|,
|
||||
|
||||
100 => q|Are you certain that you want to delete this tab ?|,
|
||||
|
||||
101 => q|Label|,
|
||||
|
||||
84 => q|Export tab delimited.|,
|
||||
|
||||
82 => q|Data Form Template|,
|
||||
|
||||
81 => q|Acknowlegement Template|,
|
||||
|
||||
77 => q|Label|,
|
||||
|
||||
76 => q|Add a field.|,
|
||||
|
||||
75 => q|Required|,
|
||||
|
||||
74 => q|Mail data?|,
|
||||
|
||||
85 => q|One per line.|,
|
||||
|
||||
88 => q|Data Form List Template|,
|
||||
|
||||
89 => q|The following variables are available to the Data Form List template:
|
||||
<p>
|
||||
|
||||
<b>back.url</b><br>
|
||||
The URL to go back to the Data Form data entry page.
|
||||
<p>
|
||||
|
||||
<b>back.label</b><br>
|
||||
The default label for the back.url.
|
||||
<p>
|
||||
|
||||
<b>field_loop</b><br>
|
||||
A loop containing information about the fields in this Data Form.
|
||||
<p
|
||||
<blockquote>
|
||||
|
||||
<b>field.name</b><br>
|
||||
The web safe name of this field.
|
||||
<p>
|
||||
|
||||
<b>field.label</b><br>
|
||||
The human readable label for this field.
|
||||
<p>
|
||||
|
||||
<b>field.id</b><br>
|
||||
A unique identifier representing this field in the database.
|
||||
<p>
|
||||
|
||||
<b>field.isMailField</b><br>
|
||||
A conditional indicating whether this field exists for the mail subsystem of the data form.
|
||||
<p>
|
||||
|
||||
<b>field.type</b><br>
|
||||
The data type associated with this field.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>record_loop</b><br>
|
||||
A loop containing the record entries of this data form.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>record.entryId</b><br>
|
||||
A unique identifier for this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.ipAddress</b><br>
|
||||
The IP Address of the user that submitted this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.edit.url</b><br>
|
||||
The URL to edit this record.
|
||||
<p>
|
||||
|
||||
<b>record.username</b><br>
|
||||
The username of the person that submitted this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.userId</b><br>
|
||||
The user id of the person that submitted this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.submissionDate.epoch</b><br>
|
||||
The epoch datestamp for this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.submissionDate.human</b><br>
|
||||
A human readable date stamp, based upon the user's preferences, for this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.data_loop</b><br>
|
||||
A loop containing the data submitted by the user for each field in this data form.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>record.data.value</b><br>
|
||||
The value submitted by the user for this field in this record entry.
|
||||
<p>
|
||||
|
||||
<b>record.data.name</b><br>
|
||||
The web safe name of this field.
|
||||
<p>
|
||||
|
||||
<b>record.data.label</b><br>
|
||||
The human readable label for this field.
|
||||
<p>
|
||||
|
||||
<b>record.data.isMailField</b><br>
|
||||
A conditional indicating whether this field exists for the mail subsystem of the data form.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
</blockquote>|,
|
||||
|
||||
87 => q|List Template|,
|
||||
|
||||
86 => q|List all entries.|,
|
||||
|
||||
29 => q|is required|,
|
||||
|
||||
102 => q|Subtext|,
|
||||
|
||||
106 => q|Tab Template|,
|
||||
|
||||
105 => q|Add a Tab|,
|
||||
|
||||
104 => q|Tab|,
|
||||
|
||||
103 => q|Add new Tab|,
|
||||
|
||||
90 => q|Delete this entry.|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
459
lib/WebGUI/i18n/English/EventsCalendar.pm
Normal file
459
lib/WebGUI/i18n/English/EventsCalendar.pm
Normal file
|
|
@ -0,0 +1,459 @@
|
|||
package WebGUI::i18n::English::EventsCalendar;
|
||||
|
||||
our $I18N = {
|
||||
89 => q|Show 3 months from start.|,
|
||||
|
||||
2 => q|Events Calendar|,
|
||||
|
||||
4 => q|Happens only once.|,
|
||||
|
||||
20 => q|Add an event.|,
|
||||
|
||||
93 => q|Next Event|,
|
||||
|
||||
8 => q|Recurs every|,
|
||||
|
||||
9 => q|until|,
|
||||
|
||||
78 => q|Don't delete anything, I made a mistake.|,
|
||||
|
||||
12 => q|Edit Events Calendar|,
|
||||
|
||||
13 => q|Edit Event|,
|
||||
|
||||
90 => q|Default Month|,
|
||||
|
||||
14 => q|Start Date|,
|
||||
|
||||
15 => q|End Date|,
|
||||
|
||||
19 => q|Paginate After|,
|
||||
|
||||
77 => q|Delete this event <b>and</b> all of its recurrences.|,
|
||||
|
||||
82 => q|Current.|,
|
||||
|
||||
88 => q|Show 6 months from start.|,
|
||||
|
||||
76 => q|Delete only this event.|,
|
||||
|
||||
80 => q|Event Template|,
|
||||
|
||||
75 => q|Which do you wish to do?|,
|
||||
|
||||
85 => q|Last in the calendar.|,
|
||||
|
||||
81 => q|Start Month|,
|
||||
|
||||
61 => q|Events Calendar, Add/Edit|,
|
||||
|
||||
71 => q|Events calendars are used on many intranets to keep track of internal dates that affect a whole organization. Also, Events Calendars on consumer sites are a great way to let your customers know what events you'll be attending and what promotions you'll be having.
|
||||
<br><br>
|
||||
|
||||
<b>Main Template</b><br>
|
||||
Choose a layout for the events calendar.
|
||||
<br><br>
|
||||
|
||||
<b>Event Template</b><br>
|
||||
Choose a layout for the individual events within the calendars.
|
||||
<br><br>
|
||||
|
||||
<b>Start Month</b><br>
|
||||
Choose the start month for your calendar. If you choose "current" the calendar will always start on the current month, therefore it will change from month to month. If you choose "first in the calendar" then it will start at whatever the earliest date in the calendar is.
|
||||
<br><br>
|
||||
|
||||
<b>End Month</b><br>
|
||||
Choose the end month for your calendar. If you choose "show X months from start", then only X months worth of information will ever be displayed. If you choose "current" then the calendar will end on the month you are currently in. If you choose "last in calendar" then the calendar will end on the last date entered into the calendar.
|
||||
<br><br>
|
||||
|
||||
<b>Default Month</b><br>
|
||||
Choose which month for this calendar to start on when a visitor comes to the page containing the calendar.
|
||||
<br><br>
|
||||
|
||||
<b>Is master?</b><br>
|
||||
If set to yes then this calendar will display events from all other calendars in the system.
|
||||
<br><br>
|
||||
|
||||
<b>Paginate After</b><br>
|
||||
When using a list-style calendar, how many events should be shown per page?
|
||||
<br><br>
|
||||
<b>Proceed to add event?</b><br>
|
||||
Leave this set to yes if you want to add events to the Events Calendar directly after creating it.
|
||||
<br><br>
|
||||
|
||||
<i>Note:</i> Events that have already happened will not be displayed on the events calendar.
|
||||
<br><br>
|
||||
<hr size="1">
|
||||
<i><b>Note:</b></i> The following style is specific to the Events Calendar.
|
||||
<br><br>
|
||||
<b>.eventTitle </b><br>
|
||||
The title of an individual event.
|
||||
|
||||
|,
|
||||
|
||||
72 => q|Event, Add/Edit|,
|
||||
|
||||
73 => q|<b>Title</b><br>
|
||||
The title for this event.
|
||||
<p>
|
||||
|
||||
<b>Description</b><br>
|
||||
Describe the activities of this event or information about where the event is to be held.
|
||||
<p>
|
||||
|
||||
<b>Start Date</b><br>
|
||||
On what date will this event begin?
|
||||
<p>
|
||||
|
||||
<b>End Date</b><br>
|
||||
On what date will this event end?
|
||||
<p>
|
||||
|
||||
<b>Recurs every<b><br>
|
||||
Select a recurrence interval for this event.
|
||||
|
||||
<p>
|
||||
|
||||
<b>What next?</b><br>
|
||||
Select "add new event" if you'd like to add another event, otherwise select "go back to page".
|
||||
<p>
|
||||
|,
|
||||
|
||||
83 => q|First in the calendar.|,
|
||||
|
||||
87 => q|Show 9 months from start.|,
|
||||
|
||||
92 => q|Previous Event|,
|
||||
|
||||
86 => q|Show 12 months from start.|,
|
||||
|
||||
91 => q|Add a new event.|,
|
||||
|
||||
84 => q|End Month|,
|
||||
|
||||
96 => q|Event Template|,
|
||||
|
||||
97 => q|The following is the list of template variables available in event templates.
|
||||
<p/>
|
||||
|
||||
<b>title</b><br/>
|
||||
The title of this event.
|
||||
<p/>
|
||||
|
||||
<b>start.label</b><br/>
|
||||
The translated label for the start date.
|
||||
<p/>
|
||||
|
||||
<b>start.date</b><br/>
|
||||
The date this event starts.
|
||||
<p/>
|
||||
|
||||
<b>start.time</b><br/>
|
||||
The time this event starts.
|
||||
<p/>
|
||||
|
||||
<b>end.date</b><br/>
|
||||
The date this event ends.
|
||||
<p/>
|
||||
|
||||
<b>end.time</b><br/>
|
||||
The time this event ends.
|
||||
<p/>
|
||||
|
||||
<b>end.label</b><br/>
|
||||
The translated label for the end date.
|
||||
<p/>
|
||||
|
||||
<b>canEdit</b><br/>
|
||||
A condition indicating whether the current user can edit an event.
|
||||
<p/>
|
||||
|
||||
<b>edit.url</b><br/>
|
||||
The URL to edit this event.
|
||||
<p/>
|
||||
|
||||
<b>edit.label</b><br/>
|
||||
The translated label for the edit URL.
|
||||
<p/>
|
||||
|
||||
<b>delete.url</b><br/>
|
||||
The URL to delete this event.
|
||||
<p/>
|
||||
|
||||
<b>delete.label</b><br/>
|
||||
The translated label for the delete URL.
|
||||
<p/>
|
||||
|
||||
<b>previous.url</b><br/>
|
||||
The URL to view the event before this one.
|
||||
<p/>
|
||||
|
||||
<b>previous.label</b><br/>
|
||||
The translated label for the previous URL.
|
||||
<p/>
|
||||
|
||||
<b>next.label</b><br/>
|
||||
The translated label for the next URL.
|
||||
<p/>
|
||||
|
||||
<b>next.url</b><br/>
|
||||
The URL to view the event after this one.
|
||||
<p/>
|
||||
|
||||
<b>description</b><br/>
|
||||
The description of this event.
|
||||
<p/>
|
||||
|,
|
||||
|
||||
94 => q|Events Calendar Template|,
|
||||
|
||||
95 => q|The following template variables are available for you to customize your events calendar.
|
||||
<p/>
|
||||
<b>addevent.url</b><br/>
|
||||
The URL to add an event to the calendar.
|
||||
<p/>
|
||||
|
||||
<b>addevent.label</b><br/>
|
||||
The translated label for the add event link.
|
||||
<p/>
|
||||
|
||||
<b>month_loop</b><br>
|
||||
A loop containing all the months in the calendar.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>daysInMonth</b><br>
|
||||
The number of days in this month.
|
||||
<p>
|
||||
|
||||
<b>day_loop</b><br>
|
||||
A loop containing all the days in the month.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>dayOfWeek</b><br>
|
||||
The day number for the day in the week.
|
||||
<p>
|
||||
|
||||
<b>day</b><br>
|
||||
The day of the month.
|
||||
<p>
|
||||
|
||||
<b>isStartOfWeek</b><br>
|
||||
A boolean indicating this is the first day in the week.
|
||||
<p>
|
||||
|
||||
<b>isEndOfWeek</b><br>
|
||||
A boolean indicating this is the last day in the week.
|
||||
<p>
|
||||
|
||||
<b>isToday</b><br>
|
||||
A boolean indicating that this day is today.
|
||||
<p>
|
||||
|
||||
<b>event_loop</b><br>
|
||||
A loop containing all of the events in this day.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>description</b><br>
|
||||
The description or detail of this event.
|
||||
<p>
|
||||
|
||||
<b>name</b><br>
|
||||
The name or title of this event.
|
||||
<p>
|
||||
|
||||
<b>start.date.human</b><br>
|
||||
The human representation of the start date of this event.
|
||||
<p>
|
||||
|
||||
<b>start.time.human</b><br>
|
||||
The human representation of the start time of this event.
|
||||
<p>
|
||||
|
||||
<b>start.date.epoch</b><br>
|
||||
The epoch representation of the start date of this event.
|
||||
<p>
|
||||
|
||||
<b>start.year</b><br>
|
||||
The year this event starts.
|
||||
<p>
|
||||
|
||||
<b>start.month</b><br>
|
||||
The month this event starts.
|
||||
<p>
|
||||
|
||||
<b>start.day</b><br>
|
||||
The day this event starts.
|
||||
<p>
|
||||
|
||||
<b>end.date.human</b><br>
|
||||
The human representation of the end date of this event.
|
||||
<p>
|
||||
|
||||
<b>end.time.human</b><br>
|
||||
The human representation of the end time of this event.
|
||||
<p>
|
||||
|
||||
<b>end.date.epoch</b><br>
|
||||
The epoch representation of the end date of this event.
|
||||
<p>
|
||||
|
||||
<b>end.year</b><br>
|
||||
The year this event ends.
|
||||
<p>
|
||||
|
||||
<b>end.month</b><br>
|
||||
The month this event ends.
|
||||
<p>
|
||||
|
||||
<b>end.day</b><br>
|
||||
The day this event ends.
|
||||
<p>
|
||||
|
||||
<b>startEndYearMatch</b><br>
|
||||
A boolean indicating whether the start and end year match.
|
||||
<p>
|
||||
|
||||
<b>startEndMonthMatch</b><br>
|
||||
A boolean indicating whether the start and end month match.
|
||||
<p>
|
||||
|
||||
<b>startEndDayMatch</b><br>
|
||||
A boolean indicating whether the start and end day match.
|
||||
<p>
|
||||
|
||||
<b>isFirstDayOfEvent</b><br>
|
||||
A boolean indicating whether this day is the first day of the event.
|
||||
<p>
|
||||
|
||||
<b>dateIsSameAsPrevious</b><br>
|
||||
A boolean indicating whether the start and end date of this event are the same as the previous event's start and end date.
|
||||
<p>
|
||||
|
||||
<b>daysInEvent</b><br>
|
||||
The length of this event in days.
|
||||
<p>
|
||||
|
||||
<b>url</b><br>
|
||||
The URL to view this event in detail.
|
||||
<p>
|
||||
|
||||
|
||||
|
||||
</blockquote>
|
||||
|
||||
|
||||
<b>url</b><br>
|
||||
A URL to today's events.
|
||||
<p>
|
||||
|
||||
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>prepad_loop</b><br>
|
||||
A loop containing info to prepad the days in the month before the start day.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
<b>count</b><br>
|
||||
The day of the week for this pad.
|
||||
<p>
|
||||
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>postpad_loop</b><br>
|
||||
A loop containing the info to postpad the days in the month after the last day.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
<b>count</b><br>
|
||||
The day of the week for this pad.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>month</b><br>
|
||||
The name of this month.
|
||||
<p>
|
||||
|
||||
<b>year</b><br>
|
||||
The name of this year.
|
||||
<p>
|
||||
|
||||
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>sunday.label</b><br>
|
||||
A label representing "Sunday".
|
||||
<p>
|
||||
|
||||
<b>monday.label</b><br>
|
||||
A label representing "Monday".
|
||||
<p>
|
||||
|
||||
<b>tuesday.label</b><br>
|
||||
A label representing "Tuesday".
|
||||
<p>
|
||||
|
||||
<b>wednesday.label</b><br>
|
||||
A label representing "Wednesday".
|
||||
<p>
|
||||
|
||||
<b>thursday.label</b><br>
|
||||
A label representing "Thursday".
|
||||
<p>
|
||||
|
||||
<b>friday.label</b><br>
|
||||
A label representing "Friday".
|
||||
<p>
|
||||
|
||||
<b>saturday.label</b><br>
|
||||
A label representing "Saturday".
|
||||
<p>
|
||||
|
||||
|
||||
<b>sunday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Sunday".
|
||||
<p>
|
||||
|
||||
<b>monday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Monday".
|
||||
<p>
|
||||
|
||||
<b>tuesday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Tuesday".
|
||||
<p>
|
||||
|
||||
<b>wednesday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Wednesday".
|
||||
<p>
|
||||
|
||||
<b>thursday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Thursday".
|
||||
<p>
|
||||
|
||||
<b>friday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Friday".
|
||||
<p>
|
||||
|
||||
<b>saturday.label.short</b><br>
|
||||
A label representing the abbreviated version of "Saturday".
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
98 => q|Now!|,
|
||||
|
||||
99 => q|Is master?|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
236
lib/WebGUI/i18n/English/FileManager.pm
Normal file
236
lib/WebGUI/i18n/English/FileManager.pm
Normal file
|
|
@ -0,0 +1,236 @@
|
|||
package WebGUI::i18n::English::FileManager;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|File Manager|,
|
||||
|
||||
3 => q|Proceed to add file?|,
|
||||
|
||||
5 => q|File Title|,
|
||||
|
||||
6 => q|File|,
|
||||
|
||||
7 => q|Group to Download|,
|
||||
|
||||
8 => q|Brief Synopsis|,
|
||||
|
||||
9 => q|Edit File Manager|,
|
||||
|
||||
10 => q|Edit File|,
|
||||
|
||||
11 => q|Add a new file.|,
|
||||
|
||||
12 => q|Are you certain that you wish to delete this file?|,
|
||||
|
||||
14 => q|File|,
|
||||
|
||||
15 => q|Description|,
|
||||
|
||||
16 => q|Date Uploaded|,
|
||||
|
||||
17 => q|Alternate Version #1|,
|
||||
|
||||
18 => q|Alternate Version #2|,
|
||||
|
||||
19 => q|You have no files available.|,
|
||||
|
||||
20 => q|Paginate After|,
|
||||
|
||||
74 => q|Add a new file.|,
|
||||
|
||||
61 => q|File Manager, Add/Edit|,
|
||||
|
||||
71 => q|The File Manager is designed to help you manage file distribution on your site. It allows you to specify who may view/download files from your site.
|
||||
<p>
|
||||
|
||||
<b>Template</b><br/>
|
||||
Choose a layout for the file manager.
|
||||
<p/>
|
||||
|
||||
<b>Paginate After</b><br>
|
||||
How many files should be displayed before splitting the results into separate pages? In other words, how many files should be displayed per page?
|
||||
<p>
|
||||
|
||||
<b>Proceed to add download?</b><br>
|
||||
If you wish to start adding files to download right away, leave this checked.
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
72 => q|File, Add/Edit|,
|
||||
|
||||
73 => q|<b>File Title</b><br>
|
||||
The title that will be displayed for this file. If left blank the filename will be used.
|
||||
<p>
|
||||
|
||||
<b>File</b><br>
|
||||
Choose the file from your hard drive that you wish to upload.
|
||||
<p>
|
||||
|
||||
<b>Alternate Version #1</b><br>
|
||||
An alternate version of the file. For instance, if the file was a JPEG, perhaps the alternate version would be a TIFF or a BMP.
|
||||
<p>
|
||||
|
||||
<b>Alternate Version #2</b><br>
|
||||
An alternate version of the file. For instance, if the file was a JPEG, perhaps the alternate version would be a TIFF or a BMP.
|
||||
<p>
|
||||
|
||||
<b>Brief Synopsis</b><br>
|
||||
A short description of this file. Be sure to include keywords that users may try to search for.
|
||||
<p>
|
||||
|
||||
<b>Group To Download</b><br>
|
||||
Choose the group that may download this file.
|
||||
<p>
|
||||
|
||||
<b>What's next?</b><br>
|
||||
If you'd like to add another file after this one, then select "add a new file" otherwise select "go back to the page".
|
||||
<p>
|
||||
|,
|
||||
|
||||
75 => q|File Manager Template|,
|
||||
|
||||
76 => q|This is the list of template variables available in File Manager templates.
|
||||
<p/>
|
||||
|
||||
<b>titleColumn.url</b><br/>
|
||||
The URL to sort by the title.
|
||||
<p/>
|
||||
|
||||
<b>titleColumn.label</b><br/>
|
||||
The translated label for the title.
|
||||
<p/>
|
||||
|
||||
<b>descriptionColumn.label</b><br/>
|
||||
The translated label for the description.
|
||||
<p/>
|
||||
|
||||
<b>descriptionColumn.url</b><br/>
|
||||
The URL to sort by the description.
|
||||
<p/>
|
||||
|
||||
<b>dateColumn.label</b><br/>
|
||||
The translated label for the upload date.
|
||||
<p/>
|
||||
|
||||
<b>dateColumn.url</b><br/>
|
||||
The URL to sort by the date uploaded.
|
||||
<p/>
|
||||
|
||||
<b>search.form</b><br/>
|
||||
WebGUI's power search form.
|
||||
<p/>
|
||||
|
||||
<b>search.url</b><br/>
|
||||
The URL to toggle search mode on and off.
|
||||
<p/>
|
||||
|
||||
<b>search.label</b><br/>
|
||||
The translated label for the search link.
|
||||
<p/>
|
||||
|
||||
<b>addfile.url</b><br/>
|
||||
The URL to add a file to the file manager.
|
||||
<p/>
|
||||
|
||||
<b>addfile.label</b><br/>
|
||||
The translated label for the add file link.
|
||||
<p/>
|
||||
|
||||
<b>file_loop</b><br/>
|
||||
A loop containing the information about each file uploaded to this file manager.
|
||||
<blockquote>
|
||||
<b>file.canView</b><br/>
|
||||
A condition as to whether the current user has the privileges to view this file.
|
||||
<p/>
|
||||
<b>file.controls</b><br/>
|
||||
The WebGUI management controls for this file.
|
||||
<p/>
|
||||
<b>file.title</b><br/>
|
||||
The title for this file.
|
||||
<p/>
|
||||
<b>file.version1.name</b><br/>
|
||||
The filename for the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.url</b><br/>
|
||||
The download URL for the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.icon</b><br/>
|
||||
The URL to the icon for the file type of the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.size</b><br/>
|
||||
The storage size of the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.type</b><br/>
|
||||
The type (or file extension) of the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.thumbnail</b><br/>
|
||||
The URL to the thumbnail for the first version of this file.
|
||||
<p/>
|
||||
<b>file.version1.isImage</b><br/>
|
||||
A conditional indicating whether the first version of this file is an image or not.
|
||||
<p/>
|
||||
<b>file.version2.name</b><br/>
|
||||
The filename for the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.url</b><br/>
|
||||
The download URL for the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.icon</b><br/>
|
||||
The URL to the icon for the file type of the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.size</b><br/>
|
||||
The storage size of the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.type</b><br/>
|
||||
The type (or file extension) of the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.thumbnail</b><br/>
|
||||
The URL to the thumbnail for the second version of this file.
|
||||
<p/>
|
||||
<b>file.version2.isImage</b><br/>
|
||||
A conditional indicating whether the second version of this file is an image or not.
|
||||
<p/>
|
||||
<b>file.version3.name</b><br/>
|
||||
The filename for the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.url</b><br/>
|
||||
The download URL for the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.icon</b><br/>
|
||||
The URL to the icon for the file type of the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.size</b><br/>
|
||||
The storage size of the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.type</b><br/>
|
||||
The type (or file extension) of the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.thumbnail</b><br/>
|
||||
The URL to the thumbnail for the third version of this file.
|
||||
<p/>
|
||||
<b>file.version3.isImage</b><br/>
|
||||
A conditional indicating whether the third version of this file is an image or not.
|
||||
<p/>
|
||||
<b>file.description</b><br/>
|
||||
The description of this file.
|
||||
<p/>
|
||||
<b>file.date</b><br/>
|
||||
The date that this file was uploaded.
|
||||
<p/>
|
||||
<b>file.time</b><br/>
|
||||
The time that this file was uploaded.
|
||||
<p/>
|
||||
</blockquote>
|
||||
<p/>
|
||||
<b>noresults.message</b><br/>
|
||||
A translated message stating that this file manager has no files for this user to view.
|
||||
<p/>
|
||||
<b>noresults</b><br/>
|
||||
A conditional indicating whether there are any files for this user to view.
|
||||
<p/>
|
||||
|
||||
|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
73
lib/WebGUI/i18n/English/HttpProxy.pm
Normal file
73
lib/WebGUI/i18n/English/HttpProxy.pm
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
package WebGUI::i18n::English::HttpProxy;
|
||||
|
||||
our $I18N = {
|
||||
10 => q|HTTP Proxy, Add/Edit|,
|
||||
|
||||
11 => q|The HTTP Proxy wobject is a very powerful tool. It enables you to embed external sites and applications into your site. For example, if you have a web mail system that you wish your staff could access through the intranet, then you could use the HTTP Proxy to accomplish that.
|
||||
|
||||
<p>
|
||||
|
||||
<b>URL</b><br>
|
||||
The starting URL for the proxy.
|
||||
<p>
|
||||
|
||||
<b>Follow redirects?</b><br>
|
||||
Sometimes the URL to a page, is actually a redirection to another page. Do you wish to follow those redirections when they occur?
|
||||
<p>
|
||||
|
||||
<b>Rewrite urls?</b><br>
|
||||
Switch this to No if you want to deeplink an external page.
|
||||
<p>
|
||||
|
||||
<b>Timeout</b><br>
|
||||
The amount of time (in seconds) that WebGUI should wait for a connection before giving up on an external page.
|
||||
<p>
|
||||
|
||||
<b>Remove style?</b><br>
|
||||
Do you wish to remove the stylesheet from the proxied content in favor of the stylesheet from your site?
|
||||
<p>
|
||||
|
||||
<b>Filter Content</b><br>
|
||||
Choose the level of HTML filtering you wish to apply to the proxied content.
|
||||
<p>
|
||||
|
||||
<b>Search for</b><br>
|
||||
A search string used as starting point. Use this when you want to display only a part of the proxied content. Content before this point is not displayed
|
||||
<p>
|
||||
|
||||
<b>Stop at</b><br>
|
||||
A search string used as ending point. Content after this point is not displayed.
|
||||
<p>
|
||||
<i>Note: The <b>Search for</b> and <b>Stop at</b> strings are included in the content. You can change this by editing the template for HttpProxy.</i>
|
||||
<p>
|
||||
|
||||
<b>Allow proxying of other domains?</b><br>
|
||||
If you proxy a site like Yahoo! that links to other domains, do you wish to allow the user to follow the links to those other domains, or should the proxy stop them as they try to leave the original site you specified?
|
||||
<p>
|
||||
|,
|
||||
|
||||
3 => q|HTTP Proxy|,
|
||||
|
||||
2 => q|Edit HTTP Proxy|,
|
||||
|
||||
1 => q|URL|,
|
||||
|
||||
4 => q|Timeout|,
|
||||
|
||||
5 => q|Allow proxying of other domains?|,
|
||||
|
||||
6 => q|Remove style?|,
|
||||
|
||||
8 => q|Follow redirects?|,
|
||||
|
||||
9 => q|Cookie Jar|,
|
||||
|
||||
12 => q|Rewrite urls ?|,
|
||||
|
||||
13 => q|Search for|,
|
||||
|
||||
14 => q|Stop at|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
163
lib/WebGUI/i18n/English/IndexedSearch.pm
Normal file
163
lib/WebGUI/i18n/English/IndexedSearch.pm
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
package WebGUI::i18n::English::IndexedSearch;
|
||||
|
||||
our $I18N = {
|
||||
29 => q|Search template|,
|
||||
|
||||
28 => q|
|
||||
<P>This is the list of template variables available for
|
||||
search templates:</P>
|
||||
<P><STRONG>query<BR></STRONG>Contains the value of the <EM>query</EM> form
|
||||
variable. <BR>The <EM>allWords</EM>, <EM>atLeastOne</EM>, <EM>exactPhrase</EM>
|
||||
and <EM>without</EM> values are appended to this variable.</P>
|
||||
<P><STRONG>queryHighlighted<BR></STRONG>Same as <STRONG>query</STRONG> but
|
||||
highlighted.</P>
|
||||
<P><STRONG>allWords<BR></STRONG>Contains the value of the <EM>allWords</EM> form
|
||||
variable.</P>
|
||||
<P><STRONG>atLeastOne<BR></STRONG>Contains the value of the <EM>atLeastOne</EM>
|
||||
form variable.</P>
|
||||
<P><STRONG>exactPhrase<BR></STRONG>Contains the value of the
|
||||
<EM>exactPhrase</EM> form variable.</P>
|
||||
<P><STRONG>without<BR></STRONG>Contains the value of the <EM>without </EM>form
|
||||
variable.</P>
|
||||
<P><STRONG>duration<BR></STRONG>The duration of the search process in seconds.
|
||||
</P>
|
||||
<P><STRONG>numberOfResults<BR></STRONG>The number of results. </P>
|
||||
<P><STRONG>startNr<BR></STRONG>The number of the first search result on the
|
||||
page.</P>
|
||||
<P><STRONG>endNr<BR></STRONG>The number of the last search result on the
|
||||
page.</P>
|
||||
<P><STRONG>submit<BR></STRONG>A form button with the word "Search" printed on
|
||||
it. </P>
|
||||
<P><STRONG>wid</STRONG><BR>The wobject Id of this wobject.</P>
|
||||
<P><STRONG>resultsLoop</STRONG><BR>A loop containing the search results. Inside
|
||||
the loop the following template variables are available:</P>
|
||||
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
|
||||
<P><STRONG>username<BR></STRONG>The username of the person that created this
|
||||
search result.</P>
|
||||
<P><STRONG>ownerId<BR></STRONG>The Id of the person that created this search
|
||||
result.</P>
|
||||
<P><STRONG>userProfile<BR></STRONG>An url to the profile of the creator of this
|
||||
search result.</P>
|
||||
<P><STRONG>header<BR></STRONG>The title of the search result. (This can be the
|
||||
subject of a message, the question of a FAQ, the title of an Article, etc)</P>
|
||||
<P><STRONG>body<BR></STRONG>A preview of the content of the search result.</P>
|
||||
<P><STRONG>namespace<BR></STRONG>The namespace in which this search result
|
||||
resides.</P>
|
||||
<P><STRONG>location<BR></STRONG>The URL of this search result.</P>
|
||||
<P><STRONG>crumbtrail<BR></STRONG>A crumbtrail to this search result.</P>
|
||||
<P><STRONG>contentType<BR></STRONG>The type of this search
|
||||
result.</P></BLOCKQUOTE>
|
||||
<P dir=ltr>The loops <STRONG>contentTypes</STRONG>,
|
||||
<STRONG>contentTypesSimple</STRONG>, <STRONG>languages</STRONG>,
|
||||
<STRONG>namespaces</STRONG> and <STRONG>users </STRONG>all look the same.
|
||||
They can be used to create a select list, radio list or check list so users can
|
||||
refine their search.</P>
|
||||
<P dir=ltr>This tempate variables are available inside the loops:</P>
|
||||
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
|
||||
<P dir=ltr><STRONG>name<BR></STRONG>The (possibly internationalized) name of the
|
||||
option.<BR><BR><STRONG>value<BR></STRONG>The value of the
|
||||
option.<BR><BR><STRONG>selected<BR></STRONG>A conditional indicating whether
|
||||
this option is selected or not.</P></BLOCKQUOTE>
|
||||
<P><B>firstPage</B><BR>A link to the first page in the paginator.
|
||||
<P><B>lastPage</B><BR>A link to the last page in the paginator.
|
||||
<P><B>nextPage</B><BR>A link to the next page forward in the paginator.
|
||||
<P><B>previousPage</B><BR>A link to the next page backward in the paginator.
|
||||
<P><B>pageList</B><BR>A list of links to all the pages in the paginator.
|
||||
<P><B>multiplePages</B><BR>A conditional indicating whether there is more than
|
||||
one page in the paginator.
|
||||
<P><B>isFirstPage</B><BR>A conditional indicating whether the visitor is viewing
|
||||
the first page.
|
||||
<P><B>isLastPage</B><BR>A conditional indicating whether the visitor is viewing
|
||||
the last page.</P>|,
|
||||
|
||||
2 => q|No index created. The scheduler must run and create the index first.|,
|
||||
|
||||
3 => q|Please refer to the documentation for more info.|,
|
||||
|
||||
4 => q|This page|,
|
||||
|
||||
5 => q|Index to use|,
|
||||
|
||||
6 => q|Search through|,
|
||||
|
||||
1 => q|Table Search_docInfo can't be opened.|,
|
||||
|
||||
14 => q|Highlight color|,
|
||||
|
||||
13 => q|Highlight results ?|,
|
||||
|
||||
12 => q|Context preview length|,
|
||||
|
||||
11 => q|Paginate after|,
|
||||
|
||||
10 => q|Only results of type|,
|
||||
|
||||
9 => q|Only results in language|,
|
||||
|
||||
8 => q|Only results in namespace|,
|
||||
|
||||
7 => q|Only results created by|,
|
||||
|
||||
20 => q|Wobject details|,
|
||||
|
||||
18 => q|Any namespace|,
|
||||
|
||||
17 => q|Search|,
|
||||
|
||||
16 => q|Search|,
|
||||
|
||||
15 => q|All pages|,
|
||||
|
||||
19 => q|Wobject|,
|
||||
|
||||
22 => q|Profile|,
|
||||
|
||||
25 => q|Any user|,
|
||||
|
||||
24 => q|Any language|,
|
||||
|
||||
23 => q|Any Content Type|,
|
||||
|
||||
21 => q|Content|,
|
||||
|
||||
26 => q|Search, Add/Edit|,
|
||||
|
||||
27 => q|
|
||||
<P>The Search adds advanced search capabilities to your WebGUI site. </P>
|
||||
<P><STRONG>Index to use<BR></STRONG>The Search uses an index to retrieve it's
|
||||
results from. Indexes are created with the scheduler. You can create more then one index. Choose here which index to use.</P>
|
||||
<P><STRONG>Search through<BR></STRONG>By default all pages are searched. You can
|
||||
limit the search to certain page roots. Multiple choices are allowed.</P>
|
||||
<P><STRONG>Only results created by<BR></STRONG>You can limit the results to
|
||||
items created by certain users. By default items from any user are returned.</P>
|
||||
<P><STRONG>Only results in namespace<BR></STRONG>By default all namespaces are
|
||||
searched. You can limit the search to certain namespaces. An example of usage is
|
||||
to search only in products.</P>
|
||||
<P><STRONG>Only results in language<BR></STRONG>If you have a multi-lingual
|
||||
site, you can use this option to limit the search results to a certain
|
||||
language.</P>
|
||||
<P><STRONG>Only results of type<BR></STRONG>You can limit the search to certain
|
||||
types of content.</P>
|
||||
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
|
||||
<P align=left><EM>Discussion:</EM> Messages on the forums, discussions on
|
||||
articles or USS.<BR><EM>Help:</EM> Content in the online WebGUI help
|
||||
system<BR><EM>Page:</EM><STRONG> </STRONG>Page title and
|
||||
synopsis<BR><EM>Profile:</EM> User Profiles<BR><EM>Wobject: </EM>Wobject Title
|
||||
and Description<BR><EM>Wobject details: </EM>All other wobject data. For example
|
||||
FAQ question, Calendar item, etc.</P></BLOCKQUOTE>
|
||||
<P dir=ltr align=left><STRONG>Template<BR></STRONG>Select a template to layout
|
||||
your Search. The different templates have different functionality.</P>
|
||||
<P dir=ltr align=left><STRONG>Paginate after<BR></STRONG>The number of results
|
||||
you'd like to display on a page.</P>
|
||||
<P dir=ltr align=left><STRONG>Context preview length<BR></STRONG>The maximum
|
||||
number of characters in each of the context sections. Default is 130 characters.
|
||||
A negative length gives the complete body, while a preview length of null gives
|
||||
no preview.</P>
|
||||
<P dir=ltr align=left><STRONG>Highlight results ?<BR></STRONG>If you want to
|
||||
highlight the search results in the preview you'll want to check this box.</P>
|
||||
<P dir=ltr align=left><STRONG>Highlight color n<BR></STRONG>The colors that are
|
||||
used to highlight the corresponding words in the query. </P>|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
179
lib/WebGUI/i18n/English/MessageBoard.pm
Normal file
179
lib/WebGUI/i18n/English/MessageBoard.pm
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
package WebGUI::i18n::English::MessageBoard;
|
||||
|
||||
our $I18N = {
|
||||
2 => q|Message Board|,
|
||||
|
||||
6 => q|Edit Message Board|,
|
||||
|
||||
77 => q|Edit Forum|,
|
||||
|
||||
76 => q|Are you certain you wish to delete this forum and all the posts it contains?|,
|
||||
|
||||
61 => q|Message Board, Add/Edit|,
|
||||
|
||||
71 => q|Message boards, also called Forums and/or Discussions, are a great way to add community to any site or intranet. Many companies use message boards internally to collaborate on projects.
|
||||
<br><br>
|
||||
|,
|
||||
|
||||
78 => q|Forum, Add/Edit|,
|
||||
|
||||
79 => q|A message board can contain one or more forums. The following is the list of properties attached to each forum.
|
||||
|
||||
<p>
|
||||
|
||||
<b>Title</b><br>
|
||||
The title of the forum.
|
||||
<p>
|
||||
|
||||
<b>Description</b><br>
|
||||
The description of the forum.
|
||||
<p>
|
||||
|
||||
<b>NOTE:</b> All of the properties of the forum system are also here. See that help page for details.|,
|
||||
|
||||
75 => q|Add a forum|,
|
||||
|
||||
73 => q|Message Board Template|,
|
||||
|
||||
74 => q|The following is the list of template variables available in message board templates.
|
||||
<p/>
|
||||
|
||||
<b>forum.add.url</b><br>
|
||||
A url that will add a forum to this message board.
|
||||
<p>
|
||||
|
||||
<b>forum.add.label</b><br>
|
||||
The default label for forum.add.url.
|
||||
<p>
|
||||
|
||||
<b>title.label</b><br>
|
||||
The default label for the title columnn.
|
||||
<p>
|
||||
|
||||
<b>views.label</b><br>
|
||||
The default label for the views column.
|
||||
<p>
|
||||
|
||||
<b>rating.label</b><br>
|
||||
The default label for the ratings column.
|
||||
<p>
|
||||
|
||||
<b>threads.label</b><br>
|
||||
The default label for the threads column.
|
||||
<p>
|
||||
|
||||
<b>replies.label</b><br>
|
||||
The default label for the replies column.
|
||||
<p>
|
||||
|
||||
<b>lastpost.label</b><br>
|
||||
The default label for the last post column.
|
||||
<p>
|
||||
|
||||
|
||||
<b>forum_loop</b><br>
|
||||
A loop containing the data for each of the forums contained in this message board.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>forum.controls</b><br>
|
||||
The editing controls for this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.count</b><br>
|
||||
An integer displaying the forum count as it goes through the loop.
|
||||
<p>
|
||||
|
||||
<b>forum.title</b><br>
|
||||
The title of this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.description</b><br>
|
||||
The description of this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.replies</b><br>
|
||||
The number of replies all the threads in this forum have received.
|
||||
<p>
|
||||
|
||||
<b>forum.rating</b><br>
|
||||
The average rating of all the posts in the forum.
|
||||
<p>
|
||||
|
||||
<b>forum.views</b><br>
|
||||
The total number of views of all the posts in the forum.
|
||||
<p>
|
||||
|
||||
<b>forum.threads</b><br>
|
||||
The total number of threads in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.url</b><br>
|
||||
The url to view this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.url</b><br>
|
||||
The url to view the last post in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.date</b><br>
|
||||
The human readable date of the last post in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.time</b><br>
|
||||
The human readable time of the last post in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.epoch</b><br>
|
||||
The epoch date of the last post in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.subject</b><br>
|
||||
The subject of the last post in this forum.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.user.id</b><br>
|
||||
The userid of the last poster.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.user.name</b><br>
|
||||
The username of the last poster.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.user.profile</b><br>
|
||||
The url to the last poster's profile.
|
||||
<p>
|
||||
|
||||
<b>forum.lastpost.user.isVisitor</b><br>
|
||||
A condition indicating where the last poster was a visitor.
|
||||
<p>
|
||||
|
||||
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<b>default.listing</b><br>
|
||||
A full forum rendered using the forum template.
|
||||
<p>
|
||||
|
||||
<b>default.description</b><br>
|
||||
The description of the default forum.
|
||||
<p>
|
||||
|
||||
<b>default.title</b><br>
|
||||
The title of the default forum.
|
||||
<p>
|
||||
|
||||
<b>default.controls</b><br>
|
||||
The controls for the default forum.
|
||||
<p>
|
||||
|
||||
<b>areMultipleForums</b><br>
|
||||
A condition indicating whether there is more than one forum.
|
||||
<p>
|
||||
|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
76
lib/WebGUI/i18n/English/Navigation.pm
Normal file
76
lib/WebGUI/i18n/English/Navigation.pm
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package WebGUI::i18n::English::Navigation;
|
||||
|
||||
our $I18N = {
|
||||
26 => q|Stop traversing when reaching level|,
|
||||
|
||||
9 => q|sisters|,
|
||||
|
||||
21 => q|List all Navigation.|,
|
||||
|
||||
1 => q|nameless root|,
|
||||
|
||||
7 => q|my daughter's level (./page)|,
|
||||
|
||||
12 => q|self and descendants|,
|
||||
|
||||
18 => q|Edit this Navigation.|,
|
||||
|
||||
27 => q|Max depth|,
|
||||
|
||||
17 => q|pedigree|,
|
||||
|
||||
22 => q|Edit Navigation|,
|
||||
|
||||
25 => q|Base page|,
|
||||
|
||||
4 => q|my grandmother's level (../../page)|,
|
||||
|
||||
11 => q|descendants|,
|
||||
|
||||
16 => q|self and ancestors|,
|
||||
|
||||
6 => q|my level (.)|,
|
||||
|
||||
3 => q|top level (/home/page)|,
|
||||
|
||||
28 => q|Return a loop with|,
|
||||
|
||||
8 => q|daughters|,
|
||||
|
||||
32 => q|Show unprivileged pages|,
|
||||
|
||||
34 => q|Manage Navigation|,
|
||||
|
||||
13 => q|childless descendants|,
|
||||
|
||||
24 => q|Identifier|,
|
||||
|
||||
33 => q|Error: This identifier is already in use. Please use an unique value.|,
|
||||
|
||||
20 => q|Delete this Navigation.|,
|
||||
|
||||
31 => q|Show hidden pages|,
|
||||
|
||||
29 => q|Revert output|,
|
||||
|
||||
30 => q|Show system pages|,
|
||||
|
||||
23 => q|Navigation properties|,
|
||||
|
||||
35 => q|<font color="red">Please specify an identifier. ie: ^Navigation(myMenu);</font>|,
|
||||
|
||||
19 => q|Copy this Navigation.|,
|
||||
|
||||
5 => q|my mother's level (../page)|,
|
||||
|
||||
15 => q|ancestors|,
|
||||
|
||||
2 => q|root level (/home)|,
|
||||
|
||||
14 => q|generation|,
|
||||
|
||||
10 => q|self and sisters|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
137
lib/WebGUI/i18n/English/Poll.pm
Normal file
137
lib/WebGUI/i18n/English/Poll.pm
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
package WebGUI::i18n::English::Poll;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|Poll|,
|
||||
|
||||
3 => q|Active|,
|
||||
|
||||
4 => q|Who can vote?|,
|
||||
|
||||
5 => q|Graph Width|,
|
||||
|
||||
6 => q|Question|,
|
||||
|
||||
7 => q|Answers|,
|
||||
|
||||
8 => q|(Enter one answer per line. No more than 20.)|,
|
||||
|
||||
9 => q|Edit Poll|,
|
||||
|
||||
10 => q|Reset votes.|,
|
||||
|
||||
11 => q|Vote!|,
|
||||
|
||||
20 => q|Karma Per Vote|,
|
||||
|
||||
61 => q|Poll, Add/Edit|,
|
||||
|
||||
71 => q|Polls can be used to get the impressions of your users on various topics.
|
||||
<br><br>
|
||||
<b>Active</b><br>
|
||||
If this box is checked, then users will be able to vote. Otherwise they'll only be able to see the results of the poll.
|
||||
<br><br>
|
||||
|
||||
<b>Who can vote?</b><br>
|
||||
Choose a group that can vote on this Poll.
|
||||
<br><br>
|
||||
|
||||
<b>Karma Per Vote</b><br>
|
||||
How much karma should be given to a user when they vote?
|
||||
<p>
|
||||
|
||||
<b>Graph Width</b><br>
|
||||
The width of the poll results graph. The width is measured in pixels.
|
||||
<br><br>
|
||||
|
||||
<b>Question</b><br>
|
||||
What is the question you'd like to ask your users?
|
||||
<br><br>
|
||||
|
||||
<b>Answers</b><br>
|
||||
Enter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.
|
||||
<br><br>
|
||||
|
||||
<b>Randomize answers?</b><br>
|
||||
In order to be sure that the ordering of the answers in the poll does not bias your users, it is often helpful to present the options in a random order each time they are shown. Select "yes" to randomize the answers on the poll.
|
||||
<p>
|
||||
|
||||
<b>Reset votes.</b><br>
|
||||
Reset the votes on this Poll.
|
||||
<br><br>
|
||||
|,
|
||||
|
||||
73 => q|Poll Template|,
|
||||
|
||||
74 => q|The following variables are available to the poll template:
|
||||
|
||||
<b>canVote</b><br>
|
||||
A condition indicating whether the user has the right to vote on this poll.
|
||||
<p>
|
||||
|
||||
<b>question</b><br>
|
||||
The poll question.
|
||||
<p>
|
||||
|
||||
<b>form.start</b><br>
|
||||
The beginning of the vote form.
|
||||
<p>
|
||||
|
||||
<b>answer_loop</b><br>
|
||||
A loop containing information about the answers in the poll.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>answer.form</b><br>
|
||||
The radio button for this answer.
|
||||
<p>
|
||||
|
||||
<b>answer.text</b><br>
|
||||
The text of the answer.
|
||||
<p>
|
||||
|
||||
<b>answer.number</b><br>
|
||||
The number of this answer. As in 1, 2, 3, etc.
|
||||
<p>
|
||||
|
||||
<b>answer.graphWidth</b><br>
|
||||
The width that the graph should be rendered for this answer. Based upon a percentage of the total graph size.
|
||||
<p>
|
||||
|
||||
|
||||
<b>answer.percent</b><br>
|
||||
The percentage of the vote that this answer has received.
|
||||
<p>
|
||||
|
||||
<b>answer.total</b><br>
|
||||
The total number of votes that this answer has received.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
|
||||
<b>form.submit</b><br>
|
||||
The submit button for the poll form.
|
||||
<p>
|
||||
|
||||
<b>form.end</b><br>
|
||||
The end of the poll form.
|
||||
<p>
|
||||
|
||||
<b>responses.label</b><br>
|
||||
The label for the total responses. "Total Votes"
|
||||
<p>
|
||||
|
||||
<b>responses.total</b><br>
|
||||
The total number of votes that have been placed on this poll.
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
72 => q|Randomize answers?|,
|
||||
|
||||
12 => q|Total Votes|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
407
lib/WebGUI/i18n/English/Product.pm
Normal file
407
lib/WebGUI/i18n/English/Product.pm
Normal file
|
|
@ -0,0 +1,407 @@
|
|||
package WebGUI::i18n::English::Product;
|
||||
|
||||
our $I18N = {
|
||||
58 => q|Edit Product Template|,
|
||||
|
||||
10 => q|Price|,
|
||||
|
||||
55 => q|Add a benefit.|,
|
||||
|
||||
59 => q|Name|,
|
||||
|
||||
60 => q|Template|,
|
||||
|
||||
48 => q|Are you certain you wish to delete this benefit? It cannot be recovered once it has been deleted.|,
|
||||
|
||||
6 => q|Edit Product|,
|
||||
|
||||
4 => q|Are you certain you wish to delete the relationship to this related product?|,
|
||||
|
||||
54 => q|Benefits|,
|
||||
|
||||
8 => q|Product Image 2|,
|
||||
|
||||
1 => q|Product|,
|
||||
|
||||
3 => q|Are you certain you wish to delete this feature?|,
|
||||
|
||||
51 => q|Benefit|,
|
||||
|
||||
56 => q|Add a product template.|,
|
||||
|
||||
11 => q|Product Number|,
|
||||
|
||||
2 => q|Are you certain you wish to delete the relationship to this accessory?|,
|
||||
|
||||
9 => q|Product Image 3|,
|
||||
|
||||
7 => q|Product Image 1|,
|
||||
|
||||
5 => q|Are you certain you wish to delete this specification?|,
|
||||
|
||||
13 => q|Brochure|,
|
||||
|
||||
14 => q|Manual|,
|
||||
|
||||
15 => q|Warranty|,
|
||||
|
||||
16 => q|Add Accessory|,
|
||||
|
||||
17 => q|Accessory|,
|
||||
|
||||
18 => q|Add another accessory?|,
|
||||
|
||||
21 => q|Add another related product?|,
|
||||
|
||||
19 => q|Add Related Product|,
|
||||
|
||||
20 => q|Related Product|,
|
||||
|
||||
22 => q|Edit Feature|,
|
||||
|
||||
23 => q|Feature|,
|
||||
|
||||
24 => q|Add another feature?|,
|
||||
|
||||
25 => q|Edit Specification|,
|
||||
|
||||
26 => q|Label|,
|
||||
|
||||
27 => q|Specification|,
|
||||
|
||||
28 => q|Add another specification?|,
|
||||
|
||||
29 => q|Units|,
|
||||
|
||||
30 => q|Features|,
|
||||
|
||||
31 => q|Specifications|,
|
||||
|
||||
32 => q|Accessories|,
|
||||
|
||||
33 => q|Related Products|,
|
||||
|
||||
34 => q|Add a feature.|,
|
||||
|
||||
35 => q|Add a specification.|,
|
||||
|
||||
36 => q|Add an accessory.|,
|
||||
|
||||
37 => q|Add a related product.|,
|
||||
|
||||
57 => q|Are you certain you wish to delete this template and set all the products using it to the default template?|,
|
||||
|
||||
53 => q|Edit Benefit|,
|
||||
|
||||
52 => q|Add another benefit?|,
|
||||
|
||||
62 => q|Product Template|,
|
||||
|
||||
63 => q|The following is the list of template variables available in product templates.
|
||||
<p/>
|
||||
|
||||
<b>brochure.icon</b><br/>
|
||||
The URL to the icon for the brochure.
|
||||
<p/>
|
||||
|
||||
|
||||
<b>brochure.url</b><br/>
|
||||
The URL to download the brochure.
|
||||
<p/>
|
||||
|
||||
<b>brochure.label</b><br/>
|
||||
The translated label for the brochure URL.
|
||||
<p/>
|
||||
|
||||
<b>warranty.icon</b><br/>
|
||||
The URL to the icon for the warranty.
|
||||
<p/>
|
||||
|
||||
|
||||
<b>warranty.url</b><br/>
|
||||
The URL to download the warranty.
|
||||
<p/>
|
||||
|
||||
<b>warranty.label</b><br/>
|
||||
The label for the warranty URL.
|
||||
<p/>
|
||||
|
||||
<b>image1</b><br/>
|
||||
The URL to the first image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
<b>thumbnail1</b><br/>
|
||||
The URL to the thumbnail of the first image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
<b>image2</b><br/>
|
||||
The URL to the second image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
<b>thumbnail2</b><br/>
|
||||
The URL to the thumbnail of the second image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
<b>image3</b><br/>
|
||||
The URL to the third image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
<b>thumbnail3</b><br/>
|
||||
The URL to the thumbnail of the third image uploaded to this product.
|
||||
<p/>
|
||||
|
||||
|
||||
<b>addfeature.url</b><br/>
|
||||
The URL to add a feature to this product.
|
||||
<p/>
|
||||
|
||||
<b>addfeature.label</b><br/>
|
||||
The translated label for the add feature link.
|
||||
<p/>
|
||||
|
||||
<b>feature_loop</b><br/>
|
||||
This loop contains all of the features associated with this product.
|
||||
<blockquote>
|
||||
<b>feature.controls</b><br/>
|
||||
The WebGUI management controls for this feature.
|
||||
<p/>
|
||||
|
||||
<b>feature.feature</b><br/>
|
||||
The text of the feature itself.
|
||||
<p/>
|
||||
</blockquote>
|
||||
<p/>
|
||||
|
||||
<b>addbenefit.url</b><br/>
|
||||
The URL to add a benefit to this product.
|
||||
<p/>
|
||||
|
||||
<b>addbenefit.label</b><br/>
|
||||
The translated label for the add benefit link.
|
||||
<p/>
|
||||
|
||||
<b>benefit_loop</b><br/>
|
||||
This loop contains the benefits for this product.
|
||||
<blockquote>
|
||||
|
||||
<b>benefit.benefit</b><br/>
|
||||
The benefit text itself.
|
||||
<p/>
|
||||
|
||||
<b>benefit.controls</b><br/>
|
||||
The WebGUI management controls for this benefit.
|
||||
<p/>
|
||||
|
||||
</blockquote>
|
||||
<p/>
|
||||
|
||||
<b>addspecification.url</b><br/>
|
||||
The URL to add a specification to this product.
|
||||
<p/>
|
||||
|
||||
<b>addspecification.label</b><br/>
|
||||
The translated label for the add specification link.
|
||||
<p/>
|
||||
|
||||
<b>specification_loop</b><br/>
|
||||
The list of specifications associated with this product.
|
||||
<blockquote>
|
||||
|
||||
<b>specification.controls</b><br/>
|
||||
The WebGUI management controls for this specification.
|
||||
<p/>
|
||||
|
||||
<b>specification.specification</b><br/>
|
||||
The text of the specification itself.
|
||||
<p/>
|
||||
|
||||
<b>specification.units</b><br/>
|
||||
The units for this specification. ex: meters
|
||||
<p/>
|
||||
|
||||
<b>specification.label</b><br/>
|
||||
The label for this specification. ex: height
|
||||
<p/>
|
||||
|
||||
</blockquote>
|
||||
<p/>
|
||||
|
||||
<b>addaccessory.url</b><br/>
|
||||
The URL to add an accessory to this product.
|
||||
<p/>
|
||||
|
||||
<b>addaccessory.label</b><br/>
|
||||
The translated label for the add accessory link.
|
||||
<p/>
|
||||
|
||||
<b>accessory_loop</b><br/>
|
||||
This loop contains all of the accessories associated with this product.
|
||||
<blockquote>
|
||||
|
||||
<b>accessory.url</b><br/>
|
||||
The URL to the linked accessory.
|
||||
<p/>
|
||||
|
||||
<b>accessory.title</b><br/>
|
||||
The title of the linked accessory.
|
||||
<p/>
|
||||
|
||||
<b>accessory.controls</b><br/>
|
||||
The WebGUI management controls for this accessory.
|
||||
<p/>
|
||||
|
||||
</blockquote>
|
||||
<p/>
|
||||
|
||||
<b>addRelatedProduct.url</b><br/>
|
||||
The URL to add a related product to this product.
|
||||
<p/>
|
||||
|
||||
<b>addRelatedProduct.label</b><br/>
|
||||
The translated label for the add related product link.
|
||||
<p/>
|
||||
|
||||
<b>relatedproduct.url</b><br/>
|
||||
The URL to the linked product.
|
||||
<p/>
|
||||
|
||||
<b>relatedproduct.title</b><br/>
|
||||
The title of the linked product.
|
||||
<p/>
|
||||
|
||||
<b>relatedproduct.controls</b><br/>
|
||||
The WebGUI management controls for this related product.
|
||||
<p/>
|
||||
|,
|
||||
|
||||
50 => q|Benefits are typically the result of the features of your product. They are why your product is so good. If you add benefits, you may also wish to consider adding some features.
|
||||
<p>
|
||||
|
||||
<b>Benefit</b><br>
|
||||
You may enter a new benefit, or select from one you've already entered.
|
||||
<p>
|
||||
|
||||
<b>Add another benefit?</b><br>
|
||||
If you'd like to add another benefit right away, select "Yes".
|
||||
<p>
|
||||
|,
|
||||
|
||||
49 => q|Product Benefit, Add/Edit|,
|
||||
|
||||
38 => q|Product, Add/Edit|,
|
||||
|
||||
39 => q|WebGUI has a product management system built in to enable you to publish your products and services to your site quickly and easily.
|
||||
<p>
|
||||
|
||||
<b>Template</b><br/>
|
||||
Select a layout for this product.
|
||||
<p/>
|
||||
|
||||
<b>Price</b><br>
|
||||
The price of this product. You may optionally enter text like "call for pricing" if you wish, or you may leave it blank.
|
||||
<p>
|
||||
|
||||
<b>Product Number</b><br>
|
||||
The product number, SKU, ISBN, or other identifier for this product.
|
||||
<p>
|
||||
|
||||
<b>Product Image 1</b><br>
|
||||
An image of this product.
|
||||
<p>
|
||||
|
||||
<b>Product Image 2</b><br>
|
||||
An image of this product.
|
||||
<p>
|
||||
|
||||
<b>Product Image 3</b><br>
|
||||
An image of this product.
|
||||
<p>
|
||||
|
||||
<b>Brochure</b><br>
|
||||
The brochure for this product.
|
||||
<p>
|
||||
|
||||
<b>Manual</b><br>
|
||||
The product, user, or service manual for this product.
|
||||
<p>
|
||||
|
||||
<b>Warranty</b><br>
|
||||
The warranty for this product.
|
||||
<p>
|
||||
|,
|
||||
|
||||
40 => q|Product Feature, Add/Edit|,
|
||||
|
||||
41 => q|Features are selling points for a product. IE: Reasons to buy your product. Features often result in benefits, so you may want to also add some benefits to this product.
|
||||
<p>
|
||||
|
||||
<b>Feature</b><br>
|
||||
You may enter a new feature, or select one you entered for another product in the system.
|
||||
<p>
|
||||
|
||||
<b>Add another feature?</b><br>
|
||||
If you'd like to add another feature right away, select "Yes".
|
||||
<p>
|
||||
|,
|
||||
|
||||
42 => q|Product Specification, Add/Edit|,
|
||||
|
||||
43 => q|Specifications are the technical details of your product.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Label</b><br>
|
||||
The type of specification. For instance, height, weight, or color. You may select one you've entered for another product, or type in a new specification.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Specification</b><br>
|
||||
The actual specification value. For instance, if you chose height as the Label, then you'd enter a numeric value like "18".
|
||||
<p>
|
||||
|
||||
|
||||
<b>Units</b><br>
|
||||
The unit of measurement for this specification. For instance, if you chose height for your label, perhaps the units would be "meters".
|
||||
<p>
|
||||
|
||||
|
||||
<b>Add another specification?</b><br>
|
||||
If you'd like to add another specification, select "Yes".
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
44 => q|Product Accessory, Add/Edit|,
|
||||
|
||||
45 => q|Accessories are products that enhance other products.
|
||||
<p>
|
||||
|
||||
<b>Accessory</b><br>
|
||||
Choose from the list of products you've already entered.
|
||||
<p>
|
||||
|
||||
<b>Add another accessory?</b><br>
|
||||
Select "Yes" if you have another accessory to add.
|
||||
<p>
|
||||
|,
|
||||
|
||||
46 => q|Product (Related), Add/Edit|,
|
||||
|
||||
47 => q|Related products are products that are comparable or complementary to other products.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Related products</b><br>
|
||||
Choose from the list of products you've already entered.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Add another related product?</b><br>
|
||||
Select "Yes" if you have another related product to add.
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
127
lib/WebGUI/i18n/English/SQLReport.pm
Normal file
127
lib/WebGUI/i18n/English/SQLReport.pm
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
package WebGUI::i18n::English::SQLReport;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|SQL Report|,
|
||||
|
||||
4 => q|Query|,
|
||||
|
||||
8 => q|Edit SQL Report|,
|
||||
|
||||
10 => q|<b>Debug:</b> Error: The SQL specified is of an improper format.|,
|
||||
|
||||
11 => q|<b>Debug:</b> Error: There was a problem with the query.|,
|
||||
|
||||
12 => q|<b>Debug:</b> Error: Could not connect to the database.|,
|
||||
|
||||
14 => q|Paginate After|,
|
||||
|
||||
15 => q|Preprocess macros on query?|,
|
||||
|
||||
16 => q|Debug?|,
|
||||
|
||||
17 => q|<b>Debug:</b> Query:|,
|
||||
|
||||
18 => q|There were no results for this query.|,
|
||||
|
||||
61 => q|SQL Report, Add/Edit|,
|
||||
|
||||
71 => q|SQL Reports are perhaps the most powerful wobject in the WebGUI arsenal. They allow a user to query data from any database that they have access to. This is great for getting sales figures from your Accounting database or even summarizing all the message boards on your web site.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Preprocess macros on query?</b><br>
|
||||
If you're using WebGUI macros in your query you'll want to check this box.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Debug?</b><br>
|
||||
If you want to display debugging and error messages on the page, check this box.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Query</b><br>
|
||||
This is a standard SQL query. If you are unfamiliar with SQL then you'll likely not want to use this wobject. You can make your queries more dynamic by using the ^FormParam(); macro.
|
||||
<p>
|
||||
|
||||
<b>Database Link</b><br>
|
||||
The administrator can configure common databases on which you can run SQL Reports, freeing you from having to know or enter the connectivity information.
|
||||
<p>
|
||||
|
||||
<b>Paginate After</b>
|
||||
How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?
|
||||
<p>
|
||||
|
||||
|
||||
|,
|
||||
|
||||
73 => q|The following variables are made available from SQL Reports:
|
||||
<p>
|
||||
|
||||
<b>columns_loop</b><br />
|
||||
A loop containing information about each column.
|
||||
<br /><br />
|
||||
<blockquote>
|
||||
|
||||
<b>column.number</b><br />
|
||||
An integer starting with 1 and counting through the number of columns.
|
||||
<br /><br />
|
||||
|
||||
<b>column.name</b><br />
|
||||
The name of this column as returned by the query.
|
||||
<br /><br />
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>rows_loop</b><br />
|
||||
A loop containing the data returned from the query.
|
||||
<br /><br />
|
||||
<blockquote>
|
||||
|
||||
<b>row.number</b><br />
|
||||
An integer starting with 1 and counting through the total list of rows.
|
||||
<br /><br />
|
||||
|
||||
<b>row.field.<b><i>NAME</i></b>.value</b><br />
|
||||
The data for a given field in this row where NAME is the name of the field as it is returned by the query.
|
||||
<br /><br />
|
||||
|
||||
<b>row.field_loop</b><br />
|
||||
A loop containing all of the fields for this row.
|
||||
<br /><br />
|
||||
<blockquote>
|
||||
|
||||
<b>field.number</b><br />
|
||||
An integer starting with 1 and counting through the number of fields in this row. This is the same as column.number in the column_loop.
|
||||
<br /><br />
|
||||
|
||||
<b>field.name</b><br />
|
||||
The name of the field as it is returned by the query.
|
||||
<br /><br />
|
||||
|
||||
<b>field.value</b><br />
|
||||
The data in this field.
|
||||
<br /><br />
|
||||
|
||||
</blockquote>
|
||||
|
||||
</blockquote>
|
||||
|
||||
<b>rows.count</b><br />
|
||||
The total number of rows returned by the query.
|
||||
<br /><br />
|
||||
|
||||
<b>rows.count.isZero</b><br />
|
||||
A boolean indicating that the query returned zero rows.
|
||||
<br /><br />
|
||||
|
||||
<b>rows.count.isZero.label</b><br />
|
||||
The default label for rows.count.isZero.
|
||||
<br /><br />
|
||||
|
||||
|,
|
||||
|
||||
72 => q|SQL Report Template|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
94
lib/WebGUI/i18n/English/SiteMap.pm
Normal file
94
lib/WebGUI/i18n/English/SiteMap.pm
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
package WebGUI::i18n::English::SiteMap;
|
||||
|
||||
our $I18N = {
|
||||
2 => q|Site Map|,
|
||||
|
||||
3 => q|Start With|,
|
||||
|
||||
4 => q|Depth To Traverse|,
|
||||
|
||||
5 => q|Edit Site Map|,
|
||||
|
||||
6 => q|Indent|,
|
||||
|
||||
61 => q|Site Map, Add/Edit|,
|
||||
|
||||
71 => q|Site maps are used to provide additional navigation in WebGUI. You could set up a traditional site map that would display a hierarchical view of all the pages in the site. On the other hand, you could use site maps to provide extra navigation at certain levels in your site.
|
||||
<br><br>
|
||||
|
||||
<b>Template</b><br/>
|
||||
Choose a layout for this site map.
|
||||
<p/>
|
||||
|
||||
<b>Start With</b><br>
|
||||
Select the page that this site map should start from.
|
||||
<br><br>
|
||||
|
||||
<b>Depth To Traverse</b><br>
|
||||
How many levels deep of navigation should the Site Map show? If 0 (zero) is specified, it will show as many levels as there are.
|
||||
<p>
|
||||
|
||||
<b>Indent</b><br>
|
||||
How many characters should indent each level?
|
||||
<p>
|
||||
|
||||
<b>Alphabetic?</b><br>
|
||||
If this setting is true, site map entries are sorted alphabetically. If this setting is false, site map entries are sorted by the page sequence order (editable via the up and down arrows in the page toolbar).
|
||||
<p>
|
||||
|
||||
|,
|
||||
|
||||
72 => q|Site Map Template|,
|
||||
|
||||
73 => q|This is the list of template variables available for site map templates.
|
||||
<p />
|
||||
|
||||
<b>page_loop</b><br />
|
||||
This loop contains all of the pages in the site map.
|
||||
<blockquote>
|
||||
|
||||
<b>page.indent</b><br />
|
||||
The indent spacer for this page indicating the depth of the page in the tree.
|
||||
<p />
|
||||
|
||||
<b>page.url</b><br />
|
||||
The URL to the page.
|
||||
<p />
|
||||
|
||||
<b>page.id</b><br />
|
||||
The unique identifier for this page that WebGUI uses internally.
|
||||
<p />
|
||||
|
||||
<b>page.title</b><br />
|
||||
The title of this page.
|
||||
<p />
|
||||
|
||||
<b>page.menutitle</b><br />
|
||||
The title of this page that appears in navigation.
|
||||
<p />
|
||||
|
||||
<b>page.synopsis</b><br />
|
||||
The description of the contents of this page (if any).
|
||||
<p />
|
||||
|
||||
<b>page.isRoot</b><br />
|
||||
A condition indicating whether or not this page is a root.
|
||||
<p />
|
||||
|
||||
<b>page.isTop</b><br />
|
||||
A condition indicating whether or not this page is at the top of the navigation tree.
|
||||
<p />
|
||||
|
||||
|
||||
</blockquote>
|
||||
<p />|,
|
||||
|
||||
75 => q|All Roots|,
|
||||
|
||||
74 => q|This Page|,
|
||||
|
||||
7 => q|Alphabetic?|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
440
lib/WebGUI/i18n/English/Survey.pm
Normal file
440
lib/WebGUI/i18n/English/Survey.pm
Normal file
|
|
@ -0,0 +1,440 @@
|
|||
package WebGUI::i18n::English::Survey;
|
||||
|
||||
our $I18N = {
|
||||
88 => q|Survey Template|,
|
||||
|
||||
91 => q|The following template variables are available in all survey templates.
|
||||
|
||||
<b>user.canViewReports</b><br>
|
||||
A boolean indicating whether the user has the privileges to view survey reports.
|
||||
<p>
|
||||
|
||||
<b>delete.all.responses.url</b><br>
|
||||
This URL will delete all of the responses to this survey.
|
||||
<p>
|
||||
|
||||
<b>delete.all.responses.label</b><br>
|
||||
The default label for delete.all.responses.url.
|
||||
<p>
|
||||
|
||||
<b>export.answers.url</b><br>
|
||||
The URL to create a tab delimited file containing all of the answers to the questions in this survey.
|
||||
<p>
|
||||
|
||||
<b>export.answers.label</b><br>
|
||||
The default label for export.answers.url.
|
||||
<p>
|
||||
|
||||
<b>export.questions.url</b><br>
|
||||
The URL to create a tab delimited file containing all of the questions in this survey.
|
||||
<p>
|
||||
|
||||
<b>export.questions.label</b><br>
|
||||
The default label for export.questions.url.
|
||||
<p>
|
||||
|
||||
<b>export.responses.url</b><br>
|
||||
The URL to create a tab delimited file containing all of the responses to the questions in this survey.
|
||||
<p>
|
||||
|
||||
<b>export.responses.label</b><br>
|
||||
The default label for export.responses.url
|
||||
<p>
|
||||
|
||||
<b>export.composite.url</b><br>
|
||||
The URL to create a tab delimited file containing a composite view of all of the data in this survey.
|
||||
<p>
|
||||
|
||||
<b>export.composite.label</b><br>
|
||||
The default label for export.composite.url.
|
||||
<p>
|
||||
|
||||
<b>report.gradebook.url</b><br>
|
||||
The URL to view the gradebook report for this quiz.
|
||||
<p>
|
||||
|
||||
<b>report.gradebook.label</b><br>
|
||||
The default label for report.gradebook.url.
|
||||
<p>
|
||||
|
||||
<b>report.overview.url</b><br>
|
||||
The URL to view statistical overview report for this survey.
|
||||
<p>
|
||||
|
||||
<b>report.overview.label</b><br>
|
||||
The default label for report.overview.url.
|
||||
<p>
|
||||
|
||||
<b>survey.url</b><br>
|
||||
The URL to view the survey. Usually used to get back to the survey after looking at a report.
|
||||
<p>
|
||||
|
||||
<b>survey.label</b><br>
|
||||
The default label for survey.url.
|
||||
<p>
|
||||
|,
|
||||
|
||||
83 => q|Questions Per Page|,
|
||||
|
||||
84 => q|Max Responses Per User|,
|
||||
|
||||
76 => q|Start Time|,
|
||||
|
||||
80 => q|seconds|,
|
||||
|
||||
85 => q|Questions Per Response|,
|
||||
|
||||
77 => q|End Time|,
|
||||
|
||||
78 => q|Total Time|,
|
||||
|
||||
48 => q|You are not currently eligible to participate in this survey. |,
|
||||
|
||||
47 => q|You have completed this quiz.|,
|
||||
|
||||
46 => q|Thank you for taking the time to complete our survey.|,
|
||||
|
||||
74 => q|Are you certain you wish to delete all the responses?|,
|
||||
|
||||
72 => q|Are you certain you wish to delete this user's responses?|,
|
||||
|
||||
57 => q|Comments|,
|
||||
|
||||
66 => q|Responses|,
|
||||
|
||||
65 => q|Export composite summary.|,
|
||||
|
||||
64 => q|Export responses.|,
|
||||
|
||||
63 => q|Export questions.|,
|
||||
|
||||
62 => q|Export answers.|,
|
||||
|
||||
61 => q|View grade book.|,
|
||||
|
||||
90 => q|Survey Template Common Vars|,
|
||||
|
||||
79 => q|minutes|,
|
||||
|
||||
52 => q|Score|,
|
||||
|
||||
51 => q|Comments?|,
|
||||
|
||||
50 => q|Next|,
|
||||
|
||||
49 => q|You may not take this quiz at this time.|,
|
||||
|
||||
58 => q|Statistical Overview|,
|
||||
|
||||
73 => q|Delete all the responses.|,
|
||||
|
||||
71 => q|Grade Book|,
|
||||
|
||||
70 => q|Individual Responses|,
|
||||
|
||||
69 => q|Delete this user's responses.|,
|
||||
|
||||
67 => q|User|,
|
||||
|
||||
56 => q|View comments.|,
|
||||
|
||||
55 => q|View responses.|,
|
||||
|
||||
54 => q|Percentage|,
|
||||
|
||||
53 => q|Responses|,
|
||||
|
||||
59 => q|View statistical overview.|,
|
||||
|
||||
75 => q|Edit this question.|,
|
||||
|
||||
60 => q|Back to survey.|,
|
||||
|
||||
45 => q|Are you certain you wish to delete this answer and its responses?|,
|
||||
|
||||
44 => q|Are you certain you wish to delete this question, its answers and responses?|,
|
||||
|
||||
34 => q|Agree|,
|
||||
|
||||
33 => q|Strongly Agree|,
|
||||
|
||||
32 => q|False|,
|
||||
|
||||
31 => q|True|,
|
||||
|
||||
27 => q|Add an opinion (agree/disagree) answer scale.|,
|
||||
|
||||
25 => q|Add a true/false answer.|,
|
||||
|
||||
26 => q|Add a frequency (always/never) answer scale.|,
|
||||
|
||||
43 => q|Never|,
|
||||
|
||||
42 => q|Occasionally|,
|
||||
|
||||
41 => q|Frequently|,
|
||||
|
||||
40 => q|Always|,
|
||||
|
||||
39 => q|Not Applicable|,
|
||||
|
||||
38 => q|Strongly Disagree|,
|
||||
|
||||
37 => q|Disagree|,
|
||||
|
||||
36 => q|Somewhat Disagree|,
|
||||
|
||||
35 => q|Somewhat Agree|,
|
||||
|
||||
30 => q|Add a new question.|,
|
||||
|
||||
29 => q|Add a text answer.|,
|
||||
|
||||
24 => q|Add a multiple choice answer.|,
|
||||
|
||||
28 => q|Add a question.|,
|
||||
|
||||
23 => q|Add a new answer.|,
|
||||
|
||||
22 => q|Answer Type|,
|
||||
|
||||
21 => q|Go To|,
|
||||
|
||||
20 => q|Is this answer correct?|,
|
||||
|
||||
19 => q|Answer|,
|
||||
|
||||
18 => q|Edit Answer|,
|
||||
|
||||
17 => q|Edit Question|,
|
||||
|
||||
16 => q|Randomize answers?|,
|
||||
|
||||
15 => q|Allow comment?|,
|
||||
|
||||
14 => q|Question|,
|
||||
|
||||
13 => q|Who can view reports?|,
|
||||
|
||||
12 => q|Who can take the survey?|,
|
||||
|
||||
11 => q|Mode|,
|
||||
|
||||
10 => q|Quiz|,
|
||||
|
||||
9 => q|Survey|,
|
||||
|
||||
8 => q|Question Order|,
|
||||
|
||||
7 => q|Response Driven|,
|
||||
|
||||
6 => q|Random|,
|
||||
|
||||
5 => q|Sequential|,
|
||||
|
||||
3 => q|Survey, Add/Edit|,
|
||||
|
||||
4 => q|Surveys allow you to gather information from your users. In the case of WebGUI surveys, you can also use them to test your user's knowledge.
|
||||
<p/>
|
||||
|
||||
<b>Question Order</b><br/>
|
||||
The order the questions will be asked. Sequential displays the questions in the order you create them. Random displays the questions randomly. Response driven displays the questions in order based on the responses of the users.
|
||||
<p/>
|
||||
|
||||
<b>Mode</b><br/>
|
||||
By default the Survey is in survey mode. This allows it to ask questions of your users. However, if you switch to Quiz mode, you can have a self-correcting test of your user's knowledge.
|
||||
<p/>
|
||||
|
||||
<b>Anonymous responses?</b><br/>
|
||||
Select whether or not the survey will record and display information that can identify a user and their responses. If left at the default value of "No", the survey will record the user's IP address as well as their WebGUI User ID and Username if logged in. This info will then be available in the survey's reports. If set to "Yes", these three fields will contain scrambled data that can not be traced to a particular user.
|
||||
<p/>
|
||||
|
||||
<b>Who can take the survey?</b><br/>
|
||||
Which users can participate in the survey?
|
||||
<p/>
|
||||
|
||||
|
||||
<b>Who can view reports?</b><br/>
|
||||
Who can view the results of the survey?
|
||||
<p/>
|
||||
|
||||
|
||||
<b>What next?</b><br/>
|
||||
If you leave this set at its default, then you will add a question directly after adding the survey.
|
||||
<p/>
|
||||
|,
|
||||
|
||||
2 => q|Edit Survey|,
|
||||
|
||||
1 => q|Survey|,
|
||||
|
||||
87 => q|Click here to start a new response.|,
|
||||
|
||||
86 => q|Progress|,
|
||||
|
||||
89 => q|The following template variables are available for the Survey.
|
||||
<p>
|
||||
|
||||
<b>question.add.url</b><br>
|
||||
The URL to add a new question to the survey.
|
||||
<p>
|
||||
|
||||
<b>question.add.label</b><br>
|
||||
The default label for question.add.url.
|
||||
<p>
|
||||
|
||||
<b>user.canTakeSurvey</b><br>
|
||||
A boolean indicating whether the current user has the rights to take the survey.
|
||||
<p>
|
||||
|
||||
<b>form.header</b><br>
|
||||
The required form elements that go at the top of the survey questions.
|
||||
<p>
|
||||
|
||||
<b>form.footer</b><br>
|
||||
The required form elements that go after the survey questions.
|
||||
<p>
|
||||
|
||||
<b>form.submit</b><br>
|
||||
The default submit button for the survey response.
|
||||
<p>
|
||||
|
||||
<b>questions.sofar.label</b><br>
|
||||
The default label for indicating how many questions have been answered to this point in the survey.
|
||||
<p>
|
||||
|
||||
<b>start.newresponse.label</b><br>
|
||||
The default label for start.newresponse.url.
|
||||
<p>
|
||||
|
||||
<b>start.newresponse.url</b><br>
|
||||
The URL to start a new response to the survey after the user has already taken the survey once.
|
||||
<p>
|
||||
|
||||
<b>thanks.survey.label</b><br>
|
||||
A message thanking the user for completing the survey.
|
||||
<p>
|
||||
|
||||
<b>thanks.quiz.label</b><br>
|
||||
A message thanking the user for completing the quiz.
|
||||
<p>
|
||||
|
||||
<b>questions.total</b><br>
|
||||
The total number of questions in the survey.
|
||||
<p>
|
||||
|
||||
<b>questions.correct.count.label</b><br>
|
||||
The default label for questions.correct.count.
|
||||
<p>
|
||||
|
||||
<b>questions.correct.percent.label</b><br>
|
||||
The default label for questions.correct.percent.
|
||||
<p>
|
||||
|
||||
<b>mode.isSurvey</b><br>
|
||||
A boolean indicating whether we are in survey mode or quiz mode.
|
||||
<p>
|
||||
|
||||
<b>survey.noprivs.label</b><br>
|
||||
A message telling the user that they do not have the privileges necessary to take this survey.
|
||||
<p>
|
||||
|
||||
<b>quiz.noprivs.label</b><br>
|
||||
A message telling the user that they do not have the privileges necessary to take the quiz.
|
||||
<p>
|
||||
|
||||
<b>response.id</b><br>
|
||||
The unique id for the current response for this user.
|
||||
<p>
|
||||
|
||||
|
||||
<b>response.count</b><br>
|
||||
The number of responses this user has provided for this survey.
|
||||
<p>
|
||||
|
||||
|
||||
<b>user.isFirstResponse</b><br>
|
||||
A boolean indicating whether this is the first response for this user.
|
||||
<p>
|
||||
|
||||
<b>user.canRespondAgain</b><br>
|
||||
A boolean indicating whether the user is allowed to respond to this survey again.
|
||||
<p>
|
||||
|
||||
<b>questions.sofar.count</b><br>
|
||||
The number of questions that have been answered to this point in the survey.
|
||||
<p>
|
||||
|
||||
<b>questions.correct.count</b><br>
|
||||
The number of questions the user has correct in the quiz to this point.
|
||||
<p>
|
||||
|
||||
<b>questions.correct.percent</b><br>
|
||||
The percentage of questions that the user has correct in the quiz to this point.
|
||||
<p>
|
||||
|
||||
<b>response.isComplete</b><br>
|
||||
A boolean indicating whether the user has answered all of the questions for this survey response.
|
||||
<p>
|
||||
|
||||
|
||||
<b>question_loop</b><br>
|
||||
A loop which contains the questions for this survey response.
|
||||
<p>
|
||||
|
||||
|
||||
<blockquote>
|
||||
<b>question.question</b><br>
|
||||
The survey question itself.
|
||||
<p>
|
||||
|
||||
<b>question.allowComment</b><br>
|
||||
A boolean indicating whether this question allows comments or not.
|
||||
<p>
|
||||
|
||||
<b>question.id</b><br>
|
||||
The unique id for this question.
|
||||
<p>
|
||||
|
||||
<b>question.comment.field</b><br>
|
||||
The form field to enter comments for this question.
|
||||
<p>
|
||||
|
||||
<b>question.comment.label</b><br>
|
||||
The default label for question.comment.field.
|
||||
<p>
|
||||
|
||||
<b>question.answer.field</b><br>
|
||||
The form field containing the possible answers for this question.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|
||||
|
||||
<b>question.edit_loop</b><br>
|
||||
A loop containing all the questions in the survey with edit controls.
|
||||
<p>
|
||||
|
||||
<blockquote>
|
||||
<b>question.edit.controls</b><br>
|
||||
A toolbar to use to edit this question.
|
||||
<p>
|
||||
|
||||
<b>question.edit.question</b><br>
|
||||
The question to be edited.
|
||||
<p>
|
||||
|
||||
<b>question.edit.id</b><br>
|
||||
The unique id for this question.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
|,
|
||||
|
||||
81 => q|Anonymous responses?|,
|
||||
|
||||
82 => q|Terminate Survey|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
79
lib/WebGUI/i18n/English/SyndicatedContent.pm
Normal file
79
lib/WebGUI/i18n/English/SyndicatedContent.pm
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
package WebGUI::i18n::English::SyndicatedContent;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|URL to RSS File|,
|
||||
|
||||
2 => q|Syndicated Content|,
|
||||
|
||||
4 => q|Edit Syndicated Content|,
|
||||
|
||||
61 => q|Syndicated Content, Add/Edit|,
|
||||
|
||||
71 => q|Syndicated content is content that is pulled from another site using the RDF/RSS specification. This technology is often used to pull headlines from various news sites like <a href="http://www.cnn.com/">CNN</a> and <a href="http://slashdot.org/">Slashdot</a>. It can, of course, be used for other things like sports scores, stock market info, etc.
|
||||
<br><br>
|
||||
|
||||
<b>URL to RSS file</b><br>
|
||||
Provide the exact URL (starting with http://) to the syndicated content's RDF or RSS file. The syndicated content will be downloaded from this URL hourly.
|
||||
<br><br>
|
||||
You can find syndicated content at the following locations:
|
||||
</p><ul>
|
||||
<li><a href="http://www.newsisfree.com/">http://www.newsisfree.com</a>
|
||||
</li><li><a href="http://www.syndic8.com/">http://www.syndic8.com</a>
|
||||
</li><li><a href="http://www.voidstar.com/node.php?id=144">http://www.voidstar.com/node.php?id=144</a>
|
||||
</li><li><a href="http://my.userland.com/">http://my.userland.com</a>
|
||||
</li><li><a href="http://www.webreference.com/services/news/">http://www.webreference.com/services/news/</a>
|
||||
</li><li><a href="http://www.xmltree.com/">http://www.xmltree.com</a>
|
||||
</li><li><a href="http://w.moreover.com/">http://w.moreover.com/</a>
|
||||
</li></ul>
|
||||
|
||||
<p>
|
||||
|
||||
To create an aggregate RSS feed, include a list of space separated urls instead of a single url. For an aggregate feed, the system will display an equal number of headlines from each source, sorted by the date the system first received the story.<p>
|
||||
|
||||
<b>Template</b><br>
|
||||
Select a template for this content.
|
||||
<p><b>Maximum Headlines</b><br>
|
||||
Enter the maximum number of headlines that should be displayed. For an aggregate feed, the system will display an equal number of headlines from each source, even if doing so requires displaying more than the requested maximum number of headlines. Set to zero to allow any number of headlines.
|
||||
<p>|,
|
||||
|
||||
72 => q|Syndicated Content Template|,
|
||||
|
||||
73 => q|The following are the template variables available to the Syndicated Content template.
|
||||
|
||||
<p>
|
||||
|
||||
<b>channel.title</b><br>
|
||||
The title of this piece of syndicated content.
|
||||
<p>
|
||||
|
||||
<b>channel.description</b><br>
|
||||
A description of the content available through this channel.
|
||||
<p>
|
||||
|
||||
<b>channel.link</b><br>
|
||||
A URL back to the originating site of this channel.
|
||||
<p>
|
||||
|
||||
<b>item_loop</b><br>
|
||||
A loop containing the data from this channel.
|
||||
|
||||
<blockquote>
|
||||
|
||||
<b>title</b><br>
|
||||
The title of a piece of content.
|
||||
<p>
|
||||
|
||||
<b>description</b><br>
|
||||
The description of the content.
|
||||
<p>
|
||||
|
||||
<b>link</b>
|
||||
A URL directly to the original content.
|
||||
|
||||
</blockquote>|,
|
||||
|
||||
3 => q|Maximum Number of Headlines|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
705
lib/WebGUI/i18n/English/USS.pm
Normal file
705
lib/WebGUI/i18n/English/USS.pm
Normal file
|
|
@ -0,0 +1,705 @@
|
|||
package WebGUI::i18n::English::USS;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|Who can approve?|,
|
||||
|
||||
2 => q|Who can contribute?|,
|
||||
|
||||
92 => q|Open in new window?|,
|
||||
|
||||
3 => q|You have a new user submission to approve.|,
|
||||
|
||||
4 => q|Your submission has been approved.|,
|
||||
|
||||
85 => q|Question|,
|
||||
|
||||
5 => q|Your submission has been denied.|,
|
||||
|
||||
86 => q|Answer|,
|
||||
|
||||
6 => q|Submissions Per Page|,
|
||||
|
||||
91 => q|URL|,
|
||||
|
||||
83 => q|Add a new question.|,
|
||||
|
||||
84 => q|Edit Question|,
|
||||
|
||||
90 => q|Edit Link|,
|
||||
|
||||
12 => q|(Uncheck if you're writing an HTML submission.)|,
|
||||
|
||||
89 => q|Add a new link.|,
|
||||
|
||||
13 => q|Date Submitted|,
|
||||
|
||||
14 => q|Status|,
|
||||
|
||||
15 => q|Edit/Delete|,
|
||||
|
||||
16 => q|Untitled|,
|
||||
|
||||
17 => q|Are you certain you wish to delete this submission?|,
|
||||
|
||||
59 => q|Next Submission|,
|
||||
|
||||
18 => q|Edit User Submission System|,
|
||||
|
||||
19 => q|Edit Submission|,
|
||||
|
||||
20 => q|Post New Submission|,
|
||||
|
||||
21 => q|Submitted By|,
|
||||
|
||||
27 => q|Edit|,
|
||||
|
||||
28 => q|Return To Submissions List|,
|
||||
|
||||
29 => q|User Submission System|,
|
||||
|
||||
31 => q|Content|,
|
||||
|
||||
32 => q|Image|,
|
||||
|
||||
33 => q|Attachment|,
|
||||
|
||||
35 => q|Title|,
|
||||
|
||||
37 => q|Delete|,
|
||||
|
||||
58 => q|Previous Submission|,
|
||||
|
||||
39 => q|Post a Reply|,
|
||||
|
||||
41 => q|Date|,
|
||||
|
||||
46 => q|Read more...|,
|
||||
|
||||
47 => q|Post a Response|,
|
||||
|
||||
48 => q|Allow discussion?|,
|
||||
|
||||
51 => q|Display thumbnails?|,
|
||||
|
||||
52 => q|Thumbnail|,
|
||||
|
||||
53 => q|Layout|,
|
||||
|
||||
57 => q|Responses|,
|
||||
|
||||
76 => q|Submission Template|,
|
||||
|
||||
77 => q|The following are the template variables used in a submission template. Submission templates are used to display the individual submissions in a user submission system.
|
||||
<p/>
|
||||
|
||||
<b>title</b><br/>
|
||||
The title of this submission.
|
||||
<p/>
|
||||
|
||||
<b>content</b><br/>
|
||||
The full text content of this submission.
|
||||
<p/>
|
||||
|
||||
<b>user.label</b><br/>
|
||||
The translated label indicating what user posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>user.profile</b><br/>
|
||||
The URL to the profile of the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>user.username</b><br/>
|
||||
The username of the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>user.id</b><br/>
|
||||
The unique identifier for the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>date.label</b><br/>
|
||||
The translated label indicating what date this submission was posted.
|
||||
<p/>
|
||||
|
||||
<b>date.epoch</b><br/>
|
||||
The number of seconds since January 1, 1970 that this submission was posted.
|
||||
<p/>
|
||||
|
||||
<b>date.human</b><br/>
|
||||
A human readable date that displays the date and time this submission was posted.
|
||||
<p/>
|
||||
|
||||
<b>date.updated.label</b><br/>
|
||||
The translated label indicating what date this submission was last edited.
|
||||
<p/>
|
||||
|
||||
<b>date.updated.epoch</b><br/>
|
||||
The number of seconds since January 1, 1970 that this submission was last edited.
|
||||
<p/>
|
||||
|
||||
<b>date.updated.human</b><br/>
|
||||
A human readable date that displays the date and time this submission was last edited.
|
||||
<p/>
|
||||
|
||||
<b>status.label</b><br/>
|
||||
A translated label indicating the status of this submission.
|
||||
<p/>
|
||||
|
||||
<b>status.status</b><br/>
|
||||
The actual status of this submission (pending, approved, denied).
|
||||
<p/>
|
||||
|
||||
<b>views.label</b><br/>
|
||||
A translated label indicating how many times this submission has been viewed.
|
||||
<p/>
|
||||
|
||||
<b>views.count</b><br/>
|
||||
The number of times this submission has been viewed.
|
||||
<p/>
|
||||
|
||||
<b>canPost</b><br/>
|
||||
An condition indicating whether or not this user can post a new submission.
|
||||
<p/>
|
||||
|
||||
<b>post.url</b><br/>
|
||||
The URL to post a new submission.
|
||||
<p/>
|
||||
|
||||
<b>post.label</b><br/>
|
||||
A translated label for the post link.
|
||||
<p/>
|
||||
|
||||
<b>previous.more</b><br/>
|
||||
An condition indicating whether there are any posts prior to this one available for viewing.
|
||||
<p/>
|
||||
|
||||
<b>previous.url</b><br/>
|
||||
A URL to the post that came before this one.
|
||||
<p/>
|
||||
|
||||
<b>previous.label</b><br/>
|
||||
A translated label for the previous link.
|
||||
<p/>
|
||||
|
||||
<b>next.more</b><br/>
|
||||
A condition indicating whether there are any posts after this one available for viewing.
|
||||
<p/>
|
||||
|
||||
<b>next.url</b><br/>
|
||||
The URL to the post that came after this one.
|
||||
<p/>
|
||||
|
||||
<b>next.label</b><br/>
|
||||
A translated label for the next link.
|
||||
<p/>
|
||||
|
||||
<b>canEdit</b><br/>
|
||||
A condition indicating whether the current user cane edit or delete this post.
|
||||
<p/>
|
||||
|
||||
<b>edit.url</b><br/>
|
||||
The URL to edit this post.
|
||||
<p/>
|
||||
|
||||
<b>edit.label</b><br/>
|
||||
A translated label for the edit link.
|
||||
<p/>
|
||||
|
||||
<b>delete.url</b><br/>
|
||||
The URL to delete this post.
|
||||
<p/>
|
||||
|
||||
<b>delete.label</b><br/>
|
||||
A translated label for the delete link.
|
||||
<p/>
|
||||
|
||||
<b>canChangeStatus</b><br/>
|
||||
A condition indicating whether the current user has the privileges to change the status of this post.
|
||||
<p/>
|
||||
|
||||
<b>approve.url</b><br/>
|
||||
The URL to approve this post.
|
||||
<p/>
|
||||
|
||||
<b>approve.label</b><br/>
|
||||
A translated label for the approve link.
|
||||
<p/>
|
||||
|
||||
<b>deny.url</b><br/>
|
||||
The URL to deny this post.
|
||||
<p/>
|
||||
|
||||
<b>deny.label</b><br/>
|
||||
A translated label for the deny link.
|
||||
<p/>
|
||||
|
||||
<b>leave.url</b><br/>
|
||||
The URL to leave this post in it's current state.
|
||||
<p/>
|
||||
|
||||
<b>leave.label</b><br/>
|
||||
A translated label for the leave link.
|
||||
<p/>
|
||||
|
||||
<b>canReply</b><br/>
|
||||
A condition indicating whether the current user can reply to this post.
|
||||
<p/>
|
||||
|
||||
<b>reply.url</b><br/>
|
||||
The URL to reply to this post.
|
||||
<p/>
|
||||
|
||||
<b>reply.label</b><br/>
|
||||
A translated label for the reply link.
|
||||
<p/>
|
||||
|
||||
<b>search.url</b><br/>
|
||||
The URL to toggle on the WebGUI power search form.
|
||||
<p/>
|
||||
|
||||
<b>search.label</b><br/>
|
||||
A translated label for the search link.
|
||||
<p/>
|
||||
|
||||
<b>back.url</b><br/>
|
||||
The URL to return the user to the main listing.
|
||||
<p/>
|
||||
|
||||
<b>back.label</b><br/>
|
||||
A translated label for the back link.
|
||||
<p/>
|
||||
|
||||
<b>replies</b><br/>
|
||||
A complete listing of all replies to this post.
|
||||
<p/>
|
||||
|
||||
<b>userDefined1.value - userDefined5.value</b><br />
|
||||
A series of user defined values that can be used to extend the functionality of the USS.
|
||||
<p>
|
||||
|
||||
<b>image.url</b><br>
|
||||
The URL to the attached image.
|
||||
<p>
|
||||
|
||||
<b>image.thumbnail</b><br>
|
||||
The URL to the attached image's thumbnail.
|
||||
<p>
|
||||
|
||||
<b>attachment.box</b><br>
|
||||
A standard WebGUI attachment box which displays the icon for the file, and the filename, along with an attachment icon and all are linked to the file.
|
||||
<p>
|
||||
|
||||
<b>attachment.url</b><br>
|
||||
The URL to the attached file.
|
||||
<p>
|
||||
|
||||
<b>attachment.icon</b><br>
|
||||
The icon that represents the attached file's type.
|
||||
<p>
|
||||
|
||||
<b>attachment.name</b><br>
|
||||
The filename of the attached file.
|
||||
<p>
|
||||
|
||||
|
||||
|,
|
||||
|
||||
30 => q|Karma Per Submission|,
|
||||
|
||||
73 => q|Submission Template|,
|
||||
|
||||
61 => q|User Submission System, Add/Edit|,
|
||||
|
||||
71 => q|User Submission Systems (USS) are a great way to add a sense of community to any site as well as get free content from your users. The User Submission System name is misleading to some people, because they immediately think of users as visitors. However, users are also staff, or business partners, or even yourself. With the USS you can select who can add new content, and even who can moderate that content.
|
||||
<br><br>
|
||||
User Submission systems are so versatile that they allow you to create all kinds of applications, just by editing a few templates. Example applications are Photo Galleries, FAQs, Link Lists, Guest Books, Classifieds, and more.
|
||||
|
||||
|
||||
<p>
|
||||
<b>Submission Template</b><br/>
|
||||
Choose a layout for the individual submissions.
|
||||
<p/>
|
||||
|
||||
<b>Submission Form Template</b><br>
|
||||
Choose a layout of the form users see when submitting content.
|
||||
<p>
|
||||
|
||||
|
||||
<b>Submissions Per Page</b><br>
|
||||
How many submissions should be listed per page in the submissions index?
|
||||
<br><br>
|
||||
|
||||
|
||||
<b>Filter Content</b><br>
|
||||
Select the level of content filtering you wish to perform on all submitted content.
|
||||
<p>
|
||||
|
||||
<b>Sort By</b><br>
|
||||
The field to sort the submission list by.
|
||||
<p>
|
||||
|
||||
<b>Sort Order</b><br>
|
||||
The direction to sort the submission list by.
|
||||
<p>
|
||||
|
||||
|
||||
|
||||
|
||||
<b>Who can approve?</b><br>
|
||||
What group is allowed to approve and deny content?
|
||||
<br><br>
|
||||
|
||||
<b>Who can contribute?</b><br>
|
||||
What group is allowed to contribute content?
|
||||
<br><br>
|
||||
|
||||
|
||||
<b>Default Status</b><br>
|
||||
Should submissions be set to <i>Approved</i>, <i>Pending</i>, or <i>Denied</i> by default?
|
||||
<br><br>
|
||||
<i>Note:</i> If you set the default status to Pending, then be prepared to monitor your message log for new submissions.
|
||||
<p>
|
||||
|
||||
<b>Karma Per Submission</b><br>
|
||||
How much karma should be given to a user when they contribute to this user submission system?
|
||||
<p>
|
||||
|
||||
|
||||
<b>Allow discussion?</b><br>
|
||||
Checking this box will enable responses to your article much like Articles on Slashdot.org.
|
||||
<p>
|
||||
|
||||
|
||||
|,
|
||||
|
||||
82 => q|Descending|,
|
||||
|
||||
81 => q|Ascending|,
|
||||
|
||||
80 => q|Sort Order|,
|
||||
|
||||
79 => q|Sort By|,
|
||||
|
||||
78 => q|Date Updated|,
|
||||
|
||||
74 => q|User Submission System Template|,
|
||||
|
||||
75 => q|This is the listing of template variables available in user submission system templates.
|
||||
<p/>
|
||||
|
||||
<b>readmore.label</b><br/>
|
||||
A translated label that indicates that the user should click to read more.
|
||||
<p/>
|
||||
|
||||
<b>responses.label</b><br/>
|
||||
A translated label that indicates that the user should click to view the responses to this submission.
|
||||
<p/>
|
||||
|
||||
<b>canPost</b><br/>
|
||||
A condition that indicates whether a user can add a new submission.
|
||||
<p/>
|
||||
|
||||
<b>post.url</b><br/>
|
||||
The URL to add a new submission.
|
||||
<p/>
|
||||
|
||||
<b>post.label</b><br/>
|
||||
A translated label for the post link.
|
||||
<p/>
|
||||
|
||||
<b>addquestion.label</b><br>
|
||||
A translated label that prompts the user to add a question to the USS.
|
||||
<p>
|
||||
|
||||
<b>addlink.label</b><br>
|
||||
A translated label that prompts the user to add a link to the USS.
|
||||
<p>
|
||||
|
||||
<b>search.label</b><br/>
|
||||
A translated label for the search link.
|
||||
<p/>
|
||||
|
||||
<b>search.url</b><br/>
|
||||
The URL to toggle on/off WebGUI's power search form.
|
||||
<p/>
|
||||
|
||||
<b>search.form</b><br/>
|
||||
WebGUI's power search form.
|
||||
<p/>
|
||||
|
||||
<b>rss.url</b><br>
|
||||
The URL to generate an RSS feed from the content in the USS.
|
||||
<p>
|
||||
|
||||
<b>canModerate</b><br>
|
||||
A condition indicating whether the current user has the rights to moderate posts in this USS.
|
||||
<p>
|
||||
|
||||
<b>title.label</b><br/>
|
||||
A translated label for the title column.
|
||||
<p/>
|
||||
|
||||
<b>thumbnail.label</b><br/>
|
||||
A translated label for the thumbnail column.
|
||||
<p/>
|
||||
|
||||
<b>date.label</b><br/>
|
||||
A translated label for the date column.
|
||||
<p/>
|
||||
|
||||
<b>date.updated.label</b><br/>
|
||||
The translated label indicating what date this submission was last edited.
|
||||
<p/>
|
||||
|
||||
<b>by.label</b><br/>
|
||||
A translated label stating who the submission was submitted by.
|
||||
<p/>
|
||||
|
||||
<b>submission.edit.label</b><br>
|
||||
A translated text label that prompts the user to edit a particular submission.
|
||||
<p>
|
||||
|
||||
<b>submissions_loop</b><br/>
|
||||
A loop containing each submission.
|
||||
<blockquote>
|
||||
|
||||
<b>submission.id</b><br/>
|
||||
A unique identifier for this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.url</b><br/>
|
||||
The URL to view this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.content</b><br/>
|
||||
The abbreviated text content of this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.content.full</b><br/>
|
||||
The full text content of this submission.
|
||||
<p/>
|
||||
|
||||
|
||||
<b>submission.responses</b><br/>
|
||||
The number of responses to this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.title</b><br/>
|
||||
The title for this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.userDefined1 - submission.userDefined5</b><br>
|
||||
A series of user defined fields to add custom functionality to the USS.
|
||||
<p>
|
||||
|
||||
<b>submission.userId</b><br/>
|
||||
The user id of the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.username</b><br/>
|
||||
The username of the person that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.status</b><br/>
|
||||
The status of this submission (approved, pending, denied).
|
||||
<p/>
|
||||
|
||||
<b>submission.thumbnail</b><br/>
|
||||
The thumbnail of the image uploaded with this submission (if any).
|
||||
<p/>
|
||||
|
||||
<b>submission.image</b><br>
|
||||
The URL of the image attached to this submission.
|
||||
<p>
|
||||
|
||||
|
||||
<b>submission.date</b><br/>
|
||||
The that this submission was posted.
|
||||
<p/>
|
||||
|
||||
<b>submission.date.updated</b><br/>
|
||||
A human readable date that displays the date and time this submission was last edited.
|
||||
<p/>
|
||||
|
||||
<b>submission.currentUser</b><br/>
|
||||
A condition indicating whether the current user is the same as the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.userProfile</b><br/>
|
||||
The URL to the profile of the user that posted this submission.
|
||||
<p/>
|
||||
|
||||
<b>submission.edit.url</b><br>
|
||||
The URL to edit this submission.
|
||||
<p>
|
||||
|
||||
|
||||
<b>submission.secondColumn</b><br/>
|
||||
A condition indicating whether or not this submission would belong in the second column, in a multi-column layout.
|
||||
<p/>
|
||||
|
||||
<b>submission.thirdColumn</b><br/>
|
||||
A condition indicating whether or not this submission would belong in the third column, in a multi-column layout.
|
||||
<p/>
|
||||
|
||||
<b>submission.fourthColumn</b><br/>
|
||||
A condition indicating whether or not this submission would belong in the fourth column, in a multi-column layout.
|
||||
<p/>
|
||||
|
||||
<b>submission.fifthColumn</b><br/>
|
||||
A condition indicating whether or not this submission would belong in the fifth column, in a multi-column layout.
|
||||
<p/>
|
||||
|
||||
<b>submission.controls</b><br>
|
||||
The administrative toolbar for each submission.
|
||||
<p>
|
||||
|
||||
</blockquote>
|
||||
<p/>
|
||||
|
||||
|,
|
||||
|
||||
87 => q|Submission Form Template|,
|
||||
|
||||
88 => q|Sequence|,
|
||||
|
||||
93 => q|Submission Form Template|,
|
||||
|
||||
94 => q|The following template variables are available to you when building your submission form templates.
|
||||
<p>
|
||||
|
||||
<b>submission.isNew</b><br>
|
||||
A condition indicating whether this is a new submission being contributed.
|
||||
<p>
|
||||
|
||||
<b>link.header.label</b><br>
|
||||
A header telling the user they are editing a link.
|
||||
<p>
|
||||
|
||||
<b>question.header.label</b><br>
|
||||
A header telling the user they are editing a question.
|
||||
<p>
|
||||
|
||||
<b>submission.header.label</b><br>
|
||||
A header telling the user they are editing a submission.
|
||||
<p>
|
||||
|
||||
<b>user.isVisitor</b><br>
|
||||
A condition indicating whether the current user is a visitor.
|
||||
<p>
|
||||
|
||||
<b>visitorName.label</b><br>
|
||||
A label for the visitorName.form variable.
|
||||
<p>
|
||||
|
||||
<b>visitorName.form</b><br>
|
||||
A text box that allows a visitor (non-logged in user) to enter their own name instead of submitting completely anonymously.
|
||||
<p>
|
||||
|
||||
<b>form.header</b><br>
|
||||
All the information necessary to route the form contents back to WebGUI.
|
||||
<p>
|
||||
|
||||
<b>url.label</b><br>
|
||||
A generic label for a URL field.
|
||||
<p>
|
||||
|
||||
<b>newWindow.label</b><br>
|
||||
A generic label for a field asking the user whether they would like links to pop up new windows.
|
||||
<p>
|
||||
|
||||
<b>userDefined1.form - userDefined5.form</b><br>
|
||||
A series of generic text fields that can be used to extend the functionality of the USS.
|
||||
<p>
|
||||
|
||||
<b>userDefined1.form.yesNo - userDefined5.form.yesNo</b><br>
|
||||
Yes / No versions of the user defined fields.
|
||||
<p>
|
||||
|
||||
<b>userDefined1.form.textarea - userDefined5.form.textarea</b><br>
|
||||
Textarea versions of the user defined fields.
|
||||
<p>
|
||||
|
||||
<b>userDefined1.value - userDefined5.value</b><br>
|
||||
The raw values of the user defined fields.
|
||||
<p>
|
||||
|
||||
<b>question.label</b><br>
|
||||
A label prompting the user to enter a question.
|
||||
<p>
|
||||
|
||||
<b>title.label</b><br>
|
||||
A label prompting the user to enter a title.
|
||||
<p>
|
||||
|
||||
<b>title.form</b><br>
|
||||
A text field for titles or headers for each submission.
|
||||
<p>
|
||||
|
||||
<b>title.form.textarea</b><br>
|
||||
A textarea version of the title.form field.
|
||||
<p>
|
||||
|
||||
<b>title.value</b><br>
|
||||
The raw value of the title field.
|
||||
<p>
|
||||
|
||||
<b>body.label</b><br>
|
||||
A label for the body.form variable.
|
||||
<p>
|
||||
|
||||
<b>answer.label</b><br>
|
||||
Another label for the body.form variable.
|
||||
<p>
|
||||
|
||||
<b>description.label</b><br>
|
||||
Another label for the body.form variable.
|
||||
<p>
|
||||
|
||||
<b>body.form</b><br>
|
||||
An HTML Area field allowing the user to enter descriptive content of this submission.
|
||||
<p>
|
||||
|
||||
<b>body.value</b><br>
|
||||
The raw content of the body.form field.
|
||||
<p>
|
||||
|
||||
<b>body.form.textarea</b><br>
|
||||
A textarea version of body.form.
|
||||
<p>
|
||||
|
||||
<b>image.label</b><br>
|
||||
A label for the image.form variable.
|
||||
<p>
|
||||
|
||||
<b>image.form</b><br>
|
||||
A field allowing the user to pick an image from his/her hard drive.
|
||||
<p>
|
||||
|
||||
<b>attachment.label</b><br>
|
||||
A label for the attachment.form variable.
|
||||
<p>
|
||||
|
||||
<b>attachment.form</b><br>
|
||||
A field allowing the user to pick a file from his/her hard drive to attach to this submission.
|
||||
<p>
|
||||
|
||||
<b>contentType.label</b><br>
|
||||
A label for the contentType.form variable.
|
||||
<p>
|
||||
|
||||
<b>contentType.form</b><br>
|
||||
A field allowing the user to select the type of content contained in the form.body field.
|
||||
<p>
|
||||
|
||||
<b>form.submit</b><br>
|
||||
A submit button.
|
||||
<p>
|
||||
|
||||
<b>form.footer</b><br>
|
||||
The bottom of the form.
|
||||
<p>
|
||||
|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
130
lib/WebGUI/i18n/English/WSClient.pm
Normal file
130
lib/WebGUI/i18n/English/WSClient.pm
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
package WebGUI::i18n::English::WSClient;
|
||||
|
||||
our $I18N = {
|
||||
4 => q|SOAP Method/Call|,
|
||||
|
||||
11 => q|Execute by default?|,
|
||||
|
||||
8 => q|Preprocess macros on query?|,
|
||||
|
||||
5 => q|SOAP Call Parameters|,
|
||||
|
||||
35 => q|<b>Debug:</b> No template specified, using default.|,
|
||||
|
||||
1 => q|Web Services Client|,
|
||||
|
||||
61 => q|Web Services Client, Add/Edit|,
|
||||
|
||||
3 => q|SOAP Proxy|,
|
||||
|
||||
32 => q|<b>Debug:</b> Error: Could not connect to the SOAP server.|,
|
||||
|
||||
2 => q|SOAP URI or WSDL|,
|
||||
|
||||
9 => q|Debug?|,
|
||||
|
||||
24 => q|SOAP return is type: |,
|
||||
|
||||
31 => q|<b>Debug:</b> Error: There was a problem with the SOAP call.|,
|
||||
|
||||
25 => q|There was a problem with the SOAP call: |,
|
||||
|
||||
27 => q|Cache expires|,
|
||||
|
||||
23 => q|The URI/WSDL specified is of an improper format.|,
|
||||
|
||||
12 => q|Msg if no results|,
|
||||
|
||||
21 => q|There were no results for this query.|,
|
||||
|
||||
22 => q|Parse error on SOAP parameters.|,
|
||||
|
||||
20 => q|Edit Web Services Client|,
|
||||
|
||||
16 => q|HTTP Header Override|,
|
||||
|
||||
72 => q|Web Services Client Template|,
|
||||
|
||||
73 => q|This is the list of
|
||||
template variables available for Web Services Client
|
||||
templates.<p></p><b>results</b><br />This loop contains all the results from
|
||||
the SOAP call. Within the loop, you may access specific data elements by the
|
||||
names set for them by the SOAP server (i.e. perhaps "localTime" for a time query). In addition, there are a number of special template variables:
|
||||
|
||||
<blockquote><b>numResults</b><br />Number of rows found by the client, if an array was returned.<p></p>
|
||||
|
||||
<b>firstPage</b><br />Link to first page in a paginated set.<p></p>
|
||||
|
||||
<b>lastPage</b><br />Link to last page in a paginated set.<p></p>
|
||||
|
||||
<b>nextPage</b><br />Link to next page in a paginated set.<p></p>
|
||||
|
||||
<b>pageList</b><br />List of all pages in a paginated set.<p></p>
|
||||
|
||||
<b>previousPage</b><br />Link to previous page in a paginated set.<p></p>
|
||||
|
||||
<b>multiplePages</b><br />Boolean indicating multiple pages in a paginated set.<p></p>
|
||||
|
||||
<b>numberOfPages</b><br />Number of pages in a paginated set.<p></p>
|
||||
|
||||
<b>pageNumber</b><br />Current page number in a paginated set.</blockquote>|,
|
||||
|
||||
15 => q|Decode utf8 data?|,
|
||||
|
||||
14 => q|Pagination variable|,
|
||||
|
||||
30 => q|<b>Debug:</b> Error: The URI/WSDL specified is of an improper format.|,
|
||||
|
||||
13 => q|Pagination after|,
|
||||
|
||||
26 => q|Could not connect to SOAP server.|,
|
||||
|
||||
71 => q|Web Services Client allows a user to query data from any SOAP server to which they have access. This wobject is in development status and should not be made accessible to un-trusted site administratores.<p></p>
|
||||
|
||||
<b>SOAP URI/WSDL</b><br>
|
||||
From the SOAP::Lite manpage, \"URIs are just identifiers. They may look like URLs, but they are not guaranteed to point to anywhere and shouldn\'t be used as such pointers. URIs assume to be unique within the space of all XML documents, so consider them as unique identifiers and nothing else.\" If you specify a URI, you probably also need a proxy below. Alternatively, you can specify a WSDL file in place of a URI. This file refers to a real location at which a SOAP service description can be downloaded and used. For our purposes, the file must end in \".wsdl\" to be properly recognized. If you use a WSDL file, you probably don\'t need to specify a proxy.<p></p>
|
||||
|
||||
<b>SOAP Proxy</b><br>
|
||||
The SOAP proxy is the full name of the server and/or script that is listening for SOAP calls. For example:
|
||||
<code>http://mydomain.com/cgi-bin/soaplistener.pl</code>
|
||||
|
||||
<b>SOAP Method/Call</b><br>
|
||||
The SOAP method is the name of the function to be invoked by the SOAP server. Include any extra parameters in the SOAP Call Parameters field below.<p></p>
|
||||
|
||||
<b>SOAP Call Parameters</b><br>
|
||||
If your SOAP call requires any additional parameters, include them here as a valid perl hash, array or scalar. For example: <code>\'userid\' => \'12\', companyid => \'^FormParam(\"companyid\"); Whether you need to use scalar, hash or array is entirely dependent on what your SOAP service expects as input. Likewise, what you get back is entirely dependent on what the service deems to return.\'</code>.<p></p>
|
||||
|
||||
<b>Execute by default?</b><br>
|
||||
Leave this set to yes unless your page is calling itself with additional parameters. You will probably know if/when you need to turn off default execution. To force execution when it has been disabled by default, pass a form variable \"targetWobjects\" specifying the name of the SOAP call to force execution.<p></p>
|
||||
|
||||
<b>Template</b><br>
|
||||
Choose a layout for this SOAP client.<p></p>
|
||||
|
||||
<b>Preprocess macros on query?</b><br>
|
||||
If you\'re using WebGUI macros in your query you\'ll want to check this box.<p></p>
|
||||
|
||||
<b>Pagination After</b><br>
|
||||
How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?<p></p>
|
||||
|
||||
<b>Pagination Variable</b><br>
|
||||
Because a SOAP call can return complex data structures, you\'ll need to specify which named variable is to be paginated. If none is specified, no pagination will occur.<p></p>
|
||||
|
||||
<b>Debug?</b><br>
|
||||
If you want to display debugging and error messages on the page, check this box.<p></p>
|
||||
|
||||
<b>Decode utf8?</b><br />
|
||||
This option will only display if you have Data::Structure::Util installed. SOAP calls return utf8 strings even if they may not have utf8 characters within them. This converts utf8 characters to that there aren\'t collisions with any character sets specified in the page header. Deocing is turned off by default, but try turning it on if you see goofy gibberish, especially with the display of copyright symbols and the like.<p></p>
|
||||
|
||||
<b>Cache</b><br />
|
||||
By default, SOAP calls are cached uniquely for each user session. By selecting "Global" call returns can be shared between users.<p></p>
|
||||
|
||||
<b>Cache expires</b><br>
|
||||
Number of seconds a SOAP return will be cached. Set to 1 to essentially skip caching.|
|
||||
|
||||
27=> q|Cache expires|,
|
||||
28 => q|Cache|,
|
||||
29 => q|Session|,
|
||||
19 => q|Global|,
|
||||
};
|
||||
|
||||
1;
|
||||
34
lib/WebGUI/i18n/English/WebGUI-Profile.pm
Normal file
34
lib/WebGUI/i18n/English/WebGUI-Profile.pm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
package WebGUI::i18n::English::WebGUI-Profile;
|
||||
|
||||
our $I18N = {
|
||||
471 => q|Edit User Profile Field|,
|
||||
|
||||
466 => q|Are you certain you wish to delete this category and move all of its fields to the Miscellaneous category?|,
|
||||
|
||||
467 => q|Are you certain you wish to delete this field and all user data attached to it?|,
|
||||
|
||||
473 => q|Visible?|,
|
||||
|
||||
474 => q|Required?|,
|
||||
|
||||
489 => q|Profile Category|,
|
||||
|
||||
490 => q|Add a profile category.|,
|
||||
|
||||
491 => q|Add a profile field.|,
|
||||
|
||||
468 => q|Edit User Profile Category|,
|
||||
|
||||
790 => q|Delete this profile category.|,
|
||||
|
||||
789 => q|Edit this profile category.|,
|
||||
|
||||
788 => q|Delete this profile field.|,
|
||||
|
||||
787 => q|Edit this profile field.|,
|
||||
|
||||
897 => q|Editable?|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
4579
lib/WebGUI/i18n/English/WebGUI.pm
Normal file
4579
lib/WebGUI/i18n/English/WebGUI.pm
Normal file
File diff suppressed because it is too large
Load diff
51
lib/WebGUI/i18n/English/WobjectProxy.pm
Normal file
51
lib/WebGUI/i18n/English/WobjectProxy.pm
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
package WebGUI::i18n::English::WobjectProxy;
|
||||
|
||||
our $I18N = {
|
||||
1 => q|Wobject To Proxy|,
|
||||
|
||||
2 => q|Edit Wobject Proxy|,
|
||||
|
||||
3 => q|Wobject Proxy|,
|
||||
|
||||
4 => q|Wobject proxying failed. Perhaps the proxied wobject has been deleted.|,
|
||||
|
||||
5 => q|Wobject Proxy, Add/Edit|,
|
||||
|
||||
6 => q|With the Wobject Proxy (aka Shortcut) you can mirror a wobject from another page to any other page. This is useful if you want to reuse the same content in multiple sections of your site.
|
||||
<p>
|
||||
|
||||
<b>NOTE:</b> The wobject proxy is not available through the Add Content menu, but instead through the shortcut icon on each wobject's toolbar.
|
||||
<p>
|
||||
|
||||
<b>Wobject To Proxy</b><br>
|
||||
Provides a link to the orignal wobject being proxied.
|
||||
<p>
|
||||
|
||||
<b>Override title?</b><br>
|
||||
Set to "yes" to use the title of the wobject proxy instead of the original title of the wobject.
|
||||
<p>
|
||||
|
||||
<b>Override description?</b><br>
|
||||
Set to "yes" to use the description of the wobject proxy instead of the original description of the wobject.
|
||||
<p>
|
||||
|
||||
<b>Override display title?</b><br>
|
||||
Set to "yes" to use the display title setting of the wobject proxy instead of the original display title setting of the wobject.
|
||||
<p>
|
||||
|
||||
<b>Override template?</b><br>
|
||||
Set to "yes" to use the template of the wobject proxy instead of the original template of the wobject.
|
||||
<p>
|
||||
|,
|
||||
|
||||
8 => q|Override display title?|,
|
||||
|
||||
10 => q|Override template?|,
|
||||
|
||||
7 => q|Override title?|,
|
||||
|
||||
9 => q|Override description?|,
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue