Today's the day

向软件大牛炫耀我会焊单片机,向硬件大牛炫耀我会写 Rails,向软硬件大牛炫耀我生物,向软硬件生物大牛炫耀我会折腾期货 -_-bbb

Chito 小白鼠版
麻烦的皮肤问题

准备用 Ruby-Gettext 国际化 Chito

galeki posted @ 2008年4月19日 01:50 in Chito with tags ruby-gettext , 3884 阅读

也算是积攒经验吧,准备把 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 和 Rails 的国际化与本地化技术

查看可能需要注册,如果你懒得注册,可以去看下面这个在 ruby-lang.org.cn 上转载的:

Rails 的国际化和本地化技术

别看这些文章洋洋洒洒写了那么一大篇,其实用 Ruby-Gettext 国际化 Rails 网站很简单,如果你原来对 Gettext 有一些了解的话,会发现和国际化普通的程序没有什么两样~

现在只是比较担心插件的部分国际化,不知道能不能把语言信息和插件打包在一起,不过现在也不用考虑这么长远,到时候遇到问题再解决就是了~

  • 无匹配
  • 无匹配
top merchant service 说:
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

boutique dresses 说:
2021年4月04日 05:26

I gotta favorite this website it seems very helpful . boutique dresses

write my economics p 说:
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

credit card processi 说:
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

pintores en zaragoza 说:
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

Top Social Bookmarki 说:
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

Ozsafe Smoke Alarm S 说:
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

Chinese lawyer in Ne 说:
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

student budget 说:
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

cv formasi 说:
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. สมัครบาคาร่า
website 说:
2021年6月09日 16:55

Thank you very much for this useful article. I like it. website

check this link 说:
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

penguin glass pipe 说:
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

white label merchant 说:
2021年7月25日 18:35

Your website is really cool and this is a great inspiring article. white label merchant services

rapid city sd lawn m 说:
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

clinica de fisiotera 说:
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

Outdoor chair manufa 说:
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

fiber distribution c 说:
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

Malta College of Art 说:
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

JIMMA-UNIVERSITY 说:
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

gay Filmleri izle 说:
2021年10月11日 05:00

Thank you for the update, very nice site.. gay Filmleri izle

programmers 说:
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

javascript 说:
2021年10月30日 05:28

thanks for this usefull article, waiting for this article like this again. 안전놀이터

rose sex toy 说:
2021年11月10日 04:38

Nice to read your article! I am looking forward to sharing your adventures and experiences. the rose toy


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter