Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 04:24
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
PPowerOff 001
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 10 Jun 2011, 14:36    Post_subject:  PPowerOff 001
Sub_title: A localizable poweroff/restart/restart X/logout dialog
 

Here's PPowerOff, a simple "End Session" dialog written in Bash with YAD.

The latter is attached and it's simply great. To localize this thingy, open /usr/bin/ppoweroff and see how locales work, it's very easy Smile

I want to try this with Shellementary (sort of a "gtkdialog" thingy for E17) - if it works fine, it's a nice gift for Macpup Cool

EDIT: btw - it detects the window manager and capitalizes the first letter Wink
ppoweroff.png
 Description   
 Filesize   34.52 KB
 Viewed   276 Time(s)

ppoweroff.png

yad-0.12.1.pet
Description 
pet

 Download 
Filename  yad-0.12.1.pet 
Filesize  67.89 KB 
Downloaded  166 Time(s) 
yad-0.12.1.tar
Description  sources, rename to .tar.xz
tar

 Download 
Filename  yad-0.12.1.tar 
Filesize  140.76 KB 
Downloaded  158 Time(s) 
ppoweroff-001.pet
Description 
pet

 Download 
Filename  ppoweroff-001.pet 
Filesize  990 Bytes 
Downloaded  181 Time(s) 

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
L18L

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sun 12 Jun 2011, 14:03    Post_subject: Re: PPowerOff 001
Sub_title: A localizable poweroff/restart/restart X/logout dialog
 

Iguleder wrote:
...
To localize this thingy, open /usr/bin/ppoweroff and see how locales work, it's very easy Smile
...

Please have a look at my version where localization is made by GNU gettext.

It is very easy too.
Advantage:
- You can inspect other languages without having installed the locale using the system variable LANGUAGE.
- no English language file
- improved usability by keyboard shortcuts e.g. _cancel makes Alt-C short for cancel. this can be done in every language.

e.g. to see it in arabic type in console:
LANGUAGE=ar /usr/bin/gpoweroff

Arabic
Greek
Hebrew
Russian

included languages are: ar de el es fr iw ru and sv (for nooby Smile )
The translations are, of course just g**gle's . (made by gxlat)

Attached pet installs it as gpoweroff so that there is no conflict.
gpoweroff.pet
Description  run it alternatively to ppoweroff
8 languages included
pet

 Download 
Filename  gpoweroff.pet 
Filesize  3.74 KB 
Downloaded  145 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0430s ][ Queries: 12 (0.0040s) ][ GZIP on ]