タグ

ブックマーク / r18n.rubyforge.org (1)

  • Sinatra – R18n

    R18n for Sinatra Install gem install sinatra-r18n How To Create translations dir ./i18n/. Add file with translation in some language. For example ./i18n/en.yml: post: friends: Post only for friends tags: Post tags is %1 comments: !!pl 0: No comments 1: One comment n: %1 comments html: !!html <b>Don't escape HTML</b> Add R18n to your Sinatra application: require 'sinatra/r18n' If your application i

  • 1