Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails 3 (and also Rails 2) demo application of the Enrichments (e9s) gem
JavaScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.textile
Rakefile
config.ru

README.textile

E9s Demo (Rails 3)

A simple Rails 3 application in which the Enrichments (e9s) gem is demonstrated.

Introduction

E9s was created due to the need of simply implementing I18n within a Rails application. This simplifies internationalization of your Rails application making a Rails developers life much easier. E9s is divided into modules (as gem and plugin): Rich-CMS , Rich-i18n and Rich-pluralization.

Try out the demo yourself

In Rails 3

Clone the git repository:

  git clone git://github.com/archan937/e9s-demo.git && cd e9s-demo

Run the following in your console to install with Bundler:

  sudo bundle install

Run the Rails server:

  rails s

In Rails 2

Clone the git repository:

  git clone git://github.com/archan937/e9s-demo.git && cd e9s-demo

Check out the rails2 branch:

  git checkout origin/rails2

Run the following in your console to install gem dependencies:

  sudo rake gems:install

Run the Rails server:

  script/server

Open your browser

Visit http://localhost:3000/cms and log in with paul.engel@holder.nl and test. Click on Mark content and start translating! ^^

A list of E9s features

Pluggable CMS

  • Easy setup – Rich-CMS only has a two-liner setup
  • Authentication – Easily specify the authentication logic to be used
  • Add editable content – Easily specify content available within the CMS by registering them

I18n

  • Translate on-site – Just specify you want to use Rich-CMS and you are set to translate in the front-end
  • Localized pluralization – Translations only in singular form are sufficient enough as E9s can pluralize in foreign languages
  • Default values – Use the translation key (or a portion) as default value: "continue".t returns "continue" and "text.Welcome_to_our_site".t returns "Welcome to our site"
  • An easy interface – Just call the t method on string or symbols to translate and pl to pluralize
  • Combine translations – Joining keys with spaces combines translations: "More houses".t returns "Meer huizen" in Dutch
  • Preserve i18n meta data – Rich-i18n preserves the translation key, value, locale and derivative key (the argument passed for translation). Enquiring this can come in handy when implementing an internationalization CMS (see Rich-CMS).

Formtastic

  • Labels, seatholders and default values – Not only translate labels, but also hint text (so called seatholders) and even translate default values
  • Unobtrusive implementation – Translate labels and seatholders unobtrusively, in other words: leave your semantic_form_for (view) code completely untouched
  • Specific translations – Not only specify general translations for labels and seatholders, but make them model or even form specific

Inflections

  • Preserve character casing – E9s preserves the casing in your translations: "save".t returns "bewaar", "Save".t returns "Bewaar" and "SAVE".t returns "BEWAAR" in Dutch
  • Preserve pluralization – E9s singularizes or pluralizes your translations depending on the key: "house".t returns "huis" and "Houses".t returns "Huizen" in Dutch

Contact me

For support, remarks and requests please mail me at paul.engel@holder.nl.

Enrichments

The all-in-one gem at – http://codehero.es/rails_gems_plugins/e9shttp://github.com/archan937/e9s

E9s modules

License

Copyright © 2010 Paul Engel, released under the MIT license

http://holder.nlhttp://codehero.eshttp://gettopup.comhttp://twitter.com/archan937paul.engel@holder.nl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.