21. PO file editor
● poedit
● gtranslator
● Lokalize
● gted
● Virtaal
● GNU Emacs ( PO mode )
● vi/vim (po.vim)
22.
23. % make tran
產生 article.xml
% make FORMATS=html
% firefox article.html
24. submit
● 將 Makefile 、 article.xml 、 zh_TW.po 加入版
本控制系統:
% svn add Makefile article.xml zh_TW.po
A Makefile
A article.xml
A zh_TW.po
25. ● 設定 svn:keywords property
% svn propset svn:keywords FreeBSD=%H Makefile
article.xml zh_TW.po
property 'svn:keywords' set on 'Makefile'
property 'svn:keywords' set on
'article.xml'
property 'svn:keywords' set on 'zh_TW.po'
26. ●
設定 MIME type、UTF-8 character set和 fbsd:notbinary
% svn propset svn:mime-type 'text/x-gettext-translation;
charset=UTF-8' zh_TW.po
property 'svn:mime-type' set on 'zh_TW.po'
% svn propset fbsd:notbinary yes zh_TW.po
property 'fbsd:notbinary' set on 'zh_TW.po'
% svn propset svn:mime-type 'text/xml; charset=UTF-8' article.xml
property 'svn:mime-type' set on 'article.xml'
% svn propset fbsd:notbinary yes article.xml
property 'fbsd:notbinary' set on 'article.xml'
27. Create a diff
% cd ~/doc
% svn diff zh_TW.UTF-8/articles/leap-
seconds > /tmp/leap-seconds.diff
32. 翻譯注意事項
● 保留 XML tag 不要翻譯 :
If <acronym>NTP</acronym> is not being used
●
保留字串前後的空白
● 有 PGP key 的文章不要翻譯
● $FreeBSD$ 字串要特別處理:
$FreeBSD$