Permalink
Browse files

tweaks to README

  • Loading branch information...
1 parent 8619c2d commit 9665ab00fb421fa53b693baf69915a1bf905a410 Bruno Bornsztein committed Jul 18, 2008
Showing with 7 additions and 1 deletion.
  1. +7 −1 README
View
8 README
@@ -140,7 +140,13 @@ Note: when running in production mode, theme assets (images, js, and stylesheets
## LOCALIZATION ##
Localization is done via an extended version of Globalite (http://code.google.com/p/globalite/).
Strings and Symbols respond to the .l method that allows for a look up of the symbol (or a symbolized version of the string) into a strings file which is stored in yaml.
-For complex strings with substitutions, Symbols respond to the .l_with_args method which takes in a hash.
+For complex strings with substitutions, Symbols respond to the .l method with a hash passed as an argument, for example:
+
+ :welcome.l :name => current_user.name
+
+And in your language file you'd have:
+
+ welcome: "Welcome {name}"
To customize the language, or add a new language create a new yaml file in RAILS_ROOT/lang/ui.
The name of the file should be LANG-LOCALE.yml (e.g. en-US.yml or es-PR)

0 comments on commit 9665ab0

Please sign in to comment.