Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
language [2013/07/22 18:20]
littlebat created
language [2014/07/30 11:37] (current)
littlebat updated for mobilemate-0.1b1
Line 1: Line 1:
 ====== Make MobileMate speak your language ====== ====== Make MobileMate speak your language ======
  
-Also internationalization. Make MobileMate speak your language, there are three parts of internationalizing,​ they are: desktop environment,​ third part packages, main program.+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 [[http://​www.math.utah.edu/​~beebe/​fonts/​X-Window-System-fonts.html#​X11-font-formats|standard X11 format]], you can't use truetype font, read the "​info"​ of "​fltk_projects_unicode.tcz"​ in the [[http://​www.tinycorelinux.net/​3.x/​tcz/​|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 [[http://​sourceforge.net/​projects/​mobilemate/​files/​0.1/​src/​fltk_projects_unicode-3.7.1.modi.20140723.tar.gz/​download|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 == == Desktop environment ==
  
-Currentlydesktop environment internationalizing only support UTF-8 charset and [[http://www.math.utah.edu/~beebe/fonts/X-Window-System-fonts.html#X11-font-formats|standard X11 format]], you can't use truetype font, read the "​info"​ of "​fltk_projects_unicode.tcz" ​in the [[http://www.tinycorelinux.net/3.x/tcz/​|TinyCore Linux 3.x tcz packages page]] ​for detailSo you need use getlocale.tcz package in TinyCore Linux to get a UTF-locale, ​then install a X11 font, e.g., zh_CN.UTF-8 and wenquanyi_10pt.pcf for Simplified Chinese.+Update or create flwm_topside_unicode.mo for you language using the similar way as fltk_projects_unicode above. Of couseyou need download the modified ​[[http://sourceforge.net/projects/mobilemate/files/0.1/​src/​flwm_topside_unicode-3.7.1.modi.20140723.tar.gz/​download|flwm_topside_unicode source file]] first. 
 + 
 +Update ​"/usr/local/etc/flwm_topsiderc"​ for your languageThis file is used for internationalizing some main menu itemsThere 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: 
 +<​code>​ 
 +TXT_MENU_APPS_C="​Applications"​ 
 +TXT_MENU_APPS_zh_CN="​应用程序"​ 
 +TXT_MENU_APPS_zh_TW="​應用程式"​ 
 +</​code>​ 
 + 
 +== The third part packages == 
 + 
 +For internationalizing,​ it includes three packages: pcmanfm-mod-locale.tcz, gtk2-locale.tczzenity-locale.tczFor reducing sizemany locales have been removedYou 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.1374488446.txt.gz · Last modified: 2013/07/22 18:20 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号