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 Tue 23 Dec 2014, 00:36
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Programs and scripts that are not yet internationalized
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Sat 11 May 2013, 15:39    Post subject:  

L18L thank you for Pdisk and Pudd.
Snap2 it is other program - http://sourceforge.net/projects/snap2/. In Puppy in menu/utilities.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2621
Location: www.eussenheim.de/

PostPosted: Mon 13 May 2013, 08:18    Post subject: Programs and scripts that are not yet internationalized
Subject description: Snap2
 

robwoj44 wrote:
Snap2 it is other program - http://sourceforge.net/projects/snap2/. In Puppy in menu/utilities.

Sorry
Code:
# grep nap2 .jwmrc
#
did not find it in actual Puppy Precise.

I see: snap2-4.21 is in puppy-noarch-official
snap2-4.25.pet is at http://files.crnatural.net/snap2/

lstandish is the forum name of snap2 developer Lloyd Standish.

Hope he helps Wink
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Tue 14 May 2013, 03:50    Post subject:  

Thank you for the info about lstandish. I contacted him directly.
Snap2 is still in Wary/Racy 5.5 and slacko 5.5.
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Tue 14 May 2013, 07:49    Post subject:  

PMirrorget internationalized

/usr/bin/pmwget
Code:
#! /bin/bash
# Pmwget created by gposil with thanks to Lobster for Pwget
# April 2009 GPL v3 License
# http://gposil.netne.net
#2009 gposil: version 0.2
#121018 bk: bug fixes, version 0.2.1.
#130514 gettexted by robwoj44

. gettext.sh
export TEXTDOMAIN=pmwget
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

export HELP_DIALOG='
<window title="'$(gettext 'PMirrorget - Help')'" resizable="false">
  <vbox>
    <text>
      <label>'$(gettext 'PMirrorget allows you to download an entire web page and its text linked pages to a folder on your PC. Copy and paste the URL you wish to download. Use the folder selector to choose the destination. It is designed primarily for grabbing manuals and wiki pages without sifting through them, so you can view them later.')'</label>
      <variable>HELP_DLG_MSG</variable>
    </text>
    <button>
      <label>'$(gettext 'Close')'</label>
      <action type="closewindow">HELP_DLG_MSG</action>
    </button>
  </vbox>
  </window>
'

export Pmwget='
<window title="'$(gettext 'PMirrorget - 0.2.1 - Site Grabber Utility')'" resizable="false">
<vbox>
 <hbox>
  <text><label>'$(gettext 'Copy and Paste or type the URL of the required site into URL. Choose your destination folder and then Grab It Now!')'</label></text>
 </hbox>
 <frame>
 <hbox>
  <text><label> '$(gettext ' URL:    ')'</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
 <hbox>
  <text><label>'$(gettext 'Folder:')'</label></text>
  <entry accept="directory"><variable>DEST</variable><input>/tmp/pm_mirror_dir</input></entry>
  <button>
   <input file stock="gtk-open"></input>
   <action type="fileselect">DEST</action>
   <action>refresh:DEST</action>
  </button>
 </hbox>
 </frame>
 <hbox>
 <frame>
  <button help>
<action type="launch">HELP_DIALOG</action>
  </button>
  <button cancel></button>
  </frame>
  <button>
  <input file>/usr/local/lib/X11/mini-icons/mini.checkmark.xpm</input>
       <label>'$(gettext 'Grab It Now!')' </label>
       <action type="exit">OK</action>
  </button>

 </hbox>
</vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog4 --program=Pmwget --center); do
   eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
  rxvt -name PMirrorget -bg "#F3F2DF" -e wget -m -c -k -r -np -P "$DEST" $SOURCE
  rox -d "$DEST"
fi
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Wed 15 May 2013, 04:41    Post subject:  

Puppy Axel download accelerator internationalized

/usr/local/bin/puppydownload
Code:
#!/bin/sh

#my own humble download accelerator frontend for axel.
#(c) copyright 2004 Barry Kauler www.goosee.com/puppy

#choices:
# multiple servers or one
# if one, then number connections
# destination path.
#130514 gettexted by robwoj44

. gettext.sh
export TEXTDOMAIN=puppydownload
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

COMMANDTAIL="$@"

