From 253b78f86b9c62aada43a76cca7d4f48c0f745a9 Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Tue, 16 Dec 2008 16:16:37 +0000 Subject: [PATCH] updating matrix help and international --- lib/WebGUI/Help/Asset_Matrix.pm | 57 ++++++++++++++++++++----- lib/WebGUI/i18n/English/Asset_Matrix.pm | 51 +++++++++++++--------- 2 files changed, 77 insertions(+), 31 deletions(-) diff --git a/lib/WebGUI/Help/Asset_Matrix.pm b/lib/WebGUI/Help/Asset_Matrix.pm index 749981dd3..1df7c42dc 100644 --- a/lib/WebGUI/Help/Asset_Matrix.pm +++ b/lib/WebGUI/Help/Asset_Matrix.pm @@ -7,19 +7,23 @@ our $HELP = { title => 'search template help title', body => '', variables => [ - { 'name' => 'CATEGORY_NAME_loop', + { 'name' => 'compareForm', }, + { 'name' => 'category_loop', 'variables' => [ - { 'name' => 'name', - 'description' => 'listing name' + { 'name' => 'categoryLabel' }, + { 'name' => 'attribute_loop', + 'variables' => [ + { 'name' => 'label', + 'description' => 'tmplVar attribute_loop listing label' + }, + { 'name' => 'description', + 'description' => 'tmplVar attribute_loop description' + }, + { 'name' => 'form', + 'description' => 'tmplVar attribute_loop form' + }, + ], }, - { 'name' => 'fieldType' }, - { 'name' => 'label', - 'description' => 'listing label' - }, - { 'name' => 'description', - 'description' => 'search field description' - }, - { 'name' => 'form' } ], } ], @@ -33,6 +37,9 @@ our $HELP = { { tag => 'listing detail template', namespace => 'Asset_Matrix' }, + { tag => 'edit listing template', + namespace => 'Asset_Matrix' + }, ], }, @@ -63,6 +70,9 @@ our $HELP = { { tag => 'listing detail template', namespace => 'Asset_Matrix' }, + { tag => 'edit listing template', + namespace => 'Asset_Matrix' + }, ], }, @@ -157,6 +167,9 @@ our $HELP = { { tag => 'listing detail template', namespace => 'Asset_Matrix' }, + { tag => 'edit listing template', + namespace => 'Asset_Matrix' + }, ], }, @@ -218,6 +231,28 @@ our $HELP = { { tag => 'main template', namespace => 'Asset_Matrix' }, + { tag => 'edit listing template', + namespace => 'Asset_Matrix' + }, + ], + }, + + 'edit listing template' => { + title => 'edit listing template help title', + body => '', + variables => [ + { 'name' => 'form', } + ], + related => [ + { tag => 'compare template', + namespace => 'Asset_Matrix' + }, + { tag => 'main template', + namespace => 'Asset_Matrix' + }, + { tag => 'listing detail template', + namespace => 'Asset_Matrix' + }, ], }, }; diff --git a/lib/WebGUI/i18n/English/Asset_Matrix.pm b/lib/WebGUI/i18n/English/Asset_Matrix.pm index 0d3bfed79..56a310151 100644 --- a/lib/WebGUI/i18n/English/Asset_Matrix.pm +++ b/lib/WebGUI/i18n/English/Asset_Matrix.pm @@ -15,13 +15,20 @@ our $I18N = { 'category_loop' => { message => q|A loop containing all of the categories in this Matrix.|, lastUpdated => 0, + context => q|Description of the category_loop tmpl_var for the template help.|, }, 'categoryLabel' => { message => q|The label of a category.|, - lastUpdated => 1149783768, + lastUpdated => 0, + context => q|Description of the categoryLabel tmpl_var for the template help.|, }, + 'compareForm' => { + message => q|The compare box form. The list of matrix listings in this form is a yui datatable. See the yui docs for information about skinning yui datatables.|, + lastUpdated => 0, + context => q|Description of the compareForm tmpl_var for the template help.|, + }, 'tmplVar category' => { message => q|The name of the current category.|, @@ -139,8 +146,9 @@ our $I18N = { }, 'attribute_loop' => { - message => q|A loop containing attributes and values for those attributes.|, + message => q|A loop containing matrix attributes.|, lastUpdated => 0, + context => q|Description of the attribute_loop tmpl_var for the template help.|, }, 'tmplVar name' => { @@ -168,10 +176,15 @@ our $I18N = { lastUpdated => 1149784175, }, - 'detail template help title' => { - lastUpdated => 0, - message => q|Matrix Listing Detail Template Variables| - }, + 'detail template help title' => { + lastUpdated => 0, + message => q|Matrix Listing Detail Template Variables| + }, + + 'edit listing template help title' => { + lastUpdated => 0, + message => q|Edit Matrix Listing Template Variables| + }, 'search_url' => { message => q|The URL to the matrix search page.|, @@ -475,29 +488,27 @@ listing,|, message => q|Matrix Ratings Detail Template Variables| }, - 'listing name' => { - message => q|The name of this listing.|, - lastUpdated => 1149996259, - }, - 'fieldType' => { message => q|The type of field specified for this matrix field.|, lastUpdated => 1149996685, }, - 'listing label' => { - message => q|The label given to this field that describes what the field represents.|, - lastUpdated => 1149996685, + 'tmplVar attribute_loop label' => { + message => q|The label given to this attribute that describes what the attribtute represents.|, + lastUpdated => 0, + context => q|Description of the listing label tmpl_var inside the attribute loop in the search screen.|, }, - 'search field description' => { - message => q|A description of the field that gives more detail about the field and is used in the hover over tool tips.|, - lastUpdated => 1149996685, + 'tmplVar attribute_loop description' => { + message => q|A description of the attribute that gives more detail about the field and is used in the hover over tool tips.|, + lastUpdated => 0, + context => q|Description of the description tmpl_var inside the attribute loop in the search screen.|, }, - 'form' => { - message => q|The form element representing this field.|, - lastUpdated => 1149996685, + 'tmplVar attribute_loop form' => { + message => q|The form element representing this attribute.|, + lastUpdated => 0, + context => q|Description of the form tmpl_var inside the attribute loop in the search screen.|, }, 'search template help title' => {