If you can't read please download the document
Upload
fweng322
View
452
Download
0
Embed Size (px)
Citation preview
2015/11/13
1. 2. ezgo
This presentation contains technical contents, please keep awake!
104.11.132015.11.1311.13.201513.11.2015
Franklin
About me
Franklin Franklin
...
Linux Linux ......
RDDDDDDDDD!
RD 1.5
2006 KDE
ezgo
The Legend of Kryandia 1992
Might and Magic III Isles of Terra, 3 , 1991
1. 2.
Where in the World is Carmen Sandiego? 1985
1986
Apple II vs
1.000 or 1,000?
...
mm/dd/yy, yyyy/mm/dd,
1. 2.
3.
/usr/share/kde/apps/kim/kim_translation:
if [ $LANG == 'zh_TW.UTF-8' ]; thenSELECT_ALBUM_TYPE="Kim - "ONE_BY_ONE_PORTRAIT_ALBUM="1x1 "ONE_BY_ONE_LANDSCAPE_ALBUM="1x1 "ONE_BY_TWO_LANDSCAPE_ALBUM="1x2 ".........elseSELECT_ALBUM_TYPE="Kim - Select album type"ONE_BY_ONE_PORTRAIT_ALBUM="1x1 portrait album"ONE_BY_ONE_LANDSCAPE_ALBUM="1x1 landscape album"ONE_BY_TWO_LANDSCAPE_ALBUM="1x2 landscape album".........fi
/usr/bin/kim_album:
. `kde4-config --prefix`/share/kde4/apps/kim/kim_translation
dir="$1";nb=`kdialog --radiolist "$SELECT_ALBUM_TYPE" 1 "$ONE_BY_ONE_PORTRAIT_ALBUM" off 2 "$ONE_BY_ONE_LANDSCAPE_ALBUM" off 3 "$ONE_BY_TWO_LANDSCAPE_ALBUM" off 4 "$TWO_BY_ONE_PORTRAIT_ALBUM" off 5 "$TWO_BY_TWO_LANDSCAPE_ALBUM" on 6 "$THREE_BY_TWO_PORTRAIT_ALBUM" off 7 "$THREE_BY_FOUR_LANDSCAPE_ALBUM" off 8 "$FOUR_BY_FOUR_LANDSCAPE_ALBUM" off`.........
2
if (config.lang == LANG_EN) {fp = fopen(LANG_EN_FILE, "r");if (fp) {fread(langBuffer, sizeof(langBuffer), 1, fp);fclose(fp);}}......printf(langBuffer[23], a, b, c);......
Lang.en.txt:OKOpenCloseClean......
Lang.zh_TW.txt:......
Lang.zh_CN.txt:......
Linux - CLE
Chinese Linux Extension Linux
==>
ezgo
Linux - CLE
CLE
Linux, glibc, Qt, GTK+, KDE, Gnome CLE
Linux
Internationalization, i18n
locale
Localization, l10n
l10n
- Gettext
Gettext Sun Microsystems GNU project 1995 GNU Gettext
printf(gettext("My name is %s.\n"), my_name);
printf(_("My name is %s.\n"), my_name);
PO template (*.pot)
Gettext
Gettext
pot po
Po mo
PO
PO
po pot plural-forms
Plural-forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10