if [ "$COMMANDTAIL" ];then
 #this means that a url has been passed in on the commandline.
 echo "$COMMANDTAIL" | grep -i "http://"
 if [ ! $? -eq 0 ];then #=0 if found.
  echo "$COMMANDTAIL" | grep -i "ftp://"
  if [ ! $? -eq 0 ];then
   Xdialog --wmclass "puppyaxel" --title "'$(gettext 'Puppy download accelerator')'" --no-buttons --icon "/usr/local/lib/X11/pixmaps/warning24.xpm" --infobox "'(gettext 'The URL is incomplete. It needs http:// or ftp:// prefix.')'" 0 0 20000 &
  fi
 fi
fi

DOSETUPLOOP="true"
while [ "$DOSETUPLOOP" = "true" ];do
 DOSETUPLOOP="false"

RETSTR=`Xdialog --wmclass "puppyaxel" --title "$(gettext 'Puppy Axel download accelerator')" --stdout --left --separator "|" --icon "/usr/share/images/ftp64.png" --check "$(gettext 'Bypass any proxy server')" off --3inputsbox "$(gettext 'This is a frontend for the Axel download accelerator.\nIt is capable of multiple connections to the same server,\nor download simultaneously from multiple servers.\n\nNote: you can paste from the clipboard with CTRL-V.\nDo not forget the ftp:// or http:// prefix.\nRecommend leave bypass-proxy checkbox unticked.')" 0 0 "$(gettext 'First server URL:')" "$COMMANDTAIL" "$(gettext 'Second server URL (optional):')" "" "$(gettext 'Third server URL (optional):')" ""`

if [ $? -eq 0 ];then
URL1=`echo -n "$RETSTR" | head -n 1 | cut -f 1 -d "|"`
URL2=`echo -n "$RETSTR" | head -n 1 | cut -f 2 -d "|"`
URL3=`echo -n "$RETSTR" | head -n 1 | cut -f 3 -d "|"`
BYPASSPROXY=`echo -n "$RETSTR" | tail -n 1`
else
 exit
fi

MULTISERVE="$URL2$URL3"
if [ ! "$MULTISERVE" ];then
 MULTICONN=`Xdialog --wmclass "puppyaxel" --title "$(gettext 'Puppy Axel download accelerator')" --stdout --no-tags --radiolist "$(gettext 'Choose one or more simultaneous connections to the server.\nMultiple connections will speed download, but a slow\ndialup connection may still be the bottleneck\n(choose 3 and above only if you have broadband).\nAlso, some servers will disconnect if download\nacceleration is attempted.')" 0 0 0 "1" "$(gettext 'Single connection, no acceleration')" on "2" "$(gettext 'Two simultaneous connections')" off "3" "$(gettext 'Three simultaneous connections')" off "4" "$(gettext 'Four simultaneous connections')" off`
fi

if [ ! $? -eq 0 ];then
 exit
fi

 DESTDIR="`Xdialog --wmclass "puppyaxel" --title "$(gettext 'Choose destination directory:')" --wizard --no-cancel --help "$(gettext 'if you leave the Selection field blank, the destination filename\nwill be the same as the source filename.\nOtherwise, type in the new name for the downloaded file.')" --stdout --dselect "/root/" 0 0 `"

 RETVAL=$?
 #note, returns 3 if "previous" button clicked.
 if [ $RETVAL -eq 3 ];then #=0 "next".
  DOSETUPLOOP="true"
 else
  if [ ! $RETVAL -eq 0 ];then
   exit
  fi
 fi

done

#now do the actual download...

ls "$DESTDIR" 2>&1 | grep "No such file or directory"
if [ $? -eq 0 ];then
 #this means that dest is not an existing file nor directory, so must
 #have typed a filename into directory selection dialog.
 FULLDEST="$DESTDIR"
else
 file $DESTDIR | grep "directory"
 if [ $? -eq 0 ];then
  #DESTDIR is only a path. get filename off url...
  FILEDEST=`basename "$URL1"`
  FULLDEST="$DESTDIR$FILEDEST"
 else
  #dest filename must already exist.
  FULLDEST="$DESTDIR"
 fi
fi

if [ "$BYPASSPROXY" = "checked" ];then
 BYPASSPROXY="--no-proxy"
else
 BYPASSPROXY=""
fi

