diff options
author | Maarten Vanraes <alien@mageia.org> | 2016-05-09 14:19:54 +0200 |
---|---|---|
committer | Maarten Vanraes <alien@mageia.org> | 2016-05-09 14:19:54 +0200 |
commit | 8b0da2bf29bb9ab89935417b9838458a69ddb2a3 (patch) | |
tree | 49826c716c884231a1fcb76f705373818f72cff9 /extras | |
parent | d58abf96a2d8b6b56e9d821392be009a1e91d153 (diff) | |
download | manatools-8b0da2bf29bb9ab89935417b9838458a69ddb2a3.tar manatools-8b0da2bf29bb9ab89935417b9838458a69ddb2a3.tar.gz manatools-8b0da2bf29bb9ab89935417b9838458a69ddb2a3.tar.bz2 manatools-8b0da2bf29bb9ab89935417b9838458a69ddb2a3.tar.xz manatools-8b0da2bf29bb9ab89935417b9838458a69ddb2a3.zip |
update template
Diffstat (limited to 'extras')
-rw-r--r-- | extras/module_templete/ManaTools/Module/ModuleTemplate.pm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/extras/module_templete/ManaTools/Module/ModuleTemplate.pm b/extras/module_templete/ManaTools/Module/ModuleTemplate.pm index 466c4b7c..712d335a 100644 --- a/extras/module_templete/ManaTools/Module/ModuleTemplate.pm +++ b/extras/module_templete/ManaTools/Module/ModuleTemplate.pm @@ -32,20 +32,18 @@ use ManaTools::Shared::GUI; extends qw( ManaTools::Module ); -#uncomment this and set the right icon -#has '+icon' => ( -# default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/ModuleTemplate.png'), -#); +# icon will be by default the name + .png ; if not, override _iconInitializer has '+name' => ( - lazy => 1, - builder => '_nameInitializer', + default => 'manatemplate', + required => 0, + init_arg => undef, ); -sub _nameInitializer { +sub _titleInitializer { my $self = shift; - return ($self->loc->N("Module template tools")); + return ($self->loc->N("%s - Module template tools", $self->name())); } |