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 18 Apr 2014, 01: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 1 of 4 [55 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
robwoj44

Joined: 08 Aug 2008
Posts: 330
Location: Warsaw

PostPosted: Thu 09 May 2013, 07:39    Post subject:  Programs and scripts that are not yet internationalized
Subject description: Internationalization
 

I tried to internationalize 100% of racy/wary but there are still some scripts and programs not internationalized.
In Internet - Psip
In Filesystem - PRename, gFnRename
In Utility - Snap2, gExec
In System - Frequency Scaling Tool
So in total 6 programs and scripts from main menu.
List updated.

Last edited by robwoj44 on Thu 23 May 2013, 06:51; edited 10 times in total
Back to top
View user's profile Send private message 
L18L

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

PostPosted: Thu 09 May 2013, 07:52    Post subject: Programs and scripts that are not yet internationalized  

Thank you for pointing to these scripts.

I hope that we can have all finished and
ready for Puppy's 10th anniversary. Idea

PS
gexec is the most superfluos "app" I have ever seen.
Forget it, take a console and you will see also the error messages if any.
Just my humble opinion. Cool

urxvtset is for me I think.....
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Thu 09 May 2013, 08:10    Post subject: additional langpack for Wary/Racy  

I have some of these scripts internationalized in my additional langpack for Racy.
I could also name some untranslated scripts: GrubInstall and Frequency Scaling Tool.
i18n_racy55-130331.pet
Description 
pet

 Download 
Filename  i18n_racy55-130331.pet 
Filesize  38.69 KB 
Downloaded  230 Time(s) 
Back to top
View user's profile Send private message 
vicmz

Joined: 15 Jan 2012
Posts: 1010

PostPosted: Thu 09 May 2013, 13:07    Post subject:  

Xlock is internationalised - it's just not-gettexted.

Set_global_font_size is another script that hasn't got any internationalisation method yet.

I think rodin.s had gettexted Pwsget last year, or I had done that from a more recent Puppy, I'll check later.
image-12.png
 Description   
 Filesize   79.27 KB
 Viewed   595 Time(s)

image-12.png


_________________
OpenboxPlus|OB-Puppy|Puppy en español
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Thu 09 May 2013, 14:31    Post subject:  

Set_global_font_size is gettexted in new Precise, and new script there to translate is xorgwizard-cli.
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 330
Location: Warsaw

PostPosted: Fri 10 May 2013, 03:42    Post subject:  

большое спасибо rodin.s
muchos gracias vicmz, but where I can find the solution with Xlock, I looked at your langpack and could not find it.
L18L I hope that we can have all finished and
ready for Puppy's 10th anniversary too:-)
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Fri 10 May 2013, 12:05    Post subject:  

Look into /usr/local/apps/Xlock/locale
Back to top
View user's profile Send private message 
vicmz

Joined: 15 Jan 2012
Posts: 1010

PostPosted: Fri 10 May 2013, 12:23    Post subject:  

robwoj44 wrote:

muchos gracias vicmz, but where I can find the solution with Xlock, I looked at your langpack and could not find it.


Look at the pictures below. If you want to include the translation for Wallpaper6 (Nathan Wallpaper Setter, used in Slacko, some derivatives and OpenboxPlus), you have to follow the same steps, but with the Wallpaper app dir instead. Precise, Wary and Racy have got Pwallpaper, which is now gettexted and editable through Momanager.
app-dir-xlock-look-inside.jpg
 Description   
 Filesize   55.84 KB
 Viewed   535 Time(s)

app-dir-xlock-look-inside.jpg

edit-xlock-locale.jpg
 Description   
 Filesize   52.47 KB
 Viewed   532 Time(s)

edit-xlock-locale.jpg


_________________
OpenboxPlus|OB-Puppy|Puppy en español
Back to top
View user's profile Send private message 
vicmz

Joined: 15 Jan 2012
Posts: 1010

PostPosted: Fri 10 May 2013, 12:34    Post subject:  

One more thing (either for Xlock or Wallpaper6):
edit-xlock-xml.jpg
 Description   
 Filesize   133.63 KB
 Viewed   532 Time(s)

edit-xlock-xml.jpg


_________________
OpenboxPlus|OB-Puppy|Puppy en español
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 330
Location: Warsaw

PostPosted: Fri 10 May 2013, 17:08    Post subject:  

Thank you for your help. It was easier than I thought.
I updated the list:
In Internet - Axel, SSH GUI, Pmirrorget, Puppy Podcast Grabber, Psip, Secure SSH
In Network - Gpptp, Pure FTPD
In Filesystem - PRename, gFnRename
In Utility - Pudd, Snap2, gExec
In System - Pdisk
Now only 14 applications.
Back to top
View user's profile Send private message 
L18L

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

PostPosted: Sat 11 May 2013, 09:22    Post subject: Programs and scripts that are not yet internationalized
Subject description: snap2
 

Here is snap2
/usr/bin/mtpaintsnapshot.sh wrote:
#!/bin/sh
#110116 change to yaf-splash.
#110312 rodin.s: adding gettext

export TEXTDOMAIN=mtpaintsnapshot #usr_sbin
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
eval_gettext () {
local myMESSAGE=$(gettext "$1")
eval echo \"$myMESSAGE\"
}

#xmessage -center -bg "#ff00ff" -title "mtPaint screen snapshot utility" -buttons "" -timeout 8 "
#There will now be a pause of 10 seconds to allow you to adjust
#windows as you wish, then a snapshot will be taken of entire screen.
#
#Note, you can also take a snapshot of the main menu. Close this window,
#open the main menu to the desired layout, then wait until the 10 seconds
#has expired.
#
#This window will disappear in 8 seconds from its creation." &

yaf-splash -placement center -bg '#ff00ff' -timeout 10 -close box -text "$(gettext 'mtPaint screen snapshot utility

There will now be a pause of 13 seconds to allow you to adjust windows as you wish, then a snapshot will be taken of entire screen.

Note, you can also take a snapshot of the main menu. Close this window, open the main menu to the desired layout, then wait until the 13 seconds has expired.')" &

sleep 13
exec mtpaint -s

Update in 1st post ( use Edit button ) would be nice Smile
Thank you.

Last edited by L18L on Sat 11 May 2013, 09:31; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

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

PostPosted: Sat 11 May 2013, 09:29    Post subject: Programs and scripts that are not yet internationalized
Subject description: Pudd
 

Attached is Pudd.

If you like my design ( html5 ) you can copy the help file to
/usr/share/doc/help/<your language>/Pudd.htm and translate there.

Pudd help will use this or if not existent then just /usr/share/doc/Pudd.htm.

BTW,
I think everyone can learn something while translating help files, I did.
Pudd-i18n.tar.gz
Description  /usr/sbin/Pudd
/usr/share/doc/help/de/Pudd.htm
gz

 Download 
Filename  Pudd-i18n.tar.gz 
Filesize  10.21 KB 
Downloaded  214 Time(s) 
Back to top
View user's profile Send private message 
L18L

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

PostPosted: Sat 11 May 2013, 11:11    Post subject: Programs and scripts that are not yet internationalized
Subject description: /usr/sbin/urxvtset
 

I have found urxvt i18n'ed by rodin.s

added On/Off
version bumped to 0.6

Code:
#!/bin/sh

 ## urxvt terminal setup ##
 ## stu90 ##  ## L18L ##
 ## combobox -v2
 ## transparency combobox -v3
 ## numeric fields, colorchoosers, font preview -v3a
 ## color using integrated colorchooser -v3b
 ## transparency shading -v0.5
 ## borderless window -v0.5
 #110818 rodin.s: adding gettext
 #130511 L18L: v0.6 added ON/OFF translatable
 
#export TEXTDOMAIN=puppy #urxvtset
export TEXTDOMAIN=urxvtset
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
eval_gettext () {
  local myMESSAGE=$(gettext "$1")
  eval echo \"$myMESSAGE\"
}
 
 version=v0.6

 xdorig="$HOME/.Xdefaults"
 xdtmp="/tmp/.Xdefaults"
 xdback="$HOME/.Xdefaults.back"

 if [ -f "$xdorig" ]; then
  cp $xdorig $xdtmp
  else
  echo "No $xdorig file found exiting"
 fi


 ### get current urxvt theme information ###
 echo "Current Urxvt terminal settings"
 
 ## foreground ##
 fcolour="`grep 'foreground'  $xdtmp | cut -s -d ":" -f 2`"
 echo "$fcolour"

 ## background ##
 bcolour="`grep 'background'  $xdtmp | cut -s -d ":" -f 2`"
 echo "$bcolour"
 
 ## cursor colour ##
 ccolour="`grep 'underlineColor'  $xdtmp | cut -s -d ":" -f 2`"
 echo "$ccolour"
 
 ## geometry ##
 geom="`grep 'geometry' $xdtmp | cut -s -d ":" -f 2`"
 echo "$geom"
 geomw="`echo $geom | cut -d "x" -f 1`"
 geomh="`echo $geom | cut -d "x" -f 2`"

 ## font size ##
 fsize="`grep 'pixelsize' $xdtmp | cut -s -d "=" -f 3`"
 echo "$fsize"
 
 ## font ##
 font="`grep 'xft' $xdtmp | cut -s -d ":" -f 3`"
 #echo "$font"
 
 ## font style ##
 style="`grep 'style' $xdtmp | awk -F '[=:]' '{print $5}'`"
 #echo "$style"
 
 font_style="$font:$style"
 echo "$font_style"
 
 ## transparency ##
 transp="`grep 'transparent' $xdtmp | cut -s -d ":" -f 2`"
 #transp="`grep 'inherit' $xdtmp | awk -F '[:]' '{print $2}'`"
 if echo $transp | grep -q 'Off' ; then
 trans="$(gettext 'Off')!$(gettext 'On')"
 else
 trans="$(gettext 'On')!$(gettext 'Off')"
 fi
 echo "$transp"
 
 ## transparency shading ##
 shade="`grep 'shading'  $xdtmp | cut -s -d ":" -f 2`"
 echo "$shade"
 
 ## terminal border ##
 border="`grep 'border' $xdtmp | cut -s -d ":" -f 2`"
 #border="`grep 'border' $xdtmp | awk -F '[:]' '{print $2}'`"
 if echo $border | grep -q 'Off' ; then
 border1="$(gettext 'Off')!$(gettext 'On')"
 else
 border1="$(gettext 'On')!$(gettext 'Off')"
 fi
 echo "$border"

 ### urxvtset gui ###
setup=$(yad --title="$(gettext 'Urxvt Setup') - $version" --form --align="Center" --justify=right \
 --text="                 $(gettext 'Urxvt Terminal Setup')  \n \n         --:$(gettext 'Make sure to fill in ALL fields:')--   " \
 --field="$(gettext 'Foreground')":CLR "$fcolour" \
 --field="$(gettext 'Background')":CLR "$bcolour" \
 --field="$(gettext 'Cursor')":CLR "$ccolour" \
 --field="$(gettext 'Transparency')":CB "$trans" \
  --field="$(gettext 'Shading')":NUM "$shade" \
 --field="$(gettext 'Borderless')":CB "$border1" \
 --field="$(gettext 'width')":NUM "$geomw" \
 --field="$(gettext 'height')":NUM "$geomh" \
 --field="$(gettext 'Font')":CB "$font_style! `fc-list | sort -f -u | tr '\n' '!' | sed s/style=//g `"\
 --field="$(gettext 'Fontsize')":NUM "$fsize" \
 --icons --button="$(gettext 'Restore'):2" --button="gtk-cancel:1"  --button="gtk-ok:0" \
--notification --command="yad --color" )
button1=$?
case $button1 in

 1)
  echo "Exiting" && exit 
 ;;

 0)
 ### gert setup GUI user input ###
 ectext="$(gettext 'One or more entries has not been filled in please make sure  to fill in All entries. Exiting with out saving settings')"
 guitext="  $(gettext 'One or more entries has not been filled in. please make sure  \n  to fill in ALL entries. Exiting with out saving settings.')  "

 ## get new foreground 1 ##
 setfcolour=`echo $setup  | cut -d "|" -f 1`
 [[ ! "$setfcolour" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new background 2 ##
 setbcolour=`echo $setup  | cut -d "|" -f 2`
 [[ ! "$setbcolour" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit
 
 ## get new cursor colour 3 ##
 setccolour=`echo $setup  | cut -d "|" -f3`
 [[ ! "$setccolour" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new transparency 4 ##
 settrans=`echo $setup  | cut -d "|" -f4`
 [ "$settrans" = "$(gettext 'On')" ] && settrans="On" || settrans="Off" #130511
 [[ ! "$settrans" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new transparency shading 5 ##
 setshade=`echo $setup  | cut -d "|" -f5 | cut -d "." -f1`
 [[ ! "$setshade" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new terminal border 6 ##
 setborder=`echo $setup  | cut -d "|" -f6`
 [ "$setborder" = "$(gettext 'On')" ] && setborder="On" || settrans="Off" #130511
 [[ ! "$setborder" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new geometry 7 - 8 ##
 setgeom=`echo $setup  | cut -d "|" -f7 | cut -d "." -f1 `x` echo $setup  | cut -d "|" -f8 | cut -d "." -f1`
 [[ ! "$setgeom" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new font 9 ##
 setfont=`echo $setup  | cut -d "|" -f9 | cut -d ":" -f1`
 [[ ! "$setfont" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 ## get new font style 9 ##
 setstyle=`echo $setup  | cut -d "|" -f9 | cut -d ":" -f2`
 [[ ! "$setstyle" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit

 ## get new font size 10 ##
 setfsize=`echo $setup  | cut -d "|" -f10 | cut -d "." -f1`
 [[ ! "$setfsize" ]] && yad --title="$(gettext 'Urxvt Setup Info')" --text="$guitext" && echo "$ectext" && exit
 
 
  ## set fourground colour ##
  sed -i "/foreground/s/$fcolour/$setfcolour/" $xdtmp 2>/dev/null
   
  ## set back ground colour ##
  sed -i "/background/s/$bcolour/$setbcolour/" $xdtmp 2>/dev/null
   
  ## set cursor colour ##
  sed -i "/underline/s/$ccolour/$setccolour/" $xdtmp 2>/dev/null
   
  ## set transparency style ##
  sed -i "/transparent/s/$transp/$settrans/" $xdtmp 2>/dev/null 
 
  ## set transparency shade ##
  sed -i "/shading/s/$shade/$setshade/" $xdtmp 2>/dev/null
 
  ## set borders style ##
  sed -i "/border/s/$border/$setborder/" $xdtmp 2>/dev/null
   
  ## set geometry ##
  sed -i "/geometry/s/$geom/$setgeom/" $xdtmp 2>/dev/null
   
  ## set font size ##
  sed -i "s:$fsize:$setfsize:g" $xdtmp 2>/dev/null
   
  ## set font ##
  sed -i "s:$font:$setfont:g" $xdtmp 2>/dev/null
   
  ## set font style ##
  sed -i "s:$style:$setstyle:g" $xdtmp 2>/dev/null
 

  ### settings saved gui ###
  yad --title="$(gettext 'Urxvt Setup Info')" --text="   $(gettext 'Urxvt terminal settings saved')   " && echo "$(gettext 'Urxvt terminal settings saved')" && cp "$xdtmp" "$xdorig"
  #echo $setup
  exit
 ;;

 2)
 ### restore defaults gui ###
 if [ -f "$xdback" ]; then
  yad --title="$(gettext 'Urxvt Setup Info')" --text="   $(gettext 'Restored default settings')   "
  cp "$xdback" "$xdorig" && echo "$(gettext 'Restored default settings')"
  else
  echo "$(gettext 'Can not find file to restore exiting')" && exit
 fi
 ;;

 esac

[edit] changed from quote to code

Last edited by L18L on Sat 18 May 2013, 03:38; edited 2 times in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3075
Location: Ontario

PostPosted: Sat 11 May 2013, 11:36    Post subject:  

I compiled mhwaveedit recently and I noticed that it is translated
into only a few languages. For instance Portuguese is not
represented.

Someone should help the developper before he publishes
his next version 1.4.23

______________________________________________________
Back to top
View user's profile Send private message 
L18L

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

PostPosted: Sat 11 May 2013, 14:31    Post subject: Programs and scripts that are not yet internationalized
Subject description: /usr/sbin/Pdisk
 

don570,
are you sure you are in the right (opposit of wrong) thread?

Code:
#!/bin/sh
#2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)
#v3.97 BK bugfix.
#110205 use probedisk2.
#130203 change probedisk2 to probedisk.
#130511 i18n L18L

export TEXTDOMAIN=Pdisk
export OUTPUT_CHARSET=UTF-8

if [ -f /usr/sbin/cfdisk -o -f /sbin/cfdisk ];then #v3.97
 BUTMANAGE="fdisk:20,cfdisk:21"
else
 BUTMANAGE="fdisk:20"
fi

ALLINFO="`probedisk 2>/dev/null | grep -v "optical|" | grep -v "/scd"`" #110205
ALLPARTS="`echo "$ALLINFO" | cut -f 1 -d "|" | cut -f 3 -d "/" | tr "\n" " "`"
ALLMNTD="`df | grep "/dev/" | cut -f 1 -d " " | grep -v "loop" | tr "\n" " "`"

butval=20
BUTPARTS=""
for EACHPART in $ALLPARTS
do
BUTPARTS="${BUTPARTS}$EACHPART:$butval,"
butval=`expr $butval + 1`
done
BUTPARTS="${BUTPARTS}$(gettext 'EXIT'):10"

xmessage -bg "#8080ff" -center -name "Pdisk" -title "$(gettext 'Pdisk drive partition manager')" -buttons $BUTPARTS "$(gettext 'Welcome, this program enables you to run either fdisk, or, if it is
installed, cfdisk. These are utility applications to examine and
modify disk drive partitions. This includes creating and erasing
partitions, so is not for the faint-of-heart!')

$(gettext 'Here are the disk drives that Puppy knows about:')
$ALLINFO

$(gettext 'If any drive is wrong or missing, exit this program and run the
\"Mount/unmount drives\" program, that you will find in the \"File
Managers\" menu. That tool will enable you to probe the hardware.')

$(gettext 'These partitions are curently mounted:')
$ALLMNTD
$(gettext '...you can view these but NOT change them.')

$(gettext 'To continue this program, click a drive button...')"

RETVAL=$?
if [ $RETVAL -lt 11 ];then
 exit
fi

EDITPART="`echo "$BUTPARTS" | tr "," "\n" | grep "$RETVAL" | cut -f 1 -d ":"`"

xmessage -bg "#80C080" -center -name "Pdisk" -title "$(gettext 'Pdisk drive partition manager')" -buttons $BUTMANAGE,$(gettext 'EXIT'):10 "$(gettext 'Chose the partition manager program that you want to use...')"

RETVAL=$?
if [ $RETVAL -lt 11 ];then
 exit
fi

if [ $RETVAL -eq 21 ];then
 rxvt -bg "#C080ff" -e cfdisk /dev/$EDITPART
else
 rxvt -bg "#C080ff" -e fdisk /dev/$EDITPART
fi


[edit] changed from quote to code

Last edited by L18L on Sat 18 May 2013, 03:42; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [55 Posts]   Goto page: 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.1218s ][ Queries: 12 (0.0062s) ][ GZIP on ]