echo -e "#!/bin/sh
axel $BYPASSPROXY --alternate --verbose --num-connections=\"$MULTICONN\" --output=\"$FULLDEST\" \"$URL1\" $URL2 $URL3
if [ ! \$? -eq 0 ];then
 echo
 echo \"'$(gettext DOWNLOAD FAILURE!\')'"
 if [ -f $FULLDEST ];then
  echo \"'$(gettext 'The file has not been fully downloaded.\')'"
  echo -n \"'$(gettext 'Deleting partially downloaded file...\')'"
  echo \"'$(gettext  'done\')'"
 else
  echo \"'$(gettext 'The file has not been downloaded.\')'"
 fi
 echo
 echo -n \"'$(gettext 'Press ENTER key to exit: \')'"
 read nnn
fi
" > /tmp/axelrun.sh

chmod 755 /tmp/axelrun.sh
rxvt -name puppyaxel -bg orange -geometry 80x10 -title "'$(gettext 'Puppy Axel download accelerator')'" -e /tmp/axelrun.sh
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Wed 15 May 2013, 04:43    Post subject:  

Secure telnet internationalized

/usr/sbin/securetelnetshell
Code:
#!/bin/sh
#frontend for ssh, secure telnet.
#(c) Barry Kauler 2004
#2007 Lesser GPL licence v2 (refer: /usr/share/doc/legal)
#120331 fix help url.
#130515 gettexted by robwoj44

export TEXTDOMAIN=securetelnetshell
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
. gettext.sh

[ -f /etc/securetelnetrc ] && . /etc/securetelnetrc
HDRMSG="$(gettext '#Configuration file for secure telnet. See Network menu.')"

while [ 1 ]
do

RETSTR=`Xdialog --wmclass "securetelnet" --title "$(gettext 'Secure telnet')" --stdout --left --separator "|" --help "" --3inputsbox "$(gettext 'ssh can be used for secure remote login,\ninvoked with the format:\n ssh -l username -p port hostname\nI suggest try port 22, if not known.')" 0 0 "$(gettext 'Hostname:')" "$SSHHOSTNAME" "$(gettext 'Port:')" "$SSHPORT" "$(gettext 'Username:')" "$SSHUSERNAME"`

RETVAL=$?
case $RETVAL in
 0) #ok
  RETHOSTNAME=`echo -n "$RETSTR" | cut -f 1 -d "|"`
  RETPORT=`echo -n "$RETSTR" | cut -f 2 -d "|"`
  RETUSERNAME=`echo -n "$RETSTR" | cut -f 3 -d "|"`
   echo "$HDRMSG" > /etc/securetelnetrc
   echo "SSHHOSTNAME=\"${RETHOSTNAME}\"" >> /etc/securetelnetrc
   echo "SSHPORT=\"${RETPORT}\"" >> /etc/securetelnetrc
   echo "SSHUSERNAME=\"${RETUSERNAME}\"" >> /etc/securetelnetrc

    echo '#!/bin/sh' > /tmp/runssh.sh
    echo -e "ssh -l $RETUSERNAME -p $RETPORT $RETHOSTNAME 2>/tmp/scratch1.txt" >> /tmp/runssh.sh
    echo 'if [ ! $? -eq 0 ];then' >> /tmp/runssh.sh
    echo -e "ERRSTR=\"\`cat /tmp/scratch1.txt\`\"" >> /tmp/runssh.sh
    echo -en "Xdialog --wmclass \"securetelnet\" --title \"$(gettext 'Secure telnet')\" --infobox \"$(gettext 'Failed to execute:')" >> /tmp/runssh.sh
    echo -n '\n' >> /tmp/runssh.sh
    echo -n " ssh -l $RETUSERNAME -p $RETPORT $RETHOSTNAME" >> /tmp/runssh.sh
    echo -n '\n' >> /tmp/runssh.sh
    echo -n "$(gettext 'ssh error message:')" >> /tmp/runssh.sh
    echo -n '\n' >> /tmp/runssh.sh
    echo '$ERRSTR" 0 0 40000' >> /tmp/runssh.sh
    echo 'fi' >> /tmp/runssh.sh
    sync
    chmod 755 /tmp/runssh.sh

  rxvt -bg "#ff80e0" -name "$(gettext 'securetelnet')" -title "$(gettext 'Secure telnet')" -e "/tmp/runssh.sh"
  break
  ;;
 1) #cancel
  break
  ;;
 2) #help
  #defaulthtmlviewer file:///usr/share/doc/ssh.htm &
  defaultbrowser http://linux.die.net/man/1/ssh &
  ;;
 *)
  break
  ;;
esac


