aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/manadm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-05-03 23:00:06 +0200
committerAngelo Naselli <anaselli@linux.it>2015-05-03 23:00:06 +0200
commit244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd (patch)
treee5b91e54853a0b6090c8365278a121e5ea82ef7e /scripts/manadm
parent7ab83c3b5dedb9f992198f1cabbc4f9386387026 (diff)
downloadcolin-keep-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar
colin-keep-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.gz
colin-keep-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.bz2
colin-keep-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.tar.xz
colin-keep-244c8e8f374c2bbbcbd6ee8b5b6d6abe6afd05dd.zip
Localized title
Diffstat (limited to 'scripts/manadm')
-rwxr-xr-xscripts/manadm19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/manadm b/scripts/manadm
index e78915d..2cd1997 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;