From c59b48a3db67f2abf58fd8bef00877cfc3287053 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 28 Aug 2008 19:22:00 +0000 Subject: [PATCH] Begin to i18n the Site Starter. Added a Save tag to the WebGUI namespace so we don't have to put one in every other namespace anymore. --- lib/WebGUI/Content/Setup.pm | 17 ++- lib/WebGUI/i18n/English/WebGUI.pm | 195 ++++++++++++------------------ 2 files changed, 87 insertions(+), 125 deletions(-) diff --git a/lib/WebGUI/Content/Setup.pm b/lib/WebGUI/Content/Setup.pm index a67c44b00..6d41cb404 100644 --- a/lib/WebGUI/Content/Setup.pm +++ b/lib/WebGUI/Content/Setup.pm @@ -151,19 +151,18 @@ sub handler { $session->setting->set('companyName',$form->text("companyName")) if ($form->get("companyName")); $session->setting->set('companyURL',$form->url("companyURL")) if ($form->get("companyURL")); $session->setting->set('companyEmail',$form->email("companyEmail")) if ($form->get("companyEmail")); - $legend = "Site Starter"; - $output .= '

Do you wish to use the WebGUI Site Starter, which will lead you through options to create a custom - look and feel for your site, and set up some basic content areas?

-

No, thanks.       - Yes, please!

+ $legend = $i18n->get('site starter title'); + $output .= '

'.$i18n->get('site starter body').'

+

'.$i18n->get('no thanks').'       + '.$i18n->get('yes please').'

