http://murga-linux.com/puppy/viewtopic.php?t=87043
Chinese now shows in Raring Start menu.
I added the following code in pinstall.sh of icake's language pack
Code: Select all
#120924 DejaVu font no good for non-Latin languages...
#see also similar code in /usr/local/petget/hacks-postinstall.sh.
LANGPACKLANG=zh
case $LANGPACKLANG in
zh*|ja*|ko*) #chinese, japanese, korean
sed -i -e 's%DejaVu Sans%Sans%' ./etc/xdg/templates/_root_*
if [ -d ./root/.jwm ];then
sed -i -e 's%DejaVu Sans%Sans%' ./root/.jwm/themes/*-jwmrc
sed -i -e 's%DejaVu Sans%Sans%' ./root/.jwm/jwmrc-theme
fi
[ -d ./etc/xdg/openbox ] && sed -i -e 's%DejaVu Sans%Sans%' ./etc/xdg/openbox/*.xml
[ -d ./root/.config/openbox ] && sed -i -e 's%DejaVu Sans%Sans%' ./root/.config/openbox/*.xml
GTKRCFILE="$(find ./usr/share/themes -type f -name gtkrc | tr '\n' ' ')"
for ONEGTKRC in $GTKRCFILE
do
sed -i -e 's%DejaVu Sans%Sans%' $ONEGTKRC
done
if [ -d ./root/.mozilla ];then
MOZFILE="$(find ./root/.mozilla -type f -name prefs.js -o -name '*.css' | tr '\n' ' ')"
for ONEMOZ in $MOZFILE
do
sed -i -e 's%DejaVu Sans%Sans%' $ONEMOZ
done
fi
;;
esac