done with i18n.
This commit is contained in:
parent
ba7d02f0d2
commit
68e901d98c
6 changed files with 154 additions and 284 deletions
|
|
@ -86,7 +86,7 @@ sub view {
|
|||
#Set some template variables
|
||||
|
||||
#Build list of searches as an array
|
||||
my $defaults = $self->getValue("predefinedSearches");
|
||||
# my $defaults = $self->getValue("predefinedSearches");
|
||||
|
||||
return $self->processTemplate(\%var, $self->get("templateId"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,27 +45,28 @@ defines wobject properties for WeatherData instances
|
|||
sub definition {
|
||||
my $class = shift;
|
||||
my $definition = shift;
|
||||
my $i18n = WebGUI::International->new("Asset_WeatherData");
|
||||
my $properties = {
|
||||
templateId =>{
|
||||
fieldType=>"template",
|
||||
tab=>"display",
|
||||
defaultValue=>'WeatherDataTmpl0000001',
|
||||
namespace=>"WeatherData",
|
||||
hoverHelp=>WebGUI::International::get('article template description','Asset_Article'),
|
||||
label=>WebGUI::International::get(72,"Asset_Article")
|
||||
hoverHelp=>$i18n->get("Current Weather Conditions Template to use"),
|
||||
label=>$i18n->get("Template")
|
||||
},
|
||||
locations=>{
|
||||
fieldType=>"textarea",
|
||||
defaultValue=>"Grayslake,IL",
|
||||
tab=>"properties",
|
||||
hoverHelp=>WebGUI::International::get('article template description','Asset_Article'),
|
||||
label=>WebGUI::International::get(72,"Asset_Article")
|
||||
hoverHelp=>$i18n->get("Your list of default weather locations"),
|
||||
label=>$i18n->get("Default Locations")
|
||||
},
|
||||
};
|
||||
push(@{$definition}, {
|
||||
tableName=>'WeatherData',
|
||||
className=>'WebGUI::Asset::Wobject::WeatherData',
|
||||
assetName=>'WeatherData',
|
||||
assetName=>$i18n->get("WeatherData"),
|
||||
icon=>'weatherData.gif',
|
||||
autoGenerateForms=>1,
|
||||
properties=>$properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue