improve Thingy i18n

This commit is contained in:
Graham Knop 2008-03-20 15:46:07 +00:00
parent 93ef776635
commit 13df5fb547
3 changed files with 85 additions and 60 deletions

View file

@ -167,8 +167,8 @@ sub definition {
tab=>"display", tab=>"display",
noFormPost=>0, noFormPost=>0,
namespace=>"Thingy", namespace=>"Thingy",
hoverHelp=>$i18n->get('templateId label description'), hoverHelp=>$i18n->get('thingy template description'),
label=>$i18n->get('templateId label'), label=>$i18n->get('thingy template label'),
}, },
defaultThingId => { defaultThingId => {
autoGenerate => 0, autoGenerate => 0,
@ -439,7 +439,7 @@ where asset.state = "published"');
label=>$i18n->get('default value label'), label=>$i18n->get('default value label'),
hoverHelp=>$i18n->get('default value description'), hoverHelp=>$i18n->get('default value description'),
value=>$defaultValue, value=>$defaultValue,
subtext=>'<br />'.$i18n->get(85), subtext=>'<br />'.$i18n->get('default value subtext'),
width=>200, width=>200,
height=>60, height=>60,
resizable=>0, resizable=>0,

View file

@ -7,10 +7,10 @@ our $HELP = {
fields => [], fields => [],
isa => [ isa => [
{ namespace => "Asset_Thingy", { namespace => "Asset_Thingy",
tag => "thingy asset template variables" tag => "thingy asset template variables",
}, },
{ namespace => "Asset_Template", { namespace => "Asset_Template",
tag => "template variables" tag => "template variables",
}, },
], ],
variables => [ variables => [
@ -30,15 +30,15 @@ our $HELP = {
], ],
related => [ related => [
{ tag => 'edit thing template', { tag => 'edit thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'view thing template', { tag => 'view thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'search thing template', { tag => 'search thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
] ],
}, },
'edit thing template' => { 'edit thing template' => {
@ -47,10 +47,10 @@ our $HELP = {
fields => [], fields => [],
isa => [ isa => [
{ namespace => "Asset_Thingy", { namespace => "Asset_Thingy",
tag => "thingy asset template variables" tag => "thingy asset template variables",
}, },
{ namespace => "Asset_Template", { namespace => "Asset_Template",
tag => "template variables" tag => "template variables",
}, },
], ],
variables => [ variables => [
@ -76,26 +76,26 @@ our $HELP = {
] ]
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_start' 'name' => 'form_start',
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_submit' 'name' => 'form_submit',
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_end' 'name' => 'form_end',
} }
], ],
related => [ related => [
{ tag => 'thingy template', { tag => 'thingy template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'view thing template', { tag => 'view thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'search thing template', { tag => 'search thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
] ],
}, },
'view thing template' => { 'view thing template' => {
@ -103,10 +103,10 @@ our $HELP = {
body => '', body => '',
isa => [ isa => [
{ namespace => "Asset_Thingy", { namespace => "Asset_Thingy",
tag => "thingy asset template variables" tag => "thingy asset template variables",
}, },
{ namespace => "Asset_Template", { namespace => "Asset_Template",
tag => "template variables" tag => "template variables",
}, },
], ],
fields => [], fields => [],
@ -130,13 +130,13 @@ our $HELP = {
], ],
related => [ related => [
{ tag => 'edit thing template', { tag => 'edit thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'search thing template', { tag => 'search thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'thingy template', { tag => 'thingy template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
] ]
}, },
@ -147,10 +147,10 @@ our $HELP = {
fields => [], fields => [],
isa => [ isa => [
{ namespace => "Asset_Thingy", { namespace => "Asset_Thingy",
tag => "thingy asset template variables" tag => "thingy asset template variables",
}, },
{ namespace => "Asset_Template", { namespace => "Asset_Template",
tag => "template variables" tag => "template variables",
}, },
], ],
variables => [ variables => [
@ -169,13 +169,13 @@ our $HELP = {
] ]
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_start' 'name' => 'form_start',
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_submit' 'name' => 'form_submit',
}, },
{ 'required' => 1, { 'required' => 1,
'name' => 'form_end' 'name' => 'form_end',
}, },
{ 'name' => 'displayInSearchFields_loop', { 'name' => 'displayInSearchFields_loop',
'variables' => [ 'variables' => [
@ -201,24 +201,24 @@ our $HELP = {
], ],
related => [ related => [
{ tag => 'edit thing template', { tag => 'edit thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'view thing template', { tag => 'view thing template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
{ tag => 'thingy template', { tag => 'thingy template',
namespace => 'Asset_Thingy' namespace => 'Asset_Thingy',
}, },
] ],
}, },
'thingy asset template variables' => { 'thingy asset template variables' => {
private => 1, private => 1,
title => 'data form asset template variables title', title => 'thingy asset template variables title',
body => 'data form asset template variables body', body => 'thingy asset template variables body',
isa => [ isa => [
{ namespace => "Asset_Wobject", { namespace => "Asset_Wobject",
tag => "wobject template variables" tag => "wobject template variables",
}, },
], ],
fields => [], fields => [],
@ -227,8 +227,9 @@ our $HELP = {
{ 'name' => 'manage_url' }, { 'name' => 'manage_url' },
{ 'name' => 'addThing_url' }, { 'name' => 'addThing_url' },
], ],
related => [] related => [],
}, },
}; };
1; 1;

View file

@ -1,32 +1,31 @@
package WebGUI::i18n::English::Asset_Thingy; package WebGUI::i18n::English::Asset_Thingy;
our $I18N = { our $I18N = {
'cache timeout' => {
message => q|Cache Timeout|,
lastUpdated => 0,
},
'cache timeout' => { 'cache timeout help' => {
message => q|Cache Timeout|, message => q|Since all users will see this asset the same way, we can cache it for long periods of time to increase performance. How long should we cache it?<br /> <br /><b>UI Level: 8</b>|,
lastUpdated => 0 lastUpdated => 0,
}, },
'cache timeout help' => { 'assetName' => {
message => q|Since all users will see this asset the same way, we can cache it for long periods of time to increase performance. How long should we cache it?<br /> <br /><b>UI Level: 8</b>|, message => q|Thingy|,
lastUpdated => 0 lastUpdated => 1128830080,
}, context => 'Default name of all snippets',
},
'assetName' => {
message => q|Thingy|,
lastUpdated => 1128830080,
context => 'Default name of all snippets'
},
'template_label' => { 'template_label' => {
message => q|Thingy List Template|, message => q|Thingy List Template|,
lastUpdated => 1121703035, lastUpdated => 1121703035,
}, },
'add thing label' => { 'add thing label' => {
message => q|Add Thing|, message => q|Add Thing|,
lastUpdated => 1104630516, lastUpdated => 1104630516,
}, },
'default thing label' => { 'default thing label' => {
message => q|Default Thing|, message => q|Default Thing|,
@ -78,6 +77,11 @@ our $I18N = {
lastUpdated => 1104630516, lastUpdated => 1104630516,
}, },
'thing name description' => {
message => q|A human readable name for this thing.|,
lastUpdated => 1104630516,
},
'fields label' => { 'fields label' => {
message => q|Fields|, message => q|Fields|,
lastUpdated => 1104630516, lastUpdated => 1104630516,
@ -422,7 +426,12 @@ our $I18N = {
'default value description' => { 'default value description' => {
message => q|Enter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".|, message => q|Enter the default value (if any) for the field. For Yes/No fields, enter "yes" to select "Yes" and "no" to select "No".|,
lastUpdated => 1119156590, lastUpdated => 1119156590,
}, },
'default value subtext' => {
message => q|One per line.|,
lastUpdated => 1206025720,
},
'subtext label' => { 'subtext label' => {
message => q|Subtext|, message => q|Subtext|,
@ -570,6 +579,11 @@ you wish to appear, one per line.|,
lastUpdated => 1104630516, lastUpdated => 1104630516,
}, },
'thingy template description' => {
message => q|Choose a template for your thingy.|,
lastUpdated => 1206026038,
},
'view thing template label' => { 'view thing template label' => {
message => q|Thingy View Thing Template|, message => q|Thingy View Thing Template|,
lastUpdated => 1104630516, lastUpdated => 1104630516,
@ -877,6 +891,16 @@ search has been done.|,
message => q|Field does not have any values.|, message => q|Field does not have any values.|,
lastUpdated => 1104630516, lastUpdated => 1104630516,
}, },
'thingy asset template variables title' => {
message => q|Thingy Asset Template Variables|,
lastUpdated => 1164910794,
},
'thingy asset template variables body' => {
message => q|Every asset provides a set of variables to most of its templates based on the internal asset properties. Some of these variables may be useful, others may not.|,
lastUpdated => 1164910794,
},
}; };
1; 1;