public
Description: Dutchify your Rails app Plugin
Homepage:
Clone URL: git://github.com/remvee/dutchify.git
remvee (author)
Sat Sep 06 06:22:43 -0700 2008
commit  8b9caf830adb177cc43cc85a5d6f2df870fdb00d
tree    e796ed12c3dd960bf35927c1a3455576e6cb76d8
parent  bc8f255ba3e7e3826181c2953404ff1cf93e2d7b
dutchify / README
100644 32 lines (25 sloc) 0.841 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
= Dutchify
Dutchify rails app by replacing americanisms with nederlanderigheden.
 
= Example
Model:
  class Bicycle < ActiveRecord::Base
    dutch_names "fiets".with_plural("fietsen"),
        :color => "kleur".with_plural("kleuren"),
        :brand => "merk".with_plural("merken")
  end
 
Scaffold it:
  class BicycleController < ApplicationController
    scaffold :bicycle
  end
 
In your view:
  Time.now.to_s # => "do 31 aug 2006, 22:13"
  42.ordinalize # => "42ste"
  "ik wil ijs".titleize # => "Ik Wil IJs"
  time_ago_in_words(Time.now + 3141) # => "ongeveer 1 uur"
  number_to_currency(3999.99) # => "&euro;3.999,99"
 
== See also
http://blog.remvee.net/2006/08/28/dutchify_plugin
 
== Author
R.W. van 't Veer
 
== Copyright
Copyright (c) 2006, 2007, 2008 R.W. van 't Veer