准备用 Ruby-Gettext 国际化 Chito
galeki
posted @ 2008年4月19日 01:50
in Chito
with tags
ruby-gettext
, 3955 阅读
也算是积攒经验吧,准备把 Chito 国际化。Rails 下的国际化方案有不少,复杂度和功能上都差别很大,可以参考这篇文章 InternationalizationComparison 里面对比了几个 Rails 的国际化方案,看下来还是决定用 Ruby-Gettext 。
Gettext 是个非常老牌和广泛使用的国际化、本地化实现,文档非常丰富,功能也非常强大,支持的 locales 也很多,po 文件还有专门的跨平台编辑器 poEdit,这样即使非编程人员,也可以用 poEdit 来轻松翻译程序中的文字信息。
Ruby-Gettext 的资料也不少,可以参考下面这两个:
Ruby-GetText-Package HOWTO for Ruby on Rails
Using Gettext To Translate Your Rails Application
中文的可以参考这篇在 IBM Developer Work 上的文章:
查看可能需要注册,如果你懒得注册,可以去看下面这个在 ruby-lang.org.cn 上转载的:
别看这些文章洋洋洒洒写了那么一大篇,其实用 Ruby-Gettext 国际化 Rails 网站很简单,如果你原来对 Gettext 有一些了解的话,会发现和国际化普通的程序没有什么两样~
现在只是比较担心插件的部分国际化,不知道能不能把语言信息和插件打包在一起,不过现在也不用考虑这么长远,到时候遇到问题再解决就是了~
2021年4月01日 18:58
Keep up the good work; I read few posts on this website, including I consider that your blog is fascinating and has sets of the fantastic piece of information. Thanks for your valuable efforts. top merchant services companies to work for
2021年4月04日 05:26
I gotta favorite this website it seems very helpful . boutique dresses
2021年4月04日 15:50
It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! write my economics paper
2021年4月05日 04:13
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers. credit card processing agent programs
2021年4月06日 05:20
I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. pintores en zaragoza
2021年4月08日 05:57
I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. Top Social Bookmarking Sites
2021年4月08日 06:09
Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. Ozsafe Smoke Alarm Service
2021年4月08日 06:41
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Chinese lawyer in New York
2021年4月08日 06:52
I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information. student budget
2021年4月12日 06:31
very interesting keep posting. papel pintado zaragoza
2021年4月24日 08:19
Thank you for sharing a bunch of this quality contents, I have bookmarked your blog. Please also explore advice from my site. I will be back for more quality contents. cv
2021年4月30日 19:28 Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. สมัครบาคาร่า
2021年6月09日 16:55
Thank you very much for this useful article. I like it. website
2021年6月10日 23:43
You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... woven patches
2021年6月27日 04:11
This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post. penguin glass pipe
2021年7月25日 18:35
Your website is really cool and this is a great inspiring article. white label merchant services
2021年8月21日 05:23
I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. rapid city sd lawn mowing company
2021年9月11日 04:55
Only strive to mention one's content can be as incredible. This clarity with your post is superb! Thanks a lot, hundreds of along with you should go on the pleasurable get the job done. clinica de fisioterapia en queretaro
2021年9月20日 04:57
You have beaten yourself this time, and I appreciate you and hopping for some more informative posts in future. Thank you for sharing great information to us. Outdoor chair manufacturer
2021年9月20日 07:18
Excellent blog! I found it while surfing around on Google. Content of this page is unique as well as well researched. Appreciate it. fiber distribution cabinet
2021年9月24日 17:04
I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. Malta College of Arts Science and Technoogy
2021年9月24日 18:38
I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,.. JIMMA-UNIVERSITY
2021年10月11日 05:00
Thank you for the update, very nice site.. gay Filmleri izle
2021年10月18日 04:04
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. programmers
2021年10月30日 05:28
thanks for this usefull article, waiting for this article like this again. 안전놀이터
2021年11月10日 04:38
Nice to read your article! I am looking forward to sharing your adventures and experiences. the rose toy