diff options
Diffstat (limited to 'lib/ManaTools/Module/Hosts.pm')
-rw-r--r-- | lib/ManaTools/Module/Hosts.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/ManaTools/Module/Hosts.pm b/lib/ManaTools/Module/Hosts.pm index 2fc61271..4e8abcda 100644 --- a/lib/ManaTools/Module/Hosts.pm +++ b/lib/ManaTools/Module/Hosts.pm @@ -41,9 +41,16 @@ has '+icon' => ( ); has '+name' => ( - default => "Hostmanager", + lazy => 1, + builder => '_nameInitializer', ); +sub _nameInitializer { + my $self = shift; + + return ($self->loc->N("manahost - manage hosts definitions")); +} + =head1 VERSION Version 1.0.0 @@ -397,7 +404,6 @@ sub _manageHostsDialog { my $appIcon = yui::YUI::app()->applicationIcon(); ## set new title to get it in dialog my $newTitle = $self->loc->N("Manage hosts definitions"); - yui::YUI::app()->setApplicationTitle($newTitle); my $factory = yui::YUI::widgetFactory; my $optional = yui::YUI::optionalWidgetFactory; |