From 317bec783161eff62cff054526304c97247e70e9 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 18 Dec 2013 15:05:00 +0100 Subject: make launch and install button translateable --- usr/share/mageiawelcome/css/style.css | 4 ++-- usr/share/mageiawelcome/helpers.py | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'usr') diff --git a/usr/share/mageiawelcome/css/style.css b/usr/share/mageiawelcome/css/style.css index c54bf4e..ca9fd31 100644 --- a/usr/share/mageiawelcome/css/style.css +++ b/usr/share/mageiawelcome/css/style.css @@ -88,8 +88,8 @@ ul.list li:hover {background:rgba(0, 0, 0, 0.2); } ul.list li h6 {margin:0;margin-top:6px;} ul.list li p.description {margin-top:0;} -ul.list li button.cmd,ul.list li button.inst {position:absolute; left:540px; top:28px;width:72px;float:right;} -ul.list li button.uninst {display:none;} +ul.list li button {position:absolute; left:520px; top:28px;float:right;}*/ + ul.list li.urpme {background:rgba(0, 0, 0, 0.4); background-image:url('../img/ok.png'); background-repeat:no-repeat; diff --git a/usr/share/mageiawelcome/helpers.py b/usr/share/mageiawelcome/helpers.py index 4f5c1dc..7bcf8b2 100644 --- a/usr/share/mageiawelcome/helpers.py +++ b/usr/share/mageiawelcome/helpers.py @@ -3,6 +3,12 @@ import csv import os +import gettext + +gettext.install("mageiawelcome") + +install = _("Install") +launch = _("Launch") def get_desktop_name(x): return { @@ -43,16 +49,16 @@ def get_listapp(): if (r[5] == 'false'): start_btn = "" else: - start_btn = "" + start_btn = "" if (r[6] != ''): label = "" + r[6] + "" else: label = "" if ( is_installed(r[1]) != 0):# NOT INSTALLED listapp += "
  • \ -
    " + r[2] + "

    " + r[4] + "

    " + start_btn + label + "
  • " +
    " + r[2] + "

    " + r[4] + "

    " + label + "" else: # INSTALLED listapp += "
  • \ -
    " + r[2] + "

    " + r[4] + "

    " + start_btn + label + "
  • " +
    " + r[2] + "

    " + r[4] + "

    " + start_btn + label + "" return listapp \ No newline at end of file -- cgit v1.2.1