How to convert Precise, Slacko or Raring to Chinese

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

How to convert Precise, Slacko or Raring to Chinese

#1 Post by don570 »

Available software...

Right-click-6.9.0.pet 2 mb
(untick downloader box to avoid datafilehost app)

icake-zh CN-modified-7.0.4b.pet 23.79 MB
This contains a Chinese font.


Working with forum member icake I have come up with this
procedure to quickly convert Precise, Slacko or Raring Puppy linux
to Chinese. There still needs to be some translating done, but this will
be done over the next week. So far only zh_CN , but Taiwanese and
Hong Kong versions will be available too in future!

Tested on :
Slacko 5.5
precise 5.6.1
EDIT: now works with Raring

Here's a useful table of versions that icake has been testing...
Image

Installation procedure:

1) After first setting up your Puppy (for instance Slacko 5.5)
the first step is to install icake-zh CN-modified-7.0.4.pet with a simple
click. There will be a message screen that will tell you to restart
X Windows. Do this. (very important!!)

2) This will now set the language to zh_CN. You can now run the
next pet package Right-click-6.9.0.pet . (see image) Choose OK
if you want the Chinese translations in the menu. Choose NO if
you want out of installation procedure.

WARNING! If your language was set differently (for instance German),
then the German right click menus would be installed!!


Image

You don't have to restart X windows, because the effect is immediate
(see image in next post.)

_________________________________
Last edited by don570 on Sat 27 Dec 2014, 17:59, edited 16 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

Here's an image of the final result. There are still a couple of translations needed.

Image

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

I upgraded right-click 6.6.4 to 6.6.5 for more Chinese translations.

Image

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#4 Post by don570 »

Now works with Barry Kauler's Raring
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




User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#5 Post by don570 »

I updated the right click package to version 6.8.8.
It appears to work properly for LANG=zh_CN


For LANG=zh_TW and LANG=zh_HK I assume that there is an icake
language package available

You should go to icake page and search his repository

Warning from icake: Please note that starting from version 8.0.0, the Chinese
Language pets do not include Chinese font file and Chinese Input Method Platform.

The recommended method to use these Chinese Language pets is to
install the universal half-Chinese Language pets. The required lowest
versions of universal half-Chinese Language pets for precise-5.7.4 are:

fcitx Chinese Input Method platform:fcitx-420-en-zh-8.0.2.pet (12 mb)
SCIM Chinese Input Method platform:SCIM-147-en-zh-8.0.1.pet (20 mb)
(or any of their newer versions)

I do all my testing on Precise 5.7.1 by Barry Kauler

______________________________________________________




_____________________________________________

Post Reply