diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt
index 55c8260b1..d9b11f776 100644
--- a/docs/changelog/6.x.x.txt
+++ b/docs/changelog/6.x.x.txt
@@ -56,7 +56,9 @@
- Updated TinyMCE to version 1.44.
- Added an option to the layout to hide child assets from being displayed.
This allows you to use non-layout child assets as stand alone pages.
-
+ - Internationalized a bunch of stuff that was previously uninternationalized.
+ - Fixed a bug in the survey that caused users to not be able to submit
+ survey's.
6.5.6
- Fixed a bunch of mostly cosmetic issues with the commerce system.
diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm
index 88b5d22eb..d3611f2b0 100644
--- a/lib/WebGUI/Asset.pm
+++ b/lib/WebGUI/Asset.pm
@@ -833,9 +833,10 @@ sub getAssetManagerControl {
$title =~ s/\'/\\\'/g;
push(@dataArray,"['".$ancestor->getId."','".$ancestor->getUrl."','".$title."']\n");
}
+ my $i18n = WebGUI::International->new("Asset");
$output .= join(",",@dataArray);
$output .= "];\n";
- $output .= "var columnHeadings = ['Rank','Title','Type','Last Updated','Size'];\n";
+ $output .= "var columnHeadings = ['".$i18n->get("rank")."','".$i18n->get("99")."','".$i18n->get("type")."','".$i18n->get("last updated")."','".$i18n->get("size")."'];\n";
$output .= "/*rank, title, type, lastUpdate, size, url, assetId, icon */\nvar assets = [\n";
@dataArray = ();
foreach my $child (@{$children}) {
@@ -848,18 +849,16 @@ sub getAssetManagerControl {
}
$output .= join(",",@dataArray);
$output .= "];\n var labels = new Array();\n";
- $output .= "labels['edit'] = 'Edit';\n";
- $output .= "labels['cut'] = 'Cut';\n";
- $output .= "labels['copy'] = 'Copy';\n";
- $output .= "labels['move'] = 'Move';\n";
- $output .= "labels['view'] = 'View';\n";
- $output .= "labels['delete'] = 'Delete';\n";
- $output .= "labels['restore'] = 'Restore';\n";
- $output .= "labels['shortcut'] = 'Create Shortcut';\n";
- $output .= "labels['purge'] = 'Purge';\n";
- $output .= "labels['go'] = 'Manage';\n";
- $output .= "labels['properties'] = 'Properties';\n";
- $output .= "labels['editTree'] = 'Edit Branch';\n";
+ $output .= "labels['edit'] = '".$i18n->get("edit")."';\n";
+ $output .= "labels['cut'] = '".$i18n->get("cut")."';\n";
+ $output .= "labels['copy'] = '".$i18n->get("copy")."';\n";
+ $output .= "labels['view'] = '".$i18n->get("view")."';\n";
+ $output .= "labels['delete'] = '".$i18n->get("delete")."';\n";
+ $output .= "labels['restore'] = '".$i18n->get("restore")."';\n";
+ $output .= "labels['shortcut'] = '".$i18n->get("create shortcut")."';\n";
+ $output .= "labels['purge'] = '".$i18n->get("purge")."';\n";
+ $output .= "labels['go'] = '".$i18n->get("manage")."';\n";
+ $output .= "labels['editTree'] = '".$i18n->get("edit branch")."';\n";
$output .= "var manager = new AssetManager(assets,columnHeadings,labels,crumbtrail);\n";
$output .= "manager.assetType='".$controlType."';\n" if (defined $controlType);
$output .= "manager.disableDisplay(0);\n" if (defined $removeRank);
@@ -1662,12 +1661,13 @@ sub getToolbar {
WebGUI::Style::setLink($session{config}{extrasURL}.'/contextMenu/contextMenu.css', {rel=>"stylesheet",type=>"text/css"});
WebGUI::Style::setScript($session{config}{extrasURL}.'/contextMenu/contextMenu.js', {type=>"text/javascript"});
#return ''.$toolbar;
+ my $i18n = WebGUI::International->new("Asset");
return ''.$toolbar;
}
diff --git a/lib/WebGUI/Asset/Shortcut.pm b/lib/WebGUI/Asset/Shortcut.pm
index c3c30ab63..eba4b69bc 100644
--- a/lib/WebGUI/Asset/Shortcut.pm
+++ b/lib/WebGUI/Asset/Shortcut.pm
@@ -57,6 +57,10 @@ sub definition {
fieldType=>"yesNo",
defaultValue=>0,
},
+ disableContentLock=>{
+ fieldType=>"yesNo",
+ defaultValue=>0
+ },
resolveMultiples=>{
fieldType=>"selectList",
defaultValue=>"mostRecent",
@@ -137,6 +141,11 @@ sub getEditForm {
this.form.proxyCriteria.disabled=true;
}"|
);
+ $tabform->getTab("properties")->yesNo(
+ -name=>"disableContentLock",
+ -value=>$self->getValue("disableContentLock"),
+ -label=>WebGUI::International::get("disable content lock","Asset_Shortcut")
+ );
if ($self->getValue("shortcutByCriteria") == 0) {
$self->{_disabled} = 'disabled=true';
}
@@ -229,7 +238,7 @@ sub getShortcutByCriteria {
my $scratchId;
if ($assetId) {
$scratchId = "Shortcut_" . $assetId;
- if($session{scratch}{$scratchId}) {
+ if($session{scratch}{$scratchId} && !$self->getValue("disableContentLock")) {
return $session{scratch}{$scratchId} unless ($session{var}{adminOn});
}
}
diff --git a/lib/WebGUI/Asset/Wobject/Navigation.pm b/lib/WebGUI/Asset/Wobject/Navigation.pm
index 6808214c2..9b2afbb7e 100644
--- a/lib/WebGUI/Asset/Wobject/Navigation.pm
+++ b/lib/WebGUI/Asset/Wobject/Navigation.pm
@@ -286,7 +286,14 @@ sub getToolbar {
$returnUrl = "&proceed=goBackToPage&returnUrl=".WebGUI::URL::escape($session{asset}->getUrl);
}
my $toolbar = editIcon('func=edit'.$returnUrl,$self->get("url"));
- return '
'.$toolbar;
+ my $i18n = WebGUI::International->new("Asset");
+ return ''.$toolbar;
}
return $self->SUPER::getToolbar();
}
diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm
index 628444ee2..2e7033b1b 100644
--- a/lib/WebGUI/Asset/Wobject/Survey.pm
+++ b/lib/WebGUI/Asset/Wobject/Survey.pm
@@ -589,7 +589,7 @@ sub view {
$var->{question_loop} = $self->getQuestionsLoop($var->{'response.Id'});
}
}
- $var->{'form.header'} = WebGUI::Form::formHeader({-action=>$self->getUrl})
+ $var->{'form.header'} = WebGUI::Form::formHeader({action=>$self->getUrl})
.WebGUI::Form::hidden({
name=>'func',
value=>'respond'
@@ -990,7 +990,7 @@ sub www_viewGradebook {
$var->{title} = WebGUI::International::get(71,'Asset_Survey');
my $p = WebGUI::Paginator->new($self->getUrl('func=viewGradebook'));
$p->setDataByQuery("select userId,username,ipAddress,Survey_responseId,startDate,endDate from Survey_response
- where isComplete=1 and Survey_id=".quote($self->get("Survey_id"))." order by username,ipAddress,startDate");
+ where Survey_id=".quote($self->get("Survey_id"))." order by username,ipAddress,startDate");
my $users = $p->getPageData;
($var->{'question.count'}) = WebGUI::SQL->quickArray("select count(*) from Survey_question where Survey_id=".quote($self->get("Survey_id")));
if ($var->{'question.count'} > $self->get("questionsPerResponse")) {
diff --git a/lib/WebGUI/Form.pm b/lib/WebGUI/Form.pm
index d26a55e82..6d0956292 100644
--- a/lib/WebGUI/Form.pm
+++ b/lib/WebGUI/Form.pm
@@ -1142,7 +1142,7 @@ Returns an HTML area. An HTML area is different than a standard text area in tha
The name field for this form element.
-=head3 richEditorId
+=head3 richEditId
An asset Id of a rich editor to display for this field.
diff --git a/lib/WebGUI/Macro/a_account.pm b/lib/WebGUI/Macro/a_account.pm
index 6f35e7f5f..41349bba6 100644
--- a/lib/WebGUI/Macro/a_account.pm
+++ b/lib/WebGUI/Macro/a_account.pm
@@ -23,7 +23,7 @@ sub process {
my @param = WebGUI::Macro::getParams(shift);
return WebGUI::URL::page("op=auth&method=init") if ($param[0] eq "linkonly");
$var{'account.url'} = WebGUI::URL::page('op=auth&method=init');
- $var{'account.text'} = $param[0] || WebGUI::International::get(46.'Macro_a_account');
+ $var{'account.text'} = $param[0] || WebGUI::International::get(46,'Macro_a_account');
if ($param[1]) {
return WebGUI::Asset::Template->newByUrl($param[1])->process(\%var);
} else {
diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm
index c180f0c78..0aa4ebe21 100644
--- a/lib/WebGUI/i18n/English/Asset.pm
+++ b/lib/WebGUI/i18n/English/Asset.pm
@@ -1,7 +1,102 @@
package WebGUI::i18n::English::Asset;
our $I18N = {
-
+ 'rank' => {
+ message => q|Rank|,
+ lastUpdated => 0,
+ context => q|Column heading in asset manager.|
+ },
+
+ 'type' => {
+ message => q|Type|,
+ lastUpdated => 0,
+ context => q|Column heading in asset manager.|
+ },
+
+ 'size' => {
+ message => q|Size|,
+ lastUpdated => 0,
+ context => q|Column heading in asset manager.|
+ },
+
+ 'last updated' => {
+ message => q|Last Updated|,
+ lastUpdated => 0,
+ context => q|Column heading in asset manager.|
+ },
+
+ 'purge' => {
+ message => q|Purge|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'restore' => {
+ message => q|Restore|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'promote' => {
+ message => q|Promote|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'demote' => {
+ message => q|Demote|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'cut' => {
+ message => q|Cut|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'copy' => {
+ message => q|Copy|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'create shortcut' => {
+ message => q|Create Shortcut|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'view' => {
+ message => q|View|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'delete' => {
+ message => q|Delete|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'manage' => {
+ message => q|Manage|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'edit branch' => {
+ message => q|Edit Branch|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
+ 'edit' => {
+ message => q|Edit|,
+ lastUpdated => 0,
+ context => q|Used in asset context menus.|
+ },
+
'change' => {
message => q|Change recursively?|,
lastUpdated => 1099344172,
diff --git a/lib/WebGUI/i18n/English/Asset_Shortcut.pm b/lib/WebGUI/i18n/English/Asset_Shortcut.pm
index b8b2689b1..cf5205d61 100644
--- a/lib/WebGUI/i18n/English/Asset_Shortcut.pm
+++ b/lib/WebGUI/i18n/English/Asset_Shortcut.pm
@@ -2,6 +2,12 @@ package WebGUI::i18n::English::Asset_Shortcut;
our $I18N = {
+ 'disable content lock' => {
+ message => q|Disable content lock?|,
+ lastUpdated => 0,
+ context=> q|asset property|
+ },
+
'85' => {
message => q|Description|,
lastUpdated => 1031514049
@@ -79,6 +85,9 @@ Set to "yes" to use the display title setting of the shortcut instead of the ori
Set to "yes" to use the template of the shortcut of the original template of the asset.
+Disable content lock?
+By default if you proxy by alternate criteria the shortcut will lock on to a particular piece of content and show you only that piece of content until the end of your session. However, in some circumstances you may wish for this content to rotate. You can do that by disabling the content lock.
+
Shortcut by alternate criteria?
Set to "yes" to enable selecting a asset based upon custom criteria. Metadata must be enabled for this option to function properly.