public
Description: Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.
Homepage: http://www.communityengine.org
Clone URL: git://github.com/bborn/communityengine.git
tweaks to README
bborn (author)
Fri Jul 18 13:24:40 -0700 2008
commit  9665ab00fb421fa53b693baf69915a1bf905a410
tree    300486bc182c87932211c77965bf323f5258c94c
parent  8619c2d54f5bbe6eefdf28be2fc83e2824d7bd26
0
...
140
141
142
143
 
 
 
 
 
 
 
144
145
146
...
140
141
142
 
143
144
145
146
147
148
149
150
151
152
0
@@ -140,7 +140,13 @@ Note: when running in production mode, theme assets (images, js, and stylesheets
0
 ## LOCALIZATION ##
0
 Localization is done via an extended version of Globalite (http://code.google.com/p/globalite/).
0
 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.
0
-For complex strings with substitutions, Symbols respond to the .l_with_args method which takes in a hash.
0
+For complex strings with substitutions, Symbols respond to the .l method with a hash passed as an argument, for example:
0
+
0
+ :welcome.l :name => current_user.name
0
+
0
+And in your language file you'd have:
0
+
0
+ welcome: "Welcome {name}"
0
 
0
 To customize the language, or add a new language create a new yaml file in RAILS_ROOT/lang/ui.
0
 The name of the file should be LANG-LOCALE.yml (e.g. en-US.yml or es-PR)

Comments

    No one has commented yet.