This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jun 04 01:51:47 -0700 2008 | [jnicklas] |
| |
LICENSE | Wed Jun 04 01:51:47 -0700 2008 | [jnicklas] |
| |
README | Wed Jun 04 01:51:47 -0700 2008 | [jnicklas] |
| |
Rakefile | Wed Jun 04 01:51:47 -0700 2008 | [jnicklas] |
| |
init.rb | Wed Jun 04 01:51:47 -0700 2008 | [jnicklas] |
| |
lib/ | Wed Jun 04 02:07:51 -0700 2008 | [jnicklas] |
| |
spec/ | Wed Jun 04 02:07:51 -0700 2008 | [jnicklas] |
README
templater
=========
Gibberish attributes is an extension to the gibberish localization plugin, which allows a class's attributes to
automatically map to different language versions, like this:
class MyClass
include GibberishAttributes
attr_accessor :title_en, :title_es, :title_de
translate :title
end
a = MyClass.new
a.title #=> nil
a.title = "monkey"
a.title #=> "monkey"
Gibberish.current_language = :de
a.title #=> nil
a.title = "affe"
a.title #=> "affe"
Gibberish.current_language = :en
a.title #=> "monkey"
And that is it




