开发者

Add textile into rails-i18n

开发者 https://www.devze.com 2023-02-05 22:58 出处:网络
I need to add some sort of markup in my localization files of my rails project. I want something like this:

I need to add some sort of markup in my localization files of my rails project. I want something like this:

en:
开发者_开发知识库 hello: **Hello** world!

it:
 hello: ciao **mondo**!

and for example **word** could be converted with <strong>word</strong>. For example I'd like to add the textile support. I've found r18n plugin that's is very nice, but it's way too different from the i18n-rails framework and has several features I don't actually need.

Do you know any plugin that could help me? I've not found anything so far. Do you have any suggestion about tutorial I can use to extend i18n and add this feature by my self. Is anyone interested in such functionality?


Are you saying that

RedCloth.new(t(:hello)).to_html

doesn't work?

0

精彩评论

暂无评论...
验证码 换一张
取 消