Localizing Muppy 008.4 (example: chinese)

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Localizing Muppy 008.4 (example: chinese)

#1 Post by MU »

I created a chinese localization pet for Muppy 008.4.
ftp://ks301128.kimsufi.com/Muppy0084/fi ... n/chinese/

Screenshot:
ftp://ks301128.kimsufi.com/Muppy0084/fi ... hinese.jpg

As I have no knowledge in chinese, it is incomplete.

But it can be used as a base for enhancements.
And as an example for localization.

I created a folder "/chinese", and copied there files from the buildsystem.
Then I created the pet with "dir2pet chinese".

If you just want to use this pet:
download it, and click on it in the filemanager, to install it.
Ignore the rest of this message.

If you want to look, how this pet was created:
Download the pet, and rename it to ".tgz".
Now you can extract it with xarchive somewhere, to have a closer look.

You will find
usr/lib/locale/zn*
usr/share/i18n/*
These files were taken from:
ftp://ks301128.kimsufi.com/Muppy0084/fi ... zation.tgz
This archiv contains the localization files from glibc 2.7, and X11.

You also will find files like
usr/share/locale/*
This folder usually contains the ".mo" files, the translations of typical applications.
They were taken from muppy008.4cbuild.tgz.
ftp://ks301128.kimsufi.com/Muppy0084/fi ... ildsystem/
That has a folder muppy008.4cbuild/locale-LIVE.
It contains all these .mo files included in the buildsystem.
It is created, when you run the "build-live" script.
That script copies all unused .mo files to locale-LIVE, before they are deleted for the final release.
A final release supports only one language, because all languages would make it much huger.

For some countries, you also need a special font.
Via google I found fireflysung.ttf.
I placed it in usr/share/fonts/default/TTF/.

I finally added a script, that will run chooselocale after the pet was installed.
It suggests, to choose a .utf8 locale.

Muppy by default uses .utf8 only partially.
In older versions, some programs crashed with utf8.
Meanwhile, as most were updated, this should no longer be an issue (hopefully, we must test this in detail).
So you can activate .utf8, what is required, so that the webbrowsers can display chinese characters.

Muppys panel currently does not support such localization pets, it needs to be upgraded by me.
So to use a chinese menu, start the desktop environment chooser, and select "Icewm with lxpanel", or try one of the other desktops.

I will add more messages in future, that will give you more hints to localize Muppy.
If you need more info before, just ask.

Mark
Attachments
Muppy0084-chinese-mini.jpg
(53.26 KiB) Downloaded 1349 times
Last edited by MU on Mon 22 Sep 2008, 05:34, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

Re: Localizing Muppy 008.4 (example: chinese)

#2 Post by otropogo »

MU wrote:I created a chinese localization pet for Muppy 008.4.
ftp://ks301128.kimsufi.com/Muppy0084/fi ... n/chinese/

...
If you need more info before, just ask.

Mark
Have read your instructions a couple of times, but am still not sure what to do with this download.

I renamed it with the tgz extension and extracted it, and it created a folder, but there was a "wrapper error" message.

What do I do with this folder now?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

no, just download it, and click on it to install.

The xarchive is only for people, who want to extract it, to look in detail how it was created.

As you just want to use it, just click on the .pet.
I updated the first message, to avoid further confusion.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

#4 Post by otropogo »

MU wrote:no, just download it, and click on it to install.

Mark
Ok. Thanks. And I assume it was the en-utf8 I was supposed to select?

I've just tried xys.org in all of Muppy LiveCd's browsers.

Seamonkey, Opera, and Firefox now display the page fully. But Netsurf and Dillo still don't show a single character of the text.

BTW- I was taken by surprise by the amount of storage this pet takes when installed. The archive is only 11MB, and when extracted it's only 31 MB, yet it's taken a 70MB chunk out of my available storage.

Looks like I'm going to have to enlarge my 2sf file by another 64MB.

It seems to me that the Puppy fonts only took up about 16MB. Why is this installation so much bigger?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

en.utf is ok.

Netsurf and Dillo have no UTF support.
At least Dillo does not because it is based on Gtk1, and I think netsurf is too new.

The pet is so huge because it adds chinese translation for several applications.
For your special purpose, I think only the font is needed.
You could rename it with the filemanager, then uninstall the pet.
Like:
/usr/share/fonts/default/TTF/fireflysung.ttf-backup

Then when you uninstalled the pet, restore
/usr/share/fonts/default/TTF/fireflysung.ttf

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

#6 Post by otropogo »

MU wrote:...
The pet is so huge because it adds chinese translation for several applications.
For your special purpose, I think only the font is needed.
You could rename it with the filemanager, then uninstall the pet.
Like:
/usr/share/fonts/default/TTF/fireflysung.ttf-backup

Then when you uninstalled the pet, restore
/usr/share/fonts/default/TTF/fireflysung.ttf

Mark
Tried this just now to get the annoying space alarm off my back, but ran into a fatal hitch - Muppy0084-chinese.pet does NOT appear in my petget list of installed pets!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

it does here :shock:

Pease look, if you have the file:
/root/.packages/Muppy0084-chinese.files

You also could delete the folders that begin with /zh_
in:
/usr/lib/locale/
/usr/share/locale/
/usr/local/Gnumeric-1.8.2/share/locale/

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

#8 Post by otropogo »

MU wrote:it does here :shock:

Pease look, if you have the file:
/root/.packages/Muppy0084-chinese.files
Yes it's there./root/.packages also contains Muppy0084-chinese.tar.gz, which is 11MB, and the folder Muppy0084-chinese, which holds 32MB.

Can I delete those too?
MU wrote:You also could delete the folders that begin with /zh_
in:
/usr/lib/locale/
/usr/share/locale/
/usr/local/Gnumeric-1.8.2/share/locale/

Mark
the Zh_ folders combined only held 12MB.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

this looks like, that petget could not install completely.
Maybe your savefile was full?

/root/.packages/Muppy0084-chinese.tar.gz
That can be deleted, it usually is, when petget finishes successfully.

Also the folder /root/.packages/Muppy0084-chinese, if that exists.

Now that you enlarged your savefile, you also could install again.
Then it should finish successfully, so that now it can be uninstalled cleanly with petget.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

#10 Post by otropogo »

MU wrote:this looks like, that petget could not install completely.
Maybe your savefile was full?

/root/.packages/Muppy0084-chinese.tar.gz
That can be deleted, it usually is, when petget finishes successfully.

Also the folder /root/.packages/Muppy0084-chinese, if that exists.

Now that you enlarged your savefile, you also could install again.
Then it should finish successfully, so that now it can be uninstalled cleanly with petget.

Mark
Well. I thought your suggestion was worth a try. So I installed the pet again. I got a warning that it was already installed, but went ahead. This time I didn't get the successful install pop-up, which I did get previously, I did get the locale script though. And I still have 101MB available, so I couldn't have run out of room.

But when I run petget, there's nothing in the right column to uninstall...

So I guess I'll have to do it all manually.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »

ok, I don't know now, what issue this could be, so yes, manual uninstallation.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

otropogo

#12 Post by otropogo »

MU wrote:ok, I don't know now, what issue this could be, so yes, manual uninstallation.
Mark
OK. Removed all but the fireflysung.ttf fonts, and recovered some 50+MB of space in my save file.

Evidently, your pet did not work properly on my system, if I understood your previous posts properly, because both the archive

Code: Select all

/root/.packages/Muppy0084-chinese.tar.gz 
and the folder

Code: Select all

/root/.packages/Muppy0084-chinese
persisted.

If petget had worked as you suggest it should, then the overhead on my system would have been 43MB smaller, and perhaps hardly worth removing the localization support....

Now I need a program that will translate the Chinese Characters I can now display into English (will settle for German, French, Spanish, or even Russian in a pinch) preferably with phonetics and Mandarin tones.

Any idea how I would find such a program for Linux?

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#13 Post by puppyiso »

Hi, Mark

You have said that Chinese is an example. Can you give an example for Korean?

Korean Puppy has been my absolute need for years.

I tried other huge and dull distros handling multi languages but too slow for my computer.

Please find some time to reply.

John S

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#14 Post by MU »

the best will be to use Ultrapup (UP), or newyearspup (NYP), that is based on ultrapup.

UP is based on utf8 completely, while Puppy is based on Iso characters, with additional applications supporting utf8.
So Puppy is a mix of both, what can make translation pretty complicated.

Newyearspup includes all the locale files, for Ultrapup there is an additional sfs available.

NYP has:
/usr/lib/locale/ko_KR.utf8

And these applications localizations in
/usr/share/locale/ko/LC_MESSAGES/
atk10.mo
ccsm.mo
compiz-fusion-plugins-extra.mo
compiz-fusion-plugins-main.mo
compiz-fusion-plugins.mo
compiz-fusion-plugins-unsupported.mo
compiz.mo
coreutils.mo
emerald.mo
findutils.mo
gdesklets.mo
gettext-runtime.mo
gftp.mo
gimp20-libgimp.mo
gimp20.mo
gimp20-python.mo
gimp20-script-fu.mo
gimp20-std-plug-ins.mo
gimp20-tips.mo
glib20.mo
gnome-menus.mo
grep.mo
gtk20.mo
gtk20-properties.mo
leafpad.mo
libc.mo
lxpanel.mo
mplayerplug-in.mo
sed.mo
shared-mime-info.mo
sylpheed.mo
ufraw.mo

This is not much, so you will have to look for more translations.
Sometimes you can just copy files from other distros, even if the version of a program is not exactly identical with the one in Puppy.

I don't know, which font must be installed in addition, so that you can see korean characters.

I just see, that a korean Puppy was released:
http://www.murga-linux.com/puppy/viewtopic.php?t=40192
You have found it already.

If I visit the website, I only see some english word, so NYP has no matching korean font installed.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

Thanks

#15 Post by puppyiso »

Thank you for your prompt reply.

I visited his site. He described how to make Korean letter input possible.

But it says I have to compile some files..

For some reason, GCC doesn't work in my computer and I am no technician. I asked him to make an ISO available to everyone but noanswer so far.

If he makes it, I am more than happy to host it in my website (it is for teaching English but who cares?)

Japanese and Chinese are very active on making their own local distros but not Koreans. I 've seen Vietnamese, Thai, Spanish, German, Russian, French, Japanese, Chinese Puppies but not Koprean's

Why? I have no idea...

Do you want me to translate that document for you?

John S

Post Reply