Make MobileMate speak your language

Also internationalization. Make MobileMate speak your language, there are four parts of internationalizing, they are: TinyCore tools, desktop environment, third part packages, main program.

TinyCore tools

Currently, TinyCore tools internationalizing only support UTF-8 charset and standard X11 format, you can't use truetype font, read the “info” of “fltk_projects_unicode.tcz” in the TinyCore Linux 3.x tcz packages page for detail. So you need use getlocale.tcz package in TinyCore Linux to get a UTF-8 locale, then install a X11 font, e.g., zh_CN.UTF-8 and wenquanyi_10pt.pcf for Simplified Chinese.

First, download the modified fltk_projects_unicode source file, extract the tar ball, “cd ./fltk_projects_unicode/patches”, you will find “translations.patch”, “cd ..; tar -xf fltk_projects.orig.tar.bz2; cd ./fltk_projects”, patch the translations file now, “cat ../patches/translations.patch | patch -p1”, then, based on this patched pot file and the po file of your language(if have) in the “translations” folder, you can update the po file of your language. You must creat the po file of your language if there isn't an old one. Now, you can generate the tinycore.mo file of your language from the updated(or created) po file. Then, put the tinycore.mo file into your language locale folder when you remaster the MobileMate, e.g., put it into “usr/local/share/locale/zh_CN/LC_MESSAGES” when adding zh_CN language TinyCore tools.

Desktop environment

Update or create flwm_topside_unicode.mo for you language using the similar way as fltk_projects_unicode above. Of couse, you need download the modified flwm_topside_unicode source file first.

Update “/usr/local/etc/flwm_topsiderc” for your language. This file is used for internationalizing some main menu items. There are already C(for english) and zh_CN(for simplified chinese) locales in it, you can add your language translation into it. For example, for zh_TW locale, add an item below:

TXT_MENU_APPS_C="Applications"
TXT_MENU_APPS_zh_CN="应用程序"
TXT_MENU_APPS_zh_TW="應用程式"
The third part packages

For internationalizing, it includes three packages: pcmanfm-mod-locale.tcz, gtk2-locale.tcz, zenity-locale.tcz. For reducing size, many locales have been removed. You can add your language locale file back into its place. Note, zenity-locale has been moved under “/opt/custom”.

The main program

Add the translation of your language for file “/opt/mobilemate/conf/lang.conf”, use the method for “/usr/local/etc/flwm_topsiderc” described above.

language.txt · Last modified: 2014/07/30 11:37 by littlebat
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

蜀ICP备2021012931号-1 川公网安备51092202000377号