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 01 Oct 2014, 00:23
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 3 of 6 [90 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
radky

Joined: 02 May 2010
Posts: 448

PostPosted: Wed 20 Apr 2011, 14:51    Post subject:  

Quote:
An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.

ETP,
Launching either PupShutdown or PupControl’s Shutdown manager from the quick launch menu of IceWM is an interesting approach. Thanks for sharing. Smile


Quote:
Works eggzellently!

mickee,
Thanks for your positive comments. By the way, you and ETP have great avatars. Very Happy
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Wed 20 Apr 2011, 15:18    Post subject: localised version of PupShutdown-16  

Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.

http://www.murga-linux.com/puppy/viewtopic.php?search_id=420131194&t=63163

http://www.murga-linux.com/puppy/viewtopic.php?t=66836

Using Zigbert's method I did a quick and dirty localisation so that I
could switch between French and English by changing the country.

You might be interested in the code. It's quite simple.
Install this pet on Snow puppy and switch back and forth between
French and English.

http://www.filedropper.com/pupshutdown-snow-16

Here is what it looks like in French. I had to put in hard blank spaces
to get the buttons to look symmetrical.


______________________________________________________________
Back to top
View user's profile Send private message 
mickee


Joined: 08 Feb 2011
Posts: 212
Location: Saskatoon SK Canada, Gateway 5300 Laptop, 600MHz Celeron, 384MB RAM, lucid puppy 5.2 (Full Install)

PostPosted: Wed 20 Apr 2011, 16:11    Post subject:  

radky wrote:
mickee,
Thanks for your positive comments. By the way, you and ETP have great avatars. Very Happy


I use that avatar alot. It's actually a 6 inch statue I have, complete with lots of drool. It's from "Mickey and The Runaway Brain" - a sort of Dr. Jekyl/Mr. Hyde cartoon. This version of Mickey Mouse is from when he traded brains with his monster. The funnier part was mickey's voice coming out of the gigantic monster's body, LOL.

_________________

Linux is NOT Windows. Doesn't PRETEND to be, Doesn't WANT to be; Don't try to MAKE it be.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
radky

Joined: 02 May 2010
Posts: 448

PostPosted: Wed 20 Apr 2011, 22:10    Post subject: Re: localised version of PupShutdown-16  

don570 wrote:
Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.

Thank you for promoting the importance of GUI localization. As true for most in the Puppy community, I have followed your recent forum posts with considerable interest, and I applaud your insight and dedication.

Most of my applications, including PupShutdown, are structured for a certain GUI symmetry that I try to maintain for all global font sizes (72-144 dpi). For some graphical interfaces, a text string that looks OK at 78-dpi may distort the GUI at higher dpi settings. In some instances, by simply adding a few extra characters to certain text strings, a GUI can distort significantly (see below for your example of French localization in PupShutdown at 90-dpi screen resolution).

I could change the format of PupShutdown by increasing the size of the main GUI, and by extending the horizontal dimension of the access buttons, but it would be difficult to anticipate a size that would be sufficient for the translated text of all locales. Also, the large access buttons would appear disproportionate when the localized text strings are small. Even so, I’ll continue to look for ways to embrace localization. Thanks again for your suggestions. Smile
PSD-En.png
 Description   
 Filesize   45.24 KB
 Viewed   1373 Time(s)

PSD-En.png

PSD-Fr.png
 Description   
 Filesize   49.82 KB
 Viewed   1367 Time(s)

PSD-Fr.png

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


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Sat 23 Apr 2011, 11:26    Post subject: Fluppy shutdown app  

Jemimah has written a similar shutdown application for Fluppy 013
It is very simple. Just an hbox and then 3 vboxes inside that hbox.
There is no attempt by Jemimah to control the width of a button.
It works well but doesn't look very fancy...... but then it was probably
written in a rush.

Here's a picture of the French version from

http://www.murga-linux.com/puppy/viewtopic.php?t=65222



___________________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Sat 23 Apr 2011, 11:52    Post subject: script to show width of button  

I did a quick experiment to see if buttons can be placed easily
in a window in a script.

Zigbert likes to specify the width of his buttons (and he's the expert)

So I looked at some of his code and made a script.

I made an hbox and then put 4 vboxes inside.

I then experimented with each of the vboxes.

Enclosed is the screen image.

The left hand side vbox is just some non-breaking characters.

The next vbox has a width-request of 100.

The next vbox has a width-request of 200.

Then the far right vbox has a width-request of 100,
but to make the space open I put a few non-breaking characters
in the label <label>   </label> .

It seems to work well.



Here's the final script.
Code:

#!/bin/sh

export shutdown="
<window title=\"Experiment\" icon-name=\"gtk-stop\">

<hbox>

   <vbox>
   <text><label>             </label></text>   
   </vbox>

   <vbox>
   <text width-request=\"100\"><label>First button</label></text>
   <button> 
      <label>Lock</label>   
      <input file icon=\"lock48\"></input>
      <action>/usr/local/apps/Xlock/AppRun &</action>
      <action type=\"exit\">Exit-NOW</action>
   </button>
   </vbox>

   <vbox>
   <text width-request=\"200\"><label>Second button</label></text>
   <button>   
       <label>Lock</label>   
       <input file icon=\"lock48\"></input>
       <action>/usr/local/apps/Xlock/AppRun &</action>
       <action type=\"exit\">Exit-NOW</action>
   </button>
   </vbox>
   
    <vbox>
    <text width-request=\"100\"><label>   </label></text>
    </vbox>
   
</hbox>
</window>
"

#echo "$shutdown" | gtkdialog --stdin
gtkdialog3 --program=shutdown --center

unset shutdown
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Sat 23 Apr 2011, 11:56    Post subject: Barry Kauler localisation  

Barry Kauler talked about localising the first screen in Puppy
on this thread

http://murga-linux.com/puppy/viewtopic.php?t=48901&start=300


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

Joined: 02 May 2010
Posts: 448

PostPosted: Sat 23 Apr 2011, 13:58    Post subject:  

don570 wrote:
Jemimah has written a similar shutdown application for Fluppy 013

Yes, PupShutdown is just one of many GUI options available to close a Puppy session. Jemimah, runtt21, sc0ttman, tazoc, ttuuxxx, zigbert and other developers have included very nice shutdown managers in their Puppy derivatives. Of course, there is also the default shutdown manager available in the menu of all Puppy releases. The choices are many, and localization for many of those would be relatively easy. Smile

don570 wrote:
I did a quick experiment to see if buttons can be placed easily in a window in a script.

Yes, button placement in gtkdialog scripts is relatively easy, and PupShutdown incorporates variable button width-request values to automatically compensate for text-strings which vary in length as the global font size is changed. The question (in my mind) is how to best structure the PupShutdown GUI to accommodate the variability in text-string width inherent in various translations. For example, "Restart X" becomes "Relancer le serveur X" in your example of the French translation for PupShutdown, and that translated text string requires a very wide button when viewed at high screen dpi values, such as 144 dpi. Structuring a gtkdialog GUI to look OK in a narrow range of screen dpi values is not difficult. However, a GUI designed to look OK at 78-96 screen dpi, may not retain the same symmetry or visual appeal when viewed at higher screen dpi values. I will continue to experiment. Smile
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Sat 23 Apr 2011, 16:18    Post subject: suggestion for pupshutdown  

Idea I have a suggestion to help localization.

I suggest that you have two interfaces built into one program.
The interface that is in use would depend on the LANG variable.

For instance if LANG is English then the user gets your attractive interface.

Then when the user changes to another LANG
such as French you would use an inferface like Jemimah's program
which is more favorable to localization.

I don't know of any program that does a change of inferface
simply due to localization but I think it is a possibility.
Zigbert's method of localization is compatible with this idea, I think.
______________________________________
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 448

PostPosted: Sat 23 Apr 2011, 21:15    Post subject: Re: suggestion for pupshutdown  

don570 wrote:
Idea I suggest that you have two interfaces built into one program. The interface that is in use would depend on the LANG variable.

Thanks for the suggestion. I'll think about it for a few days. Smile
Back to top
View user's profile Send private message 
CoronelN

Joined: 22 Dec 2010
Posts: 68

PostPosted: Tue 07 Jun 2011, 06:52    Post subject:  

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 Very Happy

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

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.
PSDhack.png
 Description   PSD dialog
 Filesize   33.46 KB
 Viewed   1071 Time(s)

PSDhack.png

PSDhackedpoweroffDialog.png
 Description   Power off Dialog
 Filesize   55.47 KB
 Viewed   1056 Time(s)

PSDhackedpoweroffDialog.png

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

Joined: 22 Dec 2010
Posts: 68

PostPosted: Tue 07 Jun 2011, 16:51    Post subject:  

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
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 448

PostPosted: Wed 08 Jun 2011, 10:08    Post subject:  

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. Smile
PSD-Loc.png
 Description   
 Filesize   33.01 KB
 Viewed   1088 Time(s)

PSD-Loc.png

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

Joined: 22 Dec 2010
Posts: 68

PostPosted: Wed 08 Jun 2011, 11:58    Post subject:  

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
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3307
Location: Ontario

PostPosted: Mon 20 Jun 2011, 20:21    Post subject: experiment with pupshutdown  

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-snow-1.6.pet
Description  Experiment with pup shutdown
pet

 Download 
Filename  PupShutdown-snow-1.6.pet 
Filesize  64.51 KB 
Downloaded  537 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 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.1063s ][ Queries: 13 (0.0060s) ][ GZIP on ]