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 Fri 29 Aug 2014, 14:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
XToys GUI with 6 toys
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [24 Posts]   Goto page: Previous 1, 2
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 12 Jul 2012, 09:55    Post subject: XToys GUI with 6 toys
Subject description: internationalized
 

Thank you for this !
It is working nicely in racy53 so I could not resist the temptation of internationalizing your GUI

Code:
#!/bin/sh
#MultiPup GUI
#Created by "Puppyluvr" on 1/5/11

# i18n by L18L on 2012/07/12
export TEXTDOMAIN=X-ToysGUI

##--------variables---------->>
SCRIPT_DIR=`dirname $BASH_SOURCE`

export JWM_Display="
<window title=\"$(gettext 'X-Toys')\" icon-name=\"gtk-preferences\" window-position=\"1\">
 <vbox>
  <pixmap><input file>$SCRIPT_DIR/back.png</input></pixmap>
  <notebook labels=\"$(gettext 'X-Toys')|$(gettext 'Reset Rox')\">
   <vbox>
    <hbox>
     <text>
      <label>$(gettext 'XPenguins Desktop critters')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/penguin.png</input>
      <action>$SCRIPT_DIR/XPenguins/AppRun &</action>
     </button>
    </hbox>
        <hbox>
     <text>
      <label>$(gettext 'XFishtank Virtual Fishtank')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/Fish.png</input>
      <action>$SCRIPT_DIR/Xfishtank/AppRun &</action>
     </button>
    </hbox>
    <hbox>
     <text>
      <label>$(gettext 'XSnow Christmas Theme')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/XSnow/xsnow.png</input>
      <action>$SCRIPT_DIR/XSnow/AppRun &</action>
     </button>
    </hbox>
    <hbox>
     <text>
      <label>$(gettext 'XFireworks Desktop Fireworks')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/XFireworks/fireworks.png</input>
      <action>$SCRIPT_DIR/XFireworks/AppRun &</action>
     </button>
    </hbox>
    <hbox>
     <text>
      <label>$(gettext 'XEarth Your own Virtual Globe')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/XEarth/earth.png</input>
      <action>$SCRIPT_DIR/XEarth/AppRun &</action>
     </button>
    </hbox>
        <hbox>
     <text>
      <label>$(gettext 'XPuppy chases your curser')</label>
     </text>
     <button>
      <input file>$SCRIPT_DIR/XPuppy/puppy.png</input>
      <action>$SCRIPT_DIR/XPuppy/AppRun &</action>
     </button>
    </hbox>
   </vbox>
   <vbox>
    <hbox>
     <text>
      <label>$(gettext 'Click to restore Rox Desktop')</label>
     </text>
      <button>
      <input file>$SCRIPT_DIR/rox.png</input>
      <action>$SCRIPT_DIR/Rox &</action>
     </button>
    </hbox>
   </vbox>
  </notebook>
  <hbox>
   <text>
     <label>JRS ("Puppyluvr") GPL-2011</label>
     </text>
   <button>
    <label>$(gettext 'Exit')</label>
    <input file stock=\"gtk-quit\"></input>
    <action>EXIT:ok</action>
   </button>
  </hbox>
 </vbox>
</window>
"
##------------run------------->>
gtkdialog3 --program JWM_Display

##----------cleanup------------>>
unset JWM_Display

#clear
exit 0


Howto Create translation using momanager:

add /root/my-roxapps (that is where X-ToysGUI is located) to GETTEXTSCRIPTS in /usr/sbin/momanager; it is about line 133,
change it from
GETTEXTSCRIPTS="`find /bin /sbin /usr/bin .....
to
GETTEXTSCRIPTS="`find /root/my-roxapps /bin /sbin /usr/bin .....

When launching momanager you should find it in the frame "Scripts that do not have a mo file"

or

do NOT change momanager but copy above script to /root/my-applications/bin and momanager will find it.
X-ToysGUI.png
 Description   
 Filesize   69.86 KB
 Viewed   427 Time(s)

X-ToysGUI.png

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [24 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0543s ][ Queries: 12 (0.0082s) ][ GZIP on ]