Localizing Muppy 008.4 (example: chinese)
Posted: Mon 22 Sep 2008, 02:31
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
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