diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-05-03 23:00:06 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-05-03 23:00:06 +0200 |
commit | 244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd (patch) | |
tree | e5b91e54853a0b6090c8365278a121e5ea82ef7e /scripts | |
parent | 7ab83c3b5dedb9f992198f1cabbc4f9386387026 (diff) | |
download | manatools-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar manatools-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.gz manatools-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.bz2 manatools-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.xz manatools-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.zip |
Localized title
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/manadm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/manadm b/scripts/manadm index e78915d1..2cd1997d 100755 --- a/scripts/manadm +++ b/scripts/manadm @@ -19,20 +19,27 @@ # along with ManaTools. If not, see <http://www.gnu.org/licenses/>. use Modern::Perl '2011'; use autodie; + +use ManaTools::Shared; +use ManaTools::Shared::Locales; use ManaTools::Module::DisplayManager; use yui; -my $wm_icon = "/usr/share/mcc/themes/default/drakedm-mdk.png"; -my $wm_name = "Display Manager"; +my $locale_dir = ManaTools::Shared::custom_locale_dir();; +my $loc = ManaTools::Shared::Locales->new( + domain_name => 'manatools', + dir_name => $locale_dir, +); + +my $wm_name = $loc->N("Display Manager"); yui::YUI::app()->setApplicationTitle($wm_name); -yui::YUI::app()->setApplicationIcon($wm_icon); my $dmanager = ManaTools::Module::DisplayManager->new({ - icon => $wm_icon, - name => $wm_name - }); + name => $wm_name, +}); + $dmanager->start(); 1; |