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 Mon 21 Apr 2014, 10:23
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Localizing Muppy 008.4 (example: chinese)
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 21 Sep 2008, 22:31    Post subject:  Localizing Muppy 008.4 (example: chinese)  

I created a chinese localization pet for Muppy 008.4.
ftp://ks301128.kimsufi.com/Muppy0084/final/C/loacalization/chinese/

Screenshot:
ftp://ks301128.kimsufi.com/Muppy0084/final/C/loacalization/chinese/Muppy0084-chinese.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/final/C/buildsystem/muppy008.4cbuild-localization.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/final/C/buildsystem/
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
Muppy0084-chinese-mini.jpg
 Description   
 Filesize   53.26 KB
 Viewed   1251 Time(s)

Muppy0084-chinese-mini.jpg


_________________
my recommended links

Last edited by MU on Mon 22 Sep 2008, 01:34; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Mon 22 Sep 2008, 00:15    Post subject: Re: Localizing Muppy 008.4 (example: chinese)  

MU wrote:
I created a chinese localization pet for Muppy 008.4.
ftp://ks301128.kimsufi.com/Muppy0084/final/C/loacalization/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?
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 22 Sep 2008, 01:32    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Mon 22 Sep 2008, 02:59    Post subject:  

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?
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 22 Sep 2008, 03:25    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Tue 23 Sep 2008, 17:34    Post subject:  

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!
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 23 Sep 2008, 17:53    Post subject:  

it does here Shocked

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Tue 23 Sep 2008, 20:57    Post subject:  

MU wrote:
it does here Shocked

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.
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 23 Sep 2008, 21:04    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Tue 23 Sep 2008, 23:07    Post subject:  

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.
Back to top
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 23 Sep 2008, 23:11    Post subject:  

ok, I don't know now, what issue this could be, so yes, manual uninstallation.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
otropogo
Guest


PostPosted: Wed 24 Sep 2008, 10:12    Post subject:  

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:
/root/.packages/Muppy0084-chinese.tar.gz

and the folder

Code:
/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?
Back to top
puppyiso


Joined: 12 Jan 2009
Posts: 595

PostPosted: Wed 25 Mar 2009, 09:37    Post subject:  

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
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 25 Mar 2009, 12:42    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
puppyiso


Joined: 12 Jan 2009
Posts: 595

PostPosted: Wed 25 Mar 2009, 20:02    Post subject: Thanks  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
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.0899s ][ Queries: 13 (0.0162s) ][ GZIP on ]