---
title: "[分享]Beast中文Gettext PO档"
author: "Suninny"
date: "2007-03-23T21:37:29Z"
tags: [".net", "Ruby", "SVN"]
slug: "beast-gettext-po"
draft: false
lastmod: "2007-03-23T21:37:29Z"
id: 65034
url: "https://suninny.iteye.com/blog/65034"
---

Beast不久前终于提供了对GetText的支持，这样做本地化就容易多了。  
刚做了一下汉化，时间仓促，不完善的地方请指正哦　![](../../../javascripts/fckeditor/editor/images/smiley/msn/embaressed_smile.gif) ![](../../../javascripts/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif)

![](http://img126.imageshack.us/img126/8562/beastzhzf2.png)  
po档 [在此下载](http://www.rubyist.cn/beast_po_zh.zip)

安装方法：

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....