done
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Wed 15 May 2013, 06:58    Post subject:  

PureFTPd

/usr/sbin/run-pureftpd
Code:
#!/bin/sh

#Add to /etc/rc.d/rc.local for auto startup: pure-ftpd -EbBADHk 90
#130515 gettexted by robwoj44

. gettext.sh
export TEXTDOMAIN=run-pureftpd
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

if [ "$(ps | grep $(cat /var/run/pure-ftpd.pid) | grep pure-ftpd)" != "" ] ; then

Xdialog --wmclass "pure-ftpd" --title "$(gettext 'Start/Stop PureFTPD')" --stdout --ok-label "$(gettext 'Stop Server')" --cancel-label "$(gettext 'Cancel')" --yesno "$(gettext 'Pure-FTPD is running. \n Would you like to stop the server?')" 0 0

 if  [ "$?" = "1" ] ;then 
 exit
 fi
 kill -9 $(cat /var/run/pure-ftpd.pid)
 exit
fi
vMsgH=15 ; vMsg=''
   vMsgW=40
   cfg=`Xdialog --title "$vServerTitle Start/Stop Pure-FTPD." \
         --backtitle "$(gettext 'Pure-ftpd is currently not Running.')" \
         --left --separator \  \
         --ok-label "$(gettext 'Start Pure-ftpd')" \
         --checklist " " \
      15 85 4 \
      '-u 1' "$(gettext 'Prevent user root connections.')" off \
      '-E' "$(gettext 'Prevent anonymous connections.')" on \
      2>&1 || echo .`
   [ "$cfg" == "." ] && exit
      
pure-ftpd -bBADHk 90 $cfg
 
Xdialog --wmclass "pure-ftpd" --title "$(gettext 'Start/Stop PureFTPD')" --stdout --ok-label "$(gettext 'OK')" --infobox "$(gettext 'Pure-ftpd is started. \n If you allowed anonymous connections, web browsers will connect as user ftp. \n User ftp's home directory is at /root/ftpd. \n If you allowed root logins you should set a root password. \n To set a password for root, open a terminal and type passwd. \n To stop the server run this script again.')" 0 0 90000
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Wed 15 May 2013, 08:28    Post subject:  

Thanks to the example of pwallpaer (i18n by L18L) I internationalized gpptp.
/usr/sbin/gpptp
gpptp-0.2.tar.gz
Description  gpptp with gpptp.pot
gz

 Download 
Filename  gpptp-0.2.tar.gz 
Filesize  8.93 KB 
Downloaded  280 Time(s) 
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1157

PostPosted: Wed 15 May 2013, 12:46    Post subject:  

Pwsget

/usr/sbin/pwsget
Code:
#! /bin/bash

# Pwget created by Lobster with thanks to Zigbert and Pwsget additions by gposil
# for Puppy Dingo and Linux Tmxxine
# Jan 2008 GPL v3 License
# http://tmxxine.com
# 20130515 internationalized (vicmz)

export TEXTDOMAIN=pwsget
export OUTPUT_CHARSET=UTF-8

LOGIN=""

export Pwget='
<window title="'$(gettext 'Pwget - File downloader utility')'" resizable="false">
<vbox>
 <frame>
  <text><label>'$(gettext 'Copy and Paste URL location of required file into "Address". Add destination and click "OK". If the site requires it, you can enter "Login" and "Password"')'.</label></text>
 </frame>
 <hbox>
 <text><label>'$(gettext 'Login:       ')'</label></text>
 <entry><variable>LOGIN</variable></entry></hbox>
 <hbox>
 <text><label>'$(gettext 'Password:')'</label></text>
 <entry><variable>PWORD</variable></entry></hbox>
 <hbox>
  <text><label>'$(gettext 'Address:  ')'</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
 <hbox>
  <text><label>'$(gettext 'Dest Dir:  ')'</label></text>
  <entry accept="directory"><variable>DEST</variable><input>/tmp/pm_mirror_dir</input></entry>
  <button>
   <input file icon="gtk-open"></input>
   <action type="fileselect">DEST</action>
   <action>refresh:DEST</action>
  </button>
 </hbox>
 <hbox>
  <button help>
   <action>`Xdialog --wrap --screencenter --left --title "'$(gettext 'Pwget - HELP')'" --msgbox "'$(gettext 'Pwget is a simple front end to the wget utility. Wget is used for downloading larger files from the internet such as ISOs. The files are verified during the download procedure. As ISO and other files are checked and downloads resumed, they do not require a md5sum check. Copy and paste the source file you wish to download. Use the file selector to choose the destination. \n\n Lobster, Jan 2008')'" 600x0`</action>
  </button>
  <button cancel></button>
  <text><label>'$(gettext 'Download')'</label></text>
  <button ok></button>
 </hbox>
</vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program=Pwget --center ); do
   eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
  if [ -z $LOGIN ]; then
  rxvt -name Xwget -bg black -fg yellow -e wget -c -P "$DEST" $SOURCE
  rox -d "$DEST"
  fi
  if [ -n $LOGIN ]; then
  rxvt -name Xwget -bg black -fg yellow -e wget -c --http-user=$LOGIN --http-password=$PWORD --ftp-user=$LOGIN --ftp-password=$PWORD -P "$DEST" $SOURCE
  rox -d "$DEST"
  fi
fi
image-4.png
 Description   pwsget - es
 Filesize   22.72 KB
 Viewed   563 Time(s)

image-4.png


_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español

Last edited by vicmz on Wed 15 May 2013, 15:56; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2621
Location: www.eussenheim.de/

PostPosted: Wed 15 May 2013, 13:05    Post subject: Programs and scripts that are not yet internationalized
Subject description: pplog_gui
 

found this one:
/usr/sbin/pplog_gui wrote:
#! /bin/sh
#(c) Barry Kauler July 2008, licence: GPL2
# i18n Apr 2013

. gettext.sh
export TEXTDOMAIN=pplog_gui
export OUTPUT_CHARSET=UTF-8
TITLE="$(gettext 'PPLOG personal blog')"
BUTTON_START="$(gettext 'START')"
BUTTON_STOP="$(gettext 'STOP')"
BUTTON_EXIT="$(gettext 'EXIT')"
BUTTON_PPLOG="$(gettext 'PPLOG')"

PSSTATUS="`ps`"
if [ "`echo "$PSSTATUS" | grep ' hiawatha'`" = "" ];then
xmessage -center -bg '#ffc0c0' -buttons START:10,EXIT:11 -title "${TITLE}" "$(eval_gettext '${TITLE} requires the Hiawatha web server to be running.')
$(eval_gettext 'Click the ${BUTTON_START} button to do this, otherwise click ${BUTTON_EXIT} to abort.')"
[ $? -ne 10 ] && exit

echo '' > /tmp/hiawatha_error
hiawatha 2>/tmp/hiawatha_error

if [ $? -ne 0 ];then
ERRMSG="`cat /tmp/hiawatha_error`"
xmessage -center -bg 'red' -buttons EXIT:10 -title "${TITLE}" "$(gettext 'There was an error when attempting to start Hiawatha, this error message:')

${ERRMSG}

$(eval_gettext 'Click ${BUTTON_EXIT} button to quit:')"
exit
fi
fi

xmessage -center -bg 'orange' -buttons ${BUTTON_PPLOG}:10,${BUTTON_STOP}:11,${BUTTON_EXIT}:12 -title "${TITLE}" "
$(eval_gettext 'Click the ${BUTTON_PPLOG} button to run the ${TITLE}.

The Hiawatha web server is currently running, which is required for PPLOG.
If you want to stop the server and exit, click the ${BUTTON_STOP} button.

To just quit, click the ${BUTTON_EXIT} button:')"

case $? in
10)
exec defaulthtmlviewer http://127.0.0.1:80/blog/pup_pplog.pl
;;
11)
hiawatha.run stop
exit
;;
*)
exit
;;
esac

###END###


Very Happy
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Wed 15 May 2013, 15:04    Post subject:  

I updated the list in the first post

/usr/sbin/Floppy_Formatter
Code:
#! /bin/bash
#USB Floppy Formatter GUI by 8-bit Sept. 12, 2009
#Modified Oct. 19,2009  Very little error checking done. Can it be implemented without external programs?
#Written with the idea someone might get some use out of it.
#Consider this program to be open source to modify as you wish.
#130515 robwoj44 internationalized

. gettext.sh
export TEXTDOMAIN=Floppy_Formatter
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

