diff --git a/lib/WebGUI/Form/MatrixCompare.pm b/lib/WebGUI/Form/MatrixCompare.pm index c69d0c70d..d4f1480b4 100644 --- a/lib/WebGUI/Form/MatrixCompare.pm +++ b/lib/WebGUI/Form/MatrixCompare.pm @@ -79,7 +79,7 @@ sub definition { my $i18n = WebGUI::International->new($session); push(@{$definition}, { label=>{ - defaultValue=>$i18n->get("matrix compare","WebGUI") + defaultValue=>$i18n->get("matrix compare","Form_MatrixCompare") }, }); return $class->SUPER::definition($session, $definition); @@ -95,7 +95,7 @@ Returns the human readable name of this control. sub getName { my ($self, $session) = @_; - return WebGUI::International->new($session, 'WebGUI')->get('matrix compare'); + return WebGUI::International->new($session, 'Form_MatrixCompare')->get('topicName'); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/Help/Asset_Matrix.pm b/lib/WebGUI/Help/Asset_Matrix.pm index 7ec7f6d0b..749981dd3 100644 --- a/lib/WebGUI/Help/Asset_Matrix.pm +++ b/lib/WebGUI/Help/Asset_Matrix.pm @@ -7,10 +7,6 @@ our $HELP = { title => 'search template help title', body => '', variables => [ - { 'name' => 'compare.form', }, - { 'name' => 'form.header' }, - { 'name' => 'form.footer' }, - { 'name' => 'form.submit' }, { 'name' => 'CATEGORY_NAME_loop', 'variables' => [ { 'name' => 'name', @@ -31,9 +27,6 @@ our $HELP = { { tag => 'compare template', namespace => 'Asset_Matrix' }, - { tag => 'ratings detail template', - namespace => 'Asset_Matrix' - }, { tag => 'main template', namespace => 'Asset_Matrix' }, @@ -49,16 +42,6 @@ our $HELP = { variables => [ { 'name' => 'isTooMany' }, { 'name' => 'isTooFew' }, - { 'name' => 'compare.form' }, - { 'name' => 'product_loop', - 'variables' => [ - { 'name' => 'name' }, - { 'name' => 'version' }, - { 'name' => 'url', - 'description' => 'details url' - } - ] - }, { 'name' => 'lastupdated_loop', 'variables' => [ { 'name' => 'lastUpdated' } ] }, @@ -67,20 +50,6 @@ our $HELP = { { 'name' => 'category', 'description' => 'tmplVar category' }, - { 'name' => 'columnCount' }, - { 'name' => 'row_loop', - 'variables' => [ - { 'name' => 'column_loop', - 'variables' => [ - { 'name' => 'value' }, - { 'name' => 'class' }, - { 'name' => 'description', - 'description' => 'tmplVar field.description' - } - ] - } - ] - } ] } ], @@ -88,54 +57,6 @@ our $HELP = { { tag => 'search template', namespace => 'Asset_Matrix' }, - { tag => 'ratings detail template', - namespace => 'Asset_Matrix' - }, - { tag => 'main template', - namespace => 'Asset_Matrix' - }, - { tag => 'listing detail template', - namespace => 'Asset_Matrix' - }, - ], - }, - - 'ratings detail template' => { - title => 'ratings detail template help title', - body => '', - variables => [ - { 'name' => 'rating_loop', - 'variables' => [ - { 'name' => 'category', }, - { 'name' => 'detail_loop', - 'variables' => [ - { 'name' => 'url', - 'description' => 'tmplVar detail url' - }, - { 'name' => 'mean', - 'description' => 'detail mean' - }, - { 'name' => 'median', - 'description' => 'detail median' - }, - { 'name' => 'count', - 'description' => 'detail count' - }, - { 'name' => 'name', - 'description' => 'listing name' - } - ] - } - ] - } - ], - related => [ - { tag => 'search template', - namespace => 'Asset_Matrix' - }, - { tag => 'compare template', - namespace => 'Asset_Matrix' - }, { tag => 'main template', namespace => 'Asset_Matrix' }, @@ -201,11 +122,6 @@ our $HELP = { } ] }, - { 'name' => 'ratings.details.url' }, - { 'name' => 'best.posts.url' }, - { 'name' => 'bestUpdated_url' }, - { 'name' => 'bestUpdated_date' }, - { 'name' => 'bestUpdated_name' }, { 'name' => 'last_update_loop', 'variables' => [ { 'name' => 'url', @@ -219,16 +135,14 @@ our $HELP = { } ] }, - { 'name' => 'user.count' }, - { 'name' => 'current.user.count' }, { 'name' => 'listingCount' }, - { 'name' => 'pending_list', + { 'name' => 'pending_loop', 'variables' => [ { 'name' => 'url', 'description' => 'tmplVar pending.url' }, - { 'name' => 'productName', - 'description' => 'tmplVar pending.productName' + { 'name' => 'name', + 'description' => 'tmplVar pending.name' } ] } @@ -240,9 +154,6 @@ our $HELP = { { tag => 'compare template', namespace => 'Asset_Matrix' }, - { tag => 'ratings detail template', - namespace => 'Asset_Matrix' - }, { tag => 'listing detail template', namespace => 'Asset_Matrix' }, @@ -258,13 +169,8 @@ our $HELP = { 'description' => 'tmplVar screenshot' }, { 'name' => 'thumbnail' }, - { 'name' => 'email.form' }, - { 'name' => 'email.wasSent' }, - { 'name' => 'edit.url' }, - { 'name' => 'user.canEdit' }, - { 'name' => 'user.canApprove' }, - { 'name' => 'approve.url' }, - { 'name' => 'delete.url' }, + { 'name' => 'emailForm' }, + { 'name' => 'emailSent' }, { 'name' => 'isPending' }, { 'name' => 'lastUpdated_epoch' }, { 'name' => 'lastUpdated_date' }, @@ -274,10 +180,10 @@ our $HELP = { }, { 'name' => 'productName' }, { 'name' => 'productUrl' }, - { 'name' => 'productUrl.click' }, + { 'name' => 'productUrl_click' }, { 'name' => 'manufacturerName' }, { 'name' => 'manufacturerUrl' }, - { 'name' => 'manufacturerUrl.click' }, + { 'name' => 'manufacturerUrl_click' }, { 'name' => 'versionNumber' }, { 'name' => 'views' }, { 'name' => 'compares' }, @@ -309,9 +215,6 @@ our $HELP = { { tag => 'compare template', namespace => 'Asset_Matrix' }, - { tag => 'ratings detail template', - namespace => 'Asset_Matrix' - }, { tag => 'main template', namespace => 'Asset_Matrix' }, diff --git a/lib/WebGUI/i18n/English/Asset_Matrix.pm b/lib/WebGUI/i18n/English/Asset_Matrix.pm index f386ae918..a275d5209 100644 --- a/lib/WebGUI/i18n/English/Asset_Matrix.pm +++ b/lib/WebGUI/i18n/English/Asset_Matrix.pm @@ -2,22 +2,6 @@ package WebGUI::i18n::English::Asset_Matrix; use strict; our $I18N = { - 'delete field confirm' => { - message => q|Are you certain you wish to delete this field and all the data linked to it?|, - lastUpdated => 1230, - context => q|displayed in field manager before delete| - }, - - 'visitor cache timeout' => { - message => q|Visitor Cache Timeout|, - lastUpdated => 1230 - }, - - 'visitor cache timeout help' => { - message => q|Since all visitors will see this asset the same way, we can cache it to increase performance. How long should we cache it?|, - lastUpdated => 1230 - }, - 'isTooMany' => { message => q|A condition indicating that the user has selected too many listings to compare. They may only compare Max Comparisons listings at a time.|, lastUpdated => 1149783768, @@ -28,11 +12,6 @@ our $I18N = { lastUpdated => 1149783768, }, - 'compare.form' => { - message => q|The checkbox form that contains all the listings in this matrix.|, - lastUpdated => 1149783768, - }, - 'product_loop' => { message => q|A loop containing the product information (not contained in categories) for this listing.|, lastUpdated => 1149783768, @@ -43,24 +22,9 @@ our $I18N = { lastUpdated => 1149783768, }, - 'details url' => { - message => q|The URL to the details page for this listing.|, - lastUpdated => 1149783768, - }, - - 'lastupdated_loop' => { - message => q|A loop containing the last updated dates for each listing.|, - lastUpdated => 1149783768, - }, - - 'lastUpdated' => { - message => q|The human readable date that this product was last updated.|, - lastUpdated => 1149783768, - }, - 'category_loop' => { - message => q|A loop containing all of the category information for each listing.|, - lastUpdated => 1149783768, + message => q|A loop containing all of the categories in this Matrix.|, + lastUpdated => 0, }, 'categoryLabel' => { @@ -74,89 +38,29 @@ our $I18N = { lastUpdated => 1149783768, }, - 'columnCount' => { - message => q|The number of products being compared.|, - lastUpdated => 1149783768, - }, - - 'row_loop' => { - message => q|A loop containing the product data for this field in this category. |, - lastUpdated => 1149783768, - }, - - 'column_loop' => { - message => q|A loop containing the value data for this field for this product. The first value in this loop is always the field name.|, - lastUpdated => 1149783768, - }, - 'value' => { message => q|The value of this field.|, lastUpdated => 1149783768, }, - 'class' => { - message => q|The name of the stylesheet class for this field. it is generated by the value with all the spaces replaced by underscores and all the special characters removed.|, - lastUpdated => 1149783768, + 'comparison template help title' => { + message => q|Matrix Comparison Template Variables|, + lastUpdated => 1184949083, + }, + + 'comments' => { + message => q|The comments attached to this listing.|, + lastUpdated => 0, }, - 'tmplVar field.description' => { - message => q|The description for this field.|, - lastUpdated => 1149783768, - }, - - 'comparison template help title' => { - message => q|Matrix Comparison Template Variables|, - lastUpdated => 1184949083, - }, - - 'discussion' => { - message => q|The forum attached to this listing.|, - lastUpdated => 1149784175, - }, - - 'tmplVar screenshot' => { - message => q|The URL to the uploaded photo or screenshot.|, - lastUpdated => 1149784175, - }, - - 'thumbnail' => { - message => q|The URL to the thumbnail of the uploaded photo or screenshot|, - lastUpdated => 1149784175, - }, - - 'email.form' => { + 'emailForm' => { message => q|A form to use to send an email to the listing maintainer.|, - lastUpdated => 1149784175, + lastUpdated => 0, }, - 'email.wasSent' => { + 'emailSent' => { message => q|A condition indicating whether or not an email message was sent.|, - lastUpdated => 1165518551, - }, - - 'edit.url' => { - message => q|The URL to the edit page for this listing.|, - lastUpdated => 1149784175, - }, - - 'user.canEdit' => { - message => q|A condition indicating whether the current user has the privileges necessary to edit this listing.|, - lastUpdated => 1149784175, - }, - - 'user.canApprove' => { - message => q|A condition indicating whether the current user has the privileges necessary to approve this listing so it appears on site.|, - lastUpdated => 1149784175, - }, - - 'approve.url' => { - message => q|The URL to approve this listing.|, - lastUpdated => 1149784175, - }, - - 'delete.url' => { - message => q|The URL to delete this listing.|, - lastUpdated => 1149784175, + lastUpdated => 0, }, 'isPending' => { @@ -409,24 +313,9 @@ our $I18N = { lastUpdated => 1149795214, }, - 'bestUpdated_url' => { - message => q|The URL to the listing that was updated most recently.|, - lastUpdated => 0, - }, - - 'bestUpdated_date' => { - message => q|The date of the most recently updated listing.|, - lastUpdated => 0, - }, - - 'bestUpdated_name' => { - message => q|The name of the listing that was most recently updated.|, - lastUpdated => 0, - }, - - 'last_update_loop' => { + 'last_updated_loop' => { message => q|A loop containing the 20 most recently updated listings.|, - lastUpdated => 1149795214, + lastUpdated => 0, }, 'tmplVar last.url' => { @@ -444,16 +333,6 @@ our $I18N = { lastUpdated => 1149795214, }, - 'user.count' => { - message => q|The total number of registered users on the site.|, - lastUpdated => 1149795214, - }, - - 'current.user.count' => { - message => q|The number of users browsing the site right now.|, - lastUpdated => 1149795214, - }, - 'listingCount' => { message => q|The number of listings in this matrix.|, lastUpdated => 0, @@ -484,66 +363,21 @@ our $I18N = { lastUpdated => 0, }, - 'matrix template help title' => { - message => q|Matrix Main Template Variables|, - lastUpdated => 1184949132, - }, + 'matrix template help title' => { + message => q|Matrix Main Template Variables|, + lastUpdated => 1184949132, + }, - 'ratings detail template help title' => { - lastUpdated => 1230, - message => q|Matrix Ratings Detail Template Variables| - }, - - 'rating_loop' => { - message => q|This loop contains a list of the categories in this matrix.|, - lastUpdated => 1149996259, - }, - - 'detail_loop' => { - message => q|A loop containing a list of listings who have had at least 10 ratings votes and are listed in order by average rating from highest to lowest.|, - lastUpdated => 1149996259, - }, - - 'tmplVar detail url' => { - message => q|The URL to the detail page for this listing.|, - lastUpdated => 1149996259, - }, - - 'detail mean' => { - message => q|This listing's mean (or average) rating.|, - lastUpdated => 1149996259, - }, - - 'detail median' => { - message => q|This listing's median (or middle) rating.|, - lastUpdated => 1149996259, - }, - - 'detail count' => { - message => q|The total score for this listing.|, - lastUpdated => 1149996259, - }, + 'ratings detail template help title' => { + lastUpdated => 1230, + message => q|Matrix Ratings Detail Template Variables| + }, 'listing name' => { message => q|The name of this listing.|, lastUpdated => 1149996259, }, - 'form.header' => { - message => q|The required header component of the search form.|, - lastUpdated => 1149996685, - }, - - 'form.footer' => { - message => q|The required footer component of the search form.|, - lastUpdated => 1149996685, - }, - - 'form.submit' => { - message => q|The required button to submit data for the search form.|, - lastUpdated => 1149996685, - }, - 'fieldType' => { message => q|The type of field specified for this matrix field.|, lastUpdated => 1149996685, @@ -964,46 +798,11 @@ our $I18N = { message => q|Add Attribute|, }, - 'yes' => { - lastUpdated => 1135279558, - message => q|Yes| - }, - - 'no' => { - lastUpdated => 1135279558, - message => q|No| - }, - - 'free' => { - lastUpdated => 1135279558, - message => q|Free Add On| - }, - - 'extra' => { - lastUpdated => 1135279558, - message => q|Costs Extra| - }, - - 'limited' => { - lastUpdated => 1135279558, - message => q|Limited| - }, - 'product name description' => { lastUpdated => 1135279558, message => q|Enter the name of the product. If there are entries for the product with different revisions, it would be best to make sure the names are the same.| }, - 'matrix specific fields description' => { - lastUpdated => 1135279558, - message => q|Each matrix is configured to compare the features and performance of various products. These features and performance criteria are displayed for you to rate on an item by item basis.| - }, - - 'matrix specific fields' => { - lastUpdated => 1135279558, - message => q|Matrix Specific Fields| - }, - 'attribute name description' => { lastUpdated => 0, message => q|The name of the attribute that you are creating. It is case sensitive and must be unique.| diff --git a/lib/WebGUI/i18n/English/Form_MatrixCompare.pm b/lib/WebGUI/i18n/English/Form_MatrixCompare.pm index 2c3dff83f..82b556b80 100644 --- a/lib/WebGUI/i18n/English/Form_MatrixCompare.pm +++ b/lib/WebGUI/i18n/English/Form_MatrixCompare.pm @@ -2,6 +2,11 @@ package WebGUI::i18n::English::Form_MatrixCompare; use strict; our $I18N = { + 'topicName' => { + message => q|Matrix Compare|, + lastUpdated => 0, + }, + 'no' => { message => q|No|, lastUpdated => 0,