Page 1 of 1

need help for greek translation

Posted: Wed 03 Dec 2008, 18:51
by The Hamsters
sorry for my english.

we want a greek puppy. (puppel).

we have two problems.

(with el_GR.utf8).


1. in rxvt we dont have greece. with sakura is all ok, so we have it.

but the other problem is important.

In scripts (pmount, etc) there are orange windows, with messages (Puppy Drive Mounter, please wait....).

if we translate it, do not appear Greek, but as symbols. (only the text in orange windows).

Posted: Wed 03 Dec 2008, 19:36
by HairyWill
The messages are being displayed by yaf-splash.
I think that MU reported problems with yaf-splash and internationalisation.
have a look at muppy, I think he replaced the yaf-splash binary with a shell script wrapper that called gxmessage instead.

Posted: Wed 03 Dec 2008, 20:17
by The Hamsters
yessssssss!!!!

i change the line

yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Puppy Drive Mounter

with

gxmessage "Puppel Π

Posted: Wed 03 Dec 2008, 21:00
by HairyWill
I found mark's post
here is the full script to replace yaf-splash
http://www.murga-linux.com/puppy/viewtopic.php?t=25536

Posted: Wed 03 Dec 2008, 21:53
by The Hamsters
how it works?

is a new script?

Posted: Wed 03 Dec 2008, 22:47
by HairyWill
yes it is a script
delete the existing /usr/X11R7/bin/yaf-splash
and replace it with the script named
yaf-splash
now your replacement will get called automatically

Posted: Thu 04 Dec 2008, 16:42
by The Hamsters
ok. it works.
thanks again :D

Posted: Thu 04 Dec 2008, 16:53
by MU
here is the replacement I used in Muppy:
/usr/X11R7/bin/yaf-splash

Code: Select all

#!/bin/bash

XMESSAGE="gxmessage -encoding UTF-8"

text=`echo $@ | sed -e "s/.*-text \(.*\)/\1/"`
#echo "$text"

a=`echo $@ | sed -e "s/-bg pale /-bg /" -e "s/-placement [^ ]* //" -e "s/-outline [^ ]* //" -e "s/-margin [^ ]* //" -e "s/-text .*//"`

#echo $a

exec $XMESSAGE -center -buttons "" -borderless $a "$text"
I am not certain, that it works with every option for yaf-splash used in Puppy, but in most cases it seems to work.

You can search for options used in Puppy like this:
cd /usr/sbin
grep -n yaf-splash *



Mark

Posted: Thu 04 Dec 2008, 17:35
by The Hamsters
:D :D