Page 3 of 5

Posted: Tue 07 Jun 2011, 10:52
by CoronelN
Hello, is there any way to remove the message about removing the CD when rebooting ?

i looked at the code and tried commenting the msg but then it wont reboot at all.....

EDIT:

I understood the code :D

Now it reboots, no message waiting for me to remove a CD I dont have :D
However I would like it to have a timer... lets say 10 seconds to abort the shutdown.... just dont know how to implement it :P

Also I managed to add (simple copy paste)
to the Dialog for power off where it also asks to remove the CD
the options to hybernate and suspend.

Quite useful for netbook/notebook users.

I tried to attach the modified file but the forum dont allow me, PM if you like it.

Posted: Tue 07 Jun 2011, 20:51
by CoronelN
Toutu or French localization...

I live in france i am married to a french girl... I almost arrived to the point where i understand the french way of thinking....

I mention this regarding the GUI distortion on the French localization.

May I suggest:

Power-Off --> Arrêter le P.C becomes: Arreter
Reboot --> Redemarrer le P.C --> Redémarrer
Log-out --> Démarrer la Console --> Fermer X
Lock Screen --> Xlock bloquer l'écran --> Verrouiller


Restart X --> Relancer le serveur X --> Relancer X
Restart WM --> Relancer JWM --> Relancer WM (it restarts whatever you are running not just JWM)
Manage Task --> Gestionaire de tâche --> Gestion des tâches
Backup flies --> Gadmin - rsync --> sauvegarde (or other single word) that gadmin assumes you know what actually is gadmin....



See a pattern... Simplify the names of your localization and try to keep them as close as possible to the original english ones and the distorsion will be reduced...

I will give a try to spanish localization from the french file to feel i actually did something useful.

Cheerio

Posted: Wed 08 Jun 2011, 14:08
by radky
CoronelN wrote:Toutu or French localization...
Hi CoronelN,

Thank you for your thoughts and recommendations.

I'm preparing a localized version of PupShutdown, which should accept the variance of text strings in different languages. I'll keep you posted. :)

Posted: Wed 08 Jun 2011, 15:58
by CoronelN
Hey Radky

I see you made the dialog wider to accomodate for the long names.

I tried to dl the french hack but the link is broken, i would like to experiment with spanish.

By looking at your code localization is going to be a problem as there are lots of text inside the dialogs.

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...

I have not looked at the other files in your pet but if i get the time i can try to make a test dirty mod to see if we can read the VARs from a file and load them then u to anyone to localize/personalize the dialogs...

the drawback is that i am not much of a bash programmer but i get my way around

experiment with pupshutdown

Posted: Tue 21 Jun 2011, 00:21
by don570
If you want to experiment with another language
First install snow puppy and set language to French
then install this pet. I used Zigbert's method of localization.

__________________

PupShutdown-1.6

Posted: Tue 21 Jun 2011, 17:49
by L18L
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. 8)
see screenshot for Afrikaans and Française.

Code: Select all

#!/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: Select all

# 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: Select all

msginit --locale=es
will create es.po

Code: Select all

geany es.po

fill msgstr with Spanish translation and then

Code: Select all

msgfmt es.po -o - > /usr/share/locale/es/LC_MESSAGES/pupshutdown.mo

Start in Spanish:

Code: Select all

LANGUAGE=es /usr/local/PupShutdown/PupShutdown
If your locale is es do not need LANGUAGE=es :lol:

Re: PupShutdown-1.6

Posted: Tue 21 Jun 2011, 18:56
by radky
Hi Don570 and L18L,

Sorry for the delay in releasing a localized version of PupShutdown. :oops:
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 ! :D

Posted: Mon 27 Jun 2011, 22:34
by radky
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

review pupshutdown

Posted: Tue 28 Jun 2011, 22:02
by don570
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.

Re: review pupshutdown

Posted: Wed 29 Jun 2011, 04:42
by radky
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. :)

Posted: Wed 29 Jun 2011, 05:06
by radky
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.

review of pupShutdown 1.7.1

Posted: Thu 30 Jun 2011, 23:30
by don570
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.

_____________________________________________

Re: review of pupShutdown 1.7.1

Posted: Fri 01 Jul 2011, 02:37
by radky
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. :)

Thanks for including PupShutdown in the Fluppy 13 lang_pack.

radky

Posted: Fri 01 Jul 2011, 04:01
by Flash
Radky, I only just noticed this seriously useful program. :oops:

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. :(

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?

Posted: Fri 01 Jul 2011, 13:27
by radky
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. :(

Posted: Fri 01 Jul 2011, 14:01
by Flash
Thanks :)

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

idea for pupshutdown

Posted: Tue 05 Jul 2011, 00:27
by don570
Image

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.
___________________________________

Re: idea for pupshutdown

Posted: Tue 05 Jul 2011, 04:25
by radky
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 :) . 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.

Posted: Sun 10 Jul 2011, 15:20
by radky
Version 1.7.2 See main post.
- Added automatic recovery for aborted sessions of the Xdialog color selector.

Posted: Sun 18 Sep 2011, 21:44
by radky
Version 1.7.3. See main post.
-Added support for non-root environment (fido).