'; } elsif ($session->form->process("step") eq "4") { my $f = WebGUI::HTMLForm->new($session,action=>$session->url->gateway()); $f->hidden( name=>"step", value=>"5",); - $f->file(name=>"logo", label=>"Logo"); + $f->file(name=>"logo", label=>$i18n->get('logo')); $f->submit; - $legend = "Upload Your Logo"; + $legend = $i18n->get('upload logo'); $output .= $f->print; } elsif ($session->form->process("step") eq "5") { @@ -198,7 +197,7 @@ sub handler { $style->setScript($url->extras('/colorpicker/colorpicker.js'),{ type=>'text/javascript' }); $style->setScript($url->extras("/styleDesigner/styleDesigner.js"), {type=>"text/javascript"}); $style->setLink($url->extras("/styleDesigner/styleDesigner.css"), {rel=>"stylesheet", type=>"text/css"}); - $legend = "Style Designer"; + $legend = $i18n->get("style designer"); $output .= '
@@ -207,7 +206,7 @@ sub handler { - +
'; } diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 2321f6ef3..15637012e 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -1901,91 +1901,6 @@ This group could then be named "Employees in HMO 1", and would allow you to rest lastUpdated => 1056151382 }, - '890' => { - message => q|

WebGUI has a sub-system that can create tabs. You'll see these in complex forms such as page editing. In order to make the tabs system look good and match your site, you'll need to add a section to your style's style sheet specifically for the tabs. -

- -

The following style sheet classes are available: -

- -

.tab
-The default look of each tab. -

- -

div.tabs
-This also sets some properties for all of the tabs. This should be used for the text labels in the tabs. -

- -

.tabBody
-The content area for each tab. This is where the form will show up. Note that for best results the background color of this should match the background color of .tabActive. -

- -

.tabHover
-The look of a tab as the mouse hovers over it. -

- -

.tabActive
-The look of the tab that is currently visible. -

- -

Examples
-You can use these instead of creating your own if you wish. Or just use these as guidelines for creating your own. -

- -
-White or Light Colored Styles -
-.tab {
-  border: 1px solid black;
-   background-color: #eeeeee;
-}
-.tabBody {
-   border: 1px solid black;
-   border-top: 1px solid black;
-   border-left: 1px solid black;
-   background-color: #dddddd; 
-}
-div.tabs {
-    line-height: 15px;
-    font-size: 14px;
-}
-.tabHover {
-   background-color: #cccccc;
-}
-.tabActive { 
-   background-color: #dddddd; 
-}
-
-
-Black or Dark Colored Styles -
-.tab {
-  border: 1px solid white;
-   background-color: #333333;
-}
-.tabBody {
-   border: 1px solid white;
-   border-top: 1px solid white;
-   border-left: 1px solid white;
-   background-color: #444444; 
-}
-div.tabs {
-    line-height: 15px;
-    font-size: 14px;
-}
-.tabHover {
-   background-color: #555555;
-}
-.tabActive { 
-   background-color: #444444; 
-}
-
-
- -|, - lastUpdated => 1146592150 - }, - '440' => { message => q|Contact Information|, lastUpdated => 1031514049 @@ -3628,17 +3543,17 @@ LongTruncOk=1

message => q|Private Message Options|, lastUpdated => 1181019679, }, - + 'user profile field private message allow label' => { message => q|Allow All|, lastUpdated => 1181019679, }, - + 'user profile field private message friends only label' => { message => q|Allow From My Friends Only|, lastUpdated => 1181019679, }, - + 'user profile field private message allow none label' => { message => q|Allow None|, lastUpdated => 1181019679, @@ -3728,7 +3643,7 @@ LongTruncOk=1

message => q{Group to view and expire active sessions.}, lastUpdated => 0, }, - + 'settings groupIdAdminAdSpace label' => { message => q{AdSpace}, @@ -3738,7 +3653,7 @@ LongTruncOk=1

message => q{Group to manage advertising.}, lastUpdated => 0, }, - + 'settings groupIdAdminCache label' => { message => q{Cache}, @@ -3748,7 +3663,7 @@ LongTruncOk=1

message => q{Group to view and flush cache.}, lastUpdated => 0, }, - + 'settings groupIdAdminCron label' => { @@ -3759,7 +3674,7 @@ LongTruncOk=1

message => q{Group to manage scheduled workflows.}, lastUpdated => 0, }, - + 'settings groupIdAdminDatabaseLink label' => { message => q{Database Link}, @@ -3769,7 +3684,7 @@ LongTruncOk=1

message => q{Group to manage database links.}, lastUpdated => 0, }, - + 'settings groupIdAdminGraphics label' => { message => q{Graphics}, @@ -3779,7 +3694,7 @@ LongTruncOk=1

message => q{Group to manage fonts and palettes.}, lastUpdated => 0, }, - + 'settings groupIdAdminGroup label' => { message => q{Groups}, @@ -3789,7 +3704,7 @@ LongTruncOk=1

message => q{Group to manage all groups.}, lastUpdated => 0, }, - + 'settings groupIdAdminGroupAdmin label' => { message => q{Groups (limited)}, @@ -3799,7 +3714,7 @@ LongTruncOk=1

message => q{Group to manage groups that user is administrator of.}, lastUpdated => 0, }, - + 'settings groupIdAdminHelp label' => { message => q{Help}, @@ -3809,7 +3724,7 @@ LongTruncOk=1

message => q{Group that can view help.}, lastUpdated => 0, }, - + 'settings groupIdAdminLDAPLink label' => { message => q{LDAP}, @@ -3819,7 +3734,7 @@ LongTruncOk=1

message => q{Group to manage LDAP links.}, lastUpdated => 0, }, - + 'settings groupIdAdminLoginHistory label' => { message => q{Login History}, @@ -3829,7 +3744,7 @@ LongTruncOk=1

message => q{Group to view login history.}, lastUpdated => 0, }, - + 'settings groupIdAdminProfileSettings label' => { message => q{User Profiling}, @@ -3839,7 +3754,7 @@ LongTruncOk=1

message => q{Group to manage user profile fields.}, lastUpdated => 0, }, - + 'settings groupIdAdminReplacements label' => { message => q{Content Filters}, @@ -3849,7 +3764,7 @@ LongTruncOk=1

message => q{Group to manage content filters.}, lastUpdated => 0, }, - + 'settings groupIdAdminSpectre label' => { message => q{Spectre}, @@ -3859,7 +3774,7 @@ LongTruncOk=1

message => q{Group to view Spectre status}, lastUpdated => 0, }, - + 'settings groupIdAdminStatistics label' => { message => q{Statistics}, @@ -3869,7 +3784,7 @@ LongTruncOk=1

message => q{Group to view statistics}, lastUpdated => 0, }, - + 'settings groupIdAdminUser label' => { message => q{Users}, lastUpdated => 0, @@ -3878,7 +3793,7 @@ LongTruncOk=1

message => q{Group to manage users. Can add and edit users.}, lastUpdated => 0, }, - + 'settings groupIdAdminUserAdd label' => { message => q{Users (add only)}, @@ -3888,7 +3803,7 @@ LongTruncOk=1

message => q{Group that can only add new users.}, lastUpdated => 0, }, - + 'settings groupIdAdminVersionTag label' => { message => q{Version Tags}, @@ -3898,7 +3813,7 @@ LongTruncOk=1

message => q{Group to manage version tags}, lastUpdated => 0, }, - + 'settings groupIdAdminWorkflow label' => { message => q{Workflow}, @@ -3908,7 +3823,7 @@ LongTruncOk=1

message => q{Group to manage workflows}, lastUpdated => 0, }, - + 'settings groupIdAdminWorkflowRun label' => { message => q{Workflow (run)}, @@ -3958,7 +3873,7 @@ LongTruncOk=1

message => q{Rich Editor}, lastUpdated => 1202274234, }, - + 'SubscriptionGroup formName' => { message => q{Subscription Group}, lastUpdated => 1202274234, @@ -3974,49 +3889,97 @@ LongTruncOk=1

lastUpdated => 0, context => q{Label for site setting}, }, - + 'showMessageOnLogin description' => { message => q{If yes, show a message after a user logs in.}, lastUpdated => 0, context => q{Description for site setting}, }, - + 'showMessageOnLoginTimes label' => { message => q{Show Message Number of Times}, lastUpdated => 0, context => q{Label for site setting}, }, - + 'showMessageOnLoginTimes description' => { message => q{The number of times a user sees the message, one per login}, lastUpdated => 0, context => q{Description for site setting}, }, - + 'showMessageOnLoginReset label' => { message => q{Reset All Users Number of Times Seen}, lastUpdated => 0, context => q{Label for site setting}, }, - + 'showMessageOnLoginReset description' => { message => q{If "yes", will force all users to see the login message again}, lastUpdated => 0, context => q{Description for site setting}, }, - + 'showMessageOnLoginBody label' => { message => q{Message on Login Body}, lastUpdated => 0, context => q{Label for site setting}, }, - + 'showMessageOnLoginBody description' => { message => q{The body of the message to show on login. Macros are allowed.}, lastUpdated => 0, context => q{Description for site setting}, }, - + + 'site starter title' => { + message => q{Site Starter}, + lastUpdated => 0, + context => q{Title for the site starter screen.}, + }, + + 'site starter body' => { + message => q{Do you wish to use the WebGUI Site Starter, which will lead you through options to create a custom look and feel for your site, and set up some basic content areas?}, + lastUpdated => 0, + context => q{Body for the site starter screen.}, + }, + + 'no thanks' => { + message => q{No, thanks}, + lastUpdated => 0, + context => q{Option in site starter to not run it}, + }, + + 'yes please' => { + message => q{Yes, please}, + lastUpdated => 0, + context => q{Option in site starter to run the site starter}, + }, + + 'logo' => { + message => q{Logo}, + lastUpdated => 0, + context => q{Label for the Logo upload field in the site starter.}, + }, + + 'upload logo' => { + message => q{Upload Your Logo}, + lastUpdated => 0, + context => q{Title for the Logo upload screen in the site starter.}, + }, + + 'style designer' => { + message => q{Style Designer}, + lastUpdated => 0, + context => q{Title for the style designer screen in the site starter.}, + }, + + 'save' => { + message => q{Save}, + lastUpdated => 0, + context => q{General purpose, similar to submit.}, + }, + }; 1;