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, 21:00
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
PupShutdown-2.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 6 [90 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
L18L

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

PostPosted: Tue 21 Jun 2011, 13:49    Post subject: PupShutdown-1.6
Subject description: internationalization
 

CoronelN wrote:
the ideal would be to replace them all with a VAR and call it in from your code but i dont know how efficient that will be as i understand that bash even thou powerful is not a complete programming enviroment and maybe it will be too long a code + constant VAR calling etc...

Using just GNU gettext is working in shell. Cool
see screenshot for Afrikaans and Française.
Code:
#!/bin/bash
#PupShutdown 1.6
#Copyright 2011 GPL3
#Roger Grider (radky)
# i18n L18L
export TEXTDOMAIN=pupshutdown
.
.
.
#ENVIRONMENT_LANG=`echo $LANG | sed "s/\(..\).*/\1/"` ##detect language
#case $ENVIRONMENT_LANG in
#af)   PUP_POWEROFF="Power-Off   "
#   PUP_REBOOT="   Herlaai      "
#   PUP_PROMPT="Aan Prompt "
#   PUP_LOCK=" Skermsluit  "
#   PUP_RESTART="Herbegin X  "
#   PUP_RESTARTWM="Herbegin WM "
#   PUP_TASK="Beheer Taak   "
#   PUP_BACKUP=" Backup Files  " ;;
#*)   PUP_POWEROFF="  Power-Off    "
#   PUP_REBOOT="    Reboot      "
#   PUP_PROMPT="   Log-Out      "
#   PUP_LOCK="Lock Screen   "
#   PUP_RESTART="  Restart X     "
#   PUP_RESTARTWM=" Restart WM   "
#   PUP_TASK="Manage Task   "
#   PUP_BACKUP=" Backup Files   " ;;
#esac
   PUP_POWEROFF=$(gettext "  Power-Off    ")
   PUP_REBOOT=$(gettext "    Reboot      ")
   PUP_PROMPT=$(gettext "   Log-Out      ")
   PUP_LOCK=$(gettext "Lock Screen   ")
   PUP_RESTART=$(gettext "  Restart X     ")
   PUP_RESTARTWM=$(gettext " Restart WM   ")
   PUP_TASK=$(gettext "Manage Task   ")
   PUP_BACKUP=$(gettext " Backup Files   ")
#About dlg...
.

And here is the language template file pupshutdown.pot
Code:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PupShutdown 1.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-06-21 17:26+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: PupShutdown:85
#, sh-format
msgid "  Power-Off    "
msgstr ""

#: PupShutdown:86
#, sh-format
msgid "    Reboot      "
msgstr ""

#: PupShutdown:87
#, sh-format
msgid "   Log-Out      "
msgstr ""

#: PupShutdown:88
#, sh-format
msgid "Lock Screen   "
msgstr ""

#: PupShutdown:89
#, sh-format
msgid "  Restart X     "
msgstr ""

#: PupShutdown:90
#, sh-format
msgid " Restart WM   "
msgstr ""

#: PupShutdown:91
#, sh-format
msgid "Manage Task   "
msgstr ""

#: PupShutdown:92
#, sh-format
msgid " Backup Files   "
msgstr ""

make spanish:
Code:
msginit --locale=es
will create es.po
Code:
geany es.po

fill msgstr with Spanish translation and then
Code:
msgfmt es.po -o - > /usr/share/locale/es/LC_MESSAGES/pupshutdown.mo

Start in Spanish:
Code:
LANGUAGE=es /usr/local/PupShutdown/PupShutdown

If your locale is es do not need LANGUAGE=es Laughing
PupShutdown-1.6.png
 Description   
 Filesize   39.64 KB
 Viewed   2017 Time(s)

PupShutdown-1.6.png

Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Tue 21 Jun 2011, 14:56    Post subject: Re: PupShutdown-1.6
Subject description: internationalization
 

Hi Don570 and L18L,

Sorry for the delay in releasing a localized version of PupShutdown. Embarassed
I've been involved in other projects, but I hope to upload the next version of PupShutdown in the near future.

Thanks for your patience ! Very Happy
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Mon 27 Jun 2011, 18:34    Post subject:
Subject description: PupShutdown-1.7
 

Version 1.7. See main post.
1 - Enhanced access to configuration options.
2 - Enhanced access to suspend features in ACPI compliant notebooks.
3 - Added option to enable or disable the ‘Remove CD” dialog at shutdown.
4 - Added options to hide/show the Label Name and Graphic Logo.
5 - Added support for the Xdialog font-color selector in 64-bit Puppy derivatives (with continued support for 32-bit derivatives).
6 - Added support for the Yad and Zenity font-color selectors in 32-bit and 64-bit Puppy derivatives.
7 - Added a localized version of PupShutdown with a simplified graphical user interface and reduced text burden. Currently, this version is localized for English and French -- thank you esmourguit, vezuve, Don570, and L18L.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3341
Location: Ontario

PostPosted: Tue 28 Jun 2011, 18:02    Post subject: review pupshutdown  

It works great in French and English!!

I have a suggestion for an improvement.

I find it a bit confusing that a couple of the buttons
do nothing when first clicked.

When the application is run for the first time,
you should check for the existence of 'pmirror'
and 'pprocess' and if they are installed you
should connect them to the corresponding
buttons in the window.
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Wed 29 Jun 2011, 00:42    Post subject: Re: review pupshutdown  

don570 wrote:
It works great in French and English!!

I have a suggestion for an improvement.

I find it a bit confusing that a couple of the buttons
do nothing when first clicked.

When the application is run for the first time,
you should check for the existence of 'pmirror'
and 'pprocess' and if they are installed you
should connect them to the corresponding
buttons in the window.


Thanks for the suggestion. An update is on the way. Smile
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Wed 29 Jun 2011, 01:06    Post subject:
Subject description: PupShutdown-1.7.1
 

Version 1.7.1 See main post.
1 - New feature: when PupShutdown is first installed, the updated pinstall script checks for file-backup and task-manager applications, and automatically assigns default selections to the GUI buttons. (thank you Don570)
2 - Bug Fix: The Yad and Zenity font-color selectors will now recall Hex color values from the prior session. This auto-recall feature is not enabled for the Xdialog color selector.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3341
Location: Ontario

PostPosted: Thu 30 Jun 2011, 19:30    Post subject: review of pupShutdown 1.7.1  

I've installed the software in Fluppy 13 lang_pack(French version)
And it's a great addition.

Some observations:

The heading of the window in French is 'PSD-LOC'
Something French or even just PupShutdown
would be preferable.

You have a choice of Labels or headings. I would like
'Fluppy' to be on that list.

When you click on the 'Log Out' button
there is no warning. A warning of loss of data would be nice.

_____________________________________________
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Thu 30 Jun 2011, 22:37    Post subject: Re: review of pupShutdown 1.7.1
Subject description: PupShutdown-LOC-1.7.2
 

don570 wrote:
I've installed the software in Fluppy 13 lang_pack(French version)
And it's a great addition.

Some observations:

The heading of the window in French is 'PSD-LOC'
Something French or even just PupShutdown
would be preferable.

You have a choice of Labels or headings. I would like
'Fluppy' to be on that list.

When you click on the 'Log Out' button
there is no warning. A warning of loss of data would be nice.

Hi don570,

Thank you for the suggestions.

For the localized version only, I will upload PupShutdown-LOC-1.7.2 which should address your observations. The heading of the main GUI is now PupShutdown. Fluppy has been added to the Name drop-down list. Keep in mind, for the Name entry field, you can type any name you wish, and it will remain until you change it at a later date. Lastly, tool-tip warnings have been added to the Power-Off, Reboot and Log-Out buttons. You may want to check the French translation. Smile

Thanks for including PupShutdown in the Fluppy 13 lang_pack.

radky
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11119
Location: Arizona USA

PostPosted: Fri 01 Jul 2011, 00:01    Post subject:  

Radky, I only just noticed this seriously useful program. Embarassed

Or rather, it will be useful if it solves a serious shortcoming of the standard shutdown for multisession Puppy. The problem occurs only rarely, thank goodness; when it does happen, it's a nasty one.

Here's the problem: when I choose shut down -> Save to CD, if things don't go exactly right for some reason, there's no way to back out of the shutdown sequence and return to the desktop so I can try to fix whatever is wrong. I have to just power off the computer and lose all the changes I wanted to save to the CD. Sad

I will try your program, but I won't have time to thoroughly test it for a while. Can you tell me if it allows me to back out of a stalled shutdown and return to the desktop?

_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Fri 01 Jul 2011, 09:27    Post subject:  

Flash wrote:
Radky, I only just noticed this seriously useful program.

Or rather, it will be useful if it solves a serious shortcoming of the standard shutdown for multisession Puppy...Here's the problem: when I choose shut down -> Save to CD, if things don't go exactly right for some reason, there's no way to back out of the shutdown sequence and return to the desktop so I can try to fix whatever is wrong. I have to just power off the computer and lose all the changes I wanted to save to the CD...Can you tell me if it allows me to back out of the shutdown and return to the desktop?

Hi Flash,

PupShutdown is a simple GUI for selecting different shutdown options available in most Puppy builds. When you select the 'Power-Off' (or 'Reboot') option for your multisession shutdown, the PupShutdown program quickly exits after calling Puppy's wmpoweroff (or wmreboot) script, at which point the shutdown process is fully controlled by that Puppy script.

davids45 wrote:
I've been having a possibly similar problem to Flash with my new desktop set-up and most recent Puppies based on Lupu-525...The computer has a radeon HD5450 graphics card...Boot parameters like radeon.modeswitch=1 have been suggested but I don't know I have a Frugal Save-file problem until it's too late.

Hi davids45,

Your frustration is shared by many. The "radeon.nomodeset=1" parameter is frequently helpful for display problems with radeon graphics, but resolving issues with graphics recognition can be frustrating. Unfortunately, PupShutdown is just a menu program, with no solution for your problem. Sad
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11119
Location: Arizona USA

PostPosted: Fri 01 Jul 2011, 10:01    Post subject:  

Thanks Smile

(I split David's post from this thread and started its own thread with it, in the Beginners section.)

_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3341
Location: Ontario

PostPosted: Mon 04 Jul 2011, 20:27    Post subject: idea for pupshutdown  



This is an idea I had .

This would avoid the need of a preference setting
for a remove CD warning.

The user would just have to click the button once.

______________________________________________--

Another problem I found is with the color setter with Fluppy013

/usr/bin/gcolor2 isn't launched. Very minor.
___________________________________
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Tue 05 Jul 2011, 00:25    Post subject: Re: idea for pupshutdown  

don570 wrote:
This would avoid the need of a preference setting for a remove CD warning. The user would just have to click the button once.

Hi don570,

If the shutdown dialog is permanently dismissed by the one-time button click, a user would not have the option to enable the dialog at a later date. Of course, this assumes a few may actually prefer the optional dialog Smile . I’ll keep your suggestion in mind, but I think the current enable/disable option is very easy to access in Preferences, and this may appeal to those want more control of their Puppy configuration.

don570 wrote:
Another problem I found is with the color setter with Fluppy013... /usr/bin/gcolor2 isn't launched.

As fate would have it, the Xdialog ‘colorsel’ box option calls the GTK+ color selector (not gcolor2).
http://xdialog.free.fr/doc/box.html#COLORSEL
Also, PupShutdown now support the Yad and Zenity color selectors.
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Sun 10 Jul 2011, 11:20    Post subject:
Subject description: PupShutdown-1.7.2
 

Version 1.7.2 See main post.
- Added automatic recovery for aborted sessions of the Xdialog color selector.
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 464

PostPosted: Sun 18 Sep 2011, 17:44    Post subject:
Subject description: PupShutdown-1.7.3
 

Version 1.7.3. See main post.
-Added support for non-root environment (fido).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [90 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1052s ][ Queries: 13 (0.0056s) ][ GZIP on ]