diff -Nur squeezeplay/squeezeplay_desktop/share/applets/PowerOff.orig/PowerOffMeta.lua squeezeplay/squeezeplay_desktop/share/applets/PowerOff/PowerOffMeta.lua --- squeezeplay/squeezeplay_desktop/share/applets/PowerOff.orig/PowerOffMeta.lua 1970-01-01 01:00:00.000000000 +0100 +++ squeezeplay/squeezeplay_desktop/share/applets/PowerOff/PowerOffMeta.lua 2013-02-23 23:57:01.000000000 +0100 @@ -0,0 +1,68 @@ + +--[[ +=head1 NAME + +applets.PowerOff.PowerOffMeta - PowerOff meta-info + +=head1 DESCRIPTION + +See L. + +=head1 FUNCTIONS + +See L for a description of standard applet meta functions. + +=cut +--]] + + +local oo = require("loop.simple") + +local AppletMeta = require("jive.AppletMeta") +local os = require("os") + +local appletManager = appletManager +local jiveMain = jiveMain + +local EVENT_CONSUME = jive.ui.EVENT_CONSUME +local EVENT_QUIT = jive.ui.EVENT_QUIT + + +module(...) +oo.class(_M, AppletMeta) + + +function jiveVersion(self) + return 1, 1 +end + + +function registerApplet(self) +end + +function configureApplet(self) + -- add ourselves to the end of the main menu + jiveMain:addItem({ + id = 'appletPowerOff', + iconStyle = 'hm_quit', + node = 'home', + text = self:string("POWEROFF"), + callback = function() + os.execute("/sbin/shutdown") + return (EVENT_CONSUME | EVENT_QUIT) + end, + weight = 1010, + }) +end + + +--[[ + +=head1 LICENSE + +Copyright 2010 Logitech. All Rights Reserved. + +This file is licensed under BSD. Please see the LICENSE file for details. + +=cut +--]] diff -Nur squeezeplay/squeezeplay_desktop/share/applets/PowerOff.orig/strings.txt squeezeplay/squeezeplay_desktop/share/applets/PowerOff/strings.txt --- squeezeplay/squeezeplay_desktop/share/applets/PowerOff.orig/strings.txt 1970-01-01 01:00:00.000000000 +0100 +++ squeezeplay/squeezeplay_desktop/share/applets/PowerOff/strings.txt 2013-02-23 16:46:24.000000000 +0100 @@ -0,0 +1,19 @@ +# +# The two letter codes are defined by ISO 639-1 +# http://en.wikipedia.org/wiki/List_of_ISO_639_codes + +POWEROFF + CS Ukončit + DA Afslut + DE Ausschalten + EN Power off + ES Salir + FI Lopeta + FR Quitter + IT Esci + NL Stoppen + NO Avslutt + PL Zamknij + RU Выйти + SV Avsluta +