[分享]Beast中文Gettext PO檔

Beast不久前終於提供了對GetText的支持,這樣做本地化就容易多了。
剛做了一下漢化,時間倉促,不完善的地方請指正哦 


po檔 在此下載

安裝方法:

1.下載上面提供的 zh.zip

2.將下面的代碼保存在beast的lib/tasks/gettext.rake文件中

ruby 代碼
 
  1. desc  "Create mo-files for L10n"   
  2. task :makemo   do   
  3.   require 'gettext/utils'  
  4.   GetText.create_mofiles(true "po" "locale" )  
  5. end   


3. rake makemo

4. ruby script/server

5....

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章