llfloppy()
{
#gxmessage -center -name     Floppy_Formatter "Insert writable unmounted floppy in drive."


ERR0=1
while [ ! $ERR0 -eq 0 ];do
  xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...Low-level formatting disk ')" &
 if [ $CBOX3 = "true" ];then
  ufiformat -f $COMBO1 $WORD1
 else
  if [ $CBOX4 = "true" ];then
   fdformat /dev/fd0u$COMBO1
 else
  if [ $CBOX5 = "true" ];then
    fdformat /dev/fd1 $COMBO1

   gxmessage -center -name     Floppy_Formatter "$(gettext 'No internal floppy drive found.')"
   return
  fi
 fi
 fi
 ERR0=$?
 killall xmessage
 if [ ! $ERR0 -eq 0 ];then
  xmessage -bg "#ffe0e0" -name "$gettext 'loformat')" -title "$(gettext  '  Lo-level Formatter')" -center \
  -buttons "$(gettext 'Try again')":20,"$(gettext 'MENU')":10 -file -<<XMSG
$(gettext 'ERROR low-level formatting disk.
Is the write-protect tab closed?')
XMSG

  AN0=$?
  if [ $AN0 -eq 10 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 0 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 1 ];then
   ERR0=0
  fi
 else
   gxmessage -center -name     Floppy_Formatter  "$(gettext 'Formatting of disk is finished. ')"
 fi
done
return
}
dosfloppy()
{
#gxmessage -center -name     Floppy_Formatter "Insert writable unmounted floppy in drive."
ERR0=1
while [ ! $ERR0 -eq 0 ];do
  if [ $CBOX3 = "true" ];then
    xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors ')" &
    $CBOX2 $WORD1 $COMBO1
  else
    if [ $CBOX4 = "true" ];then
      xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors ')" &
      $CBOX2 /dev/fd0 $COMBO1
  else
    if [ $CBOX5 = "true" ];then
      xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors')" &
  fi
  fi
 fi
 ERR0=$?
 killall xmessage
 if [ ! $ERR0 -eq 0 ];then
#gxmessage -center -name USB_Floppy_Formatter "Error is "$ERR0""
  xmessage -bg "#ffe0e0" -name "$(gettext 'loformat')" -title "$(gettext  '  Lo-level Formatter')" -center \
  -buttons "$(gettext 'Try again')":30,"$(gettext 'MENU')":10 -file -<<XMSG
$(gettext 'ERROR making DOS filesystem.
Is the write-protect tab closed?
If this is second try, Floppy
has bad sectors. Low level format
or replace floppy!')
XMSG

  AN0=$?
  if [ $AN0 -eq 10 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 0 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 1 ];then
   ERR0=0
  fi
 else
   gxmessage -center -name     Floppy_Formatter  "$(gettext 'Making dos filesystem is finished. ')"
 fi
done
return
}
top_menu()
{
 export CHOOSER="
<window title=\"$(gettext  '  Floppy Formatter  ')\"icon-name=\"gtk-floppy\">
<vbox>
<frame          $(gettext  ' Choose type of floppy drive ')            >
<hbox>
     <checkbox>
      <label>$(gettext 'USB floppy Drive ')                                 </label>
      <variable>CBOX3</variable>
      <default>false</default>
    </checkbox>

</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'Internal floppy drive 0 ')                         </label>
      <variable>CBOX4</variable>
      <default>false</default>
    </checkbox>
</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'Internal floppy drive 1 ')                         </label>
      <variable>CBOX5</variable>
      <default>false</default>
    </checkbox>
</hbox>
 </frame>
 
  <frame $(gettext 'choose size of floppy:')>
    <combobox>
     <variable>COMBO1</variable>
      <item>1440</item>
      <item>720</item>
    </combobox>   
</frame>
<frame $(gettext 'choose Options:') >
<hbox>
     <checkbox>
      <label>$(gettext 'Low level format ')                               </label>
      <variable>CBOX1</variable>
      <default>false</default>
    </checkbox>

</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'MSDOS file system. ')                           </label>
      <variable>CBOX2</variable>
      <default>false</default>
    </checkbox>
</hbox>
 </frame>

<hbox>
  <button>
   <input file icon=\"gtk-ok\"></input>
        <label>$(gettext 'OK')</label>
        <action type=\"exit\">EXIT_OK</action>
   </button>
   <button>
   <input file icon=\"gtk-quit\"></input>
        <label>$(gettext 'QUIT')</label>
        <action type=\"exit\">EXIT_NOW</action>
      </button>
</hbox>
</vbox>
</window>
"

