PPowerOff 001

Miscellaneous tools
Post Reply
Message
Author
User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

PPowerOff 001

#1 Post by Iguleder »

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 :)

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 8)

EDIT: btw - it detects the window manager and capitalizes the first letter :wink:
Attachments
ppoweroff.png
(34.52 KiB) Downloaded 353 times
yad-0.12.1.pet
(67.89 KiB) Downloaded 363 times
yad-0.12.1.tar
sources, rename to .tar.xz
(140.76 KiB) Downloaded 362 times
ppoweroff-001.pet
(990 Bytes) Downloaded 416 times
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: PPowerOff 001

#2 Post by L18L »

Iguleder wrote:...
To localize this thingy, open /usr/bin/ppoweroff and see how locales work, it's very easy :)
...
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 Image
Greek Image
Hebrew Image
Russian Image

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

Attached pet installs it as gpoweroff so that there is no conflict.
Attachments
gpoweroff.pet
run it alternatively to ppoweroff
8 languages included
(3.74 KiB) Downloaded 364 times

Post Reply