Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
language [2013/07/31 16:41]
littlebat
language [2014/07/30 11:37] (current)
littlebat updated for mobilemate-0.1b1
Line 7: Line 7:
 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. 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.20130618.tar.gz/​download|fltk_projects_unicode source file]], extract the tar ball, "''​cd ./​fltk_projects_unicode/​patches''",​ you will find tinycore.pot and zh_CN.po file have been patched, "''​cd ..; tar -xf fltk_projects.orig.tar.bz2;​ cd ./​fltk_projects/​translations''"​, you will find original pot and some po files, patch the pot file now, "''​cat ​../../patches/tinycore.pot.patch | patch -p2''",​ then, based on this patched pot file and the po file of your language(if have) in the same 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.+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 ==
  
-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 [[http://​sourceforge.net/​projects/​mobilemate/​files/​0.1/​src/​flwm_topside_unicode-3.7.1.modi.20130618.tar.gz/​download|flwm_topside_unicode source file]] first.+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 [[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 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: 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:
Line 23: Line 23:
  
 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"​. 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"​.
- 
-For pcmanfm-mod package, you also need add the translation of your language for file "/​opt/​custom/​etc/​lang.conf",​ use the method for "/​usr/​local/​etc/​flwm_topsiderc"​ described above. 
  
 == The main program == == 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. Add the translation of your language for file "/​opt/​mobilemate/​conf/​lang.conf",​ use the method for "/​usr/​local/​etc/​flwm_topsiderc"​ described above.
- 
-== PS == 
- 
-If you want compile "​fltk_projects_unicode"​ or "​flwm_topside_unicode"​ from source, you need re-compile and install "​fltk-1.3"​ and "​fltk-1.3-dev"​ from [[http://​www.tinycorelinux.net/​3.x/​tcz/​src/​fltk-1.3/​fltk-1.3.tar.xz|fltk-1.3 source]] at first. 
language.1375260100.txt.gz · Last modified: 2013/07/31 16:41 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号