CHOOSER2==`gtkdialog3 --program=CHOOSER --center`

if [ "`echo $CHOOSER2 | grep EXIT_NOW`" != "" ]; then
 exit 0
fi

#Get all of the variables
CBOX1="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX1 | sed 's/CBOX1//'`"
CBOX2="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX2 | sed 's/CBOX2//'`"
CBOX3="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX3 | sed 's/CBOX3//'`"
CBOX4="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX4 | sed 's/CBOX4//'`"
CBOX5="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX5 | sed 's/CBOX5//'`"
COMBO1="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep COMBO1 | sed 's/COMBO1//'`"
if [ $CBOX3 = "true" ];then
 #Added Test for presence of USB floppy drive
 FLOP="`ufiformat -i`"
 WORD1="`echo $FLOP | cut -f 3 -d ' '`"
 if  [ -z $WORD1 ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' No USB Drive Found ')            "
   top_menu
 fi
#End of added test
fi
if [ $CBOX4 = "true" ];then
 IN="`which /root/.pup_event/drive_fd0/AppRun`"
 echo $IN
 if [ -z $IN ];then
   gxmessage -center -name Floppy_Formatter "$(gettext 'No internal floppy drive found ')   "
   top_menu
 fi
fi
if [ $CBOX5 = "true" ];then
 IN="`which /root/.pup_event/drive_fd1/AppRun`"
 echo $IN
 if [ -z $IN ];then
   gxmessage -center -name Floppy_Formatter "$(gettext 'No internal floppy drive found ')   "
   top_menu
 fi
fi



if [ $CBOX3 = "false" ] && [ $CBOX4 = "false" ] && [ $CBOX5 = "false" ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' Error-No drive type selected! ') "
   top_menu
else
  if [ $CBOX1 = "false" ] && [ $CBOX2 = "false" ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' Error-No Options selected! ')    "
   top_menu
else
  if [ $CBOX1 = "true" ];then
   llfloppy
    #rxvt +sb -bg green -geometry 80x4 -e $CBOX1 $COMBO1 $WORD1
  else
    CBOX1="" #setting it back to "null" allows us to pass all parameters without doing more "if thens"
  fi
fi
fi
if [ $CBOX2 = "true" ];then
    CBOX2="mkfs.msdos -v -c -I "
  dosfloppy
 #rxvt +sb -bg green -geometry 80x4 -e $CBOX2 $WORD1
else
 CBOX2="" #setting it back to "null" allows us to pass all parameters without doing more "if thens"
fi

unset CHOOSER
top_menu
}
top_menu
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2621
Location: www.eussenheim.de/

PostPosted: Thu 16 May 2013, 04:14    Post subject: Programs and scripts that are not yet internationalized
Subject description: grub config
 

robwoj44 wrote:
I updated the list in the first post

Thank you.

Just one note,
the configuration for grub is now
legacy grub config 2013
internationalized by the developer rcsn51 himself.
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 374
Location: Warsaw

PostPosted: Thu 16 May 2013, 07:07    Post subject:  

ssh-gui internationalized
/usr/sbin/ssh-gui
ssh-gui-0.7.1_pup1.tar.gz
Description  ssh-gui with ssh-gui.pot
gz

 Download 
Filename  ssh-gui-0.7.1_pup1.tar.gz 
Filesize  8.11 KB 
Downloaded  289 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2621
Location: www.eussenheim.de/

PostPosted: Thu 16 May 2013, 07:10    Post subject: Programs and scripts that are not yet internationalized
Subject description: /usr/sbin/gpptp
 

robwoj44,
though I could make a translation in momanager...
(copied gpptp to /usr/share/doc/nls/gpptp/)
but when

Edit
/usr/sbin/gpptp (gpptp gpptp)
things went crazy

directory /usr/share/locale/gpptp/ was created
and not editable.

[edit]source of gpptp (gpptp.c ? ) is also needed in GPL software [/edit]

BarryK,
thus put /usr/sbin/gpptp on hold for now.

rodin.s,
can you confirm it is working or not please.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2621
Location: www.eussenheim.de/

PostPosted: Thu 16 May 2013, 08:00    Post subject: Programs that are not yet internationalized
Subject description: /usr/sbin/ssh-gui
 

Sorry, same with /usr/sbin/ssh-gui Crying or Very sad

adding source could help find the bug Cool
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
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.1618s ][ Queries: 13 (0.0049s) ][ GZIP on ]