#17 ✓resolved
davesag (at gmail)

Add Internationalisation (I18n) and Localisation suppport

Reported by davesag (at gmail) | September 25th, 2010 @ 01:11 PM | in v1.0

I18n in Sinatra


  • allow user to set their preferred locale / language.
  • default to their browser's default.

Code changes

  • Text embedded in handlers or models needs to be externalised (is there a Ruby equiv to Java's ResourceBundle concept?)
  • loading of haml or erb views needs to be altered such that it will search for welcome.haml the following in order 1 views/#{ISO_country_language_dialect_code}/welcome.haml 2 views/#{ISO_country_language_code}/welcome.haml 3 views/#{ISO_language_dialect_code}/welcome.haml 4 views/#{ISO_language_code}/welcome.haml 5 views/welcome.haml

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Frank is intended to be a very simple but feature complete web-app built on top of Sinatra that provides simple user login, password reminder, and user email verification with support for simple roles. It is intended to be used by other developers as both a well documented example of Sinatra in use, and a starting point for others wishing to implement simple web apps very quickly.

Shared Ticket Bins

People watching this ticket