Permalink
Browse files

added Isaac & Geoff as extenders in the readme

adjusted the bundle so it prints = t('somekey') instead of t('somekey')
  • Loading branch information...
1 parent c32512b commit 61fb50da72f82714f4bfbef2f544994dcfccbbc9 Isaac Sparling committed Sep 17, 2010
Showing with 3 additions and 2 deletions.
  1. +2 −1 README.md
  2. +1 −1 Support/lib/add_translation.rb
View
@@ -2,6 +2,7 @@
by Ryan Stout
http://www.agileproductions.com/
+extended by Isaac Sparling & Geoff Hichborn
## About ##
I did fine another Rails bundle that had i18n helpers, but none of them worked how I wanted them to, so I started over.
@@ -38,7 +39,7 @@ The yml files dumped out of this bundle should be in UTF-8. In the event you ge
Select a section of text and hit CMD+SHIFT+I, this will then ask you for the token that identifies this string. By default the bundle will use the controller and view as prefixes on the location of the string. A shortcut for this is in rails a . in-front of the token, which will be automatically inserted before the token. So inserted tokens will look like:
- <%= t('.your_token') %>
+ t('.your_token')
### Calculate Cost ###
@@ -50,7 +50,7 @@ def initialize
variable_str = (variables.size > 0) ? (', ' + variables.join(', ')) : ''
- print "t(:#{@token_key}#{variable_str})"
+ print "= t(:#{@token_key}#{variable_str})"
end
# Ask the user for the token they want to use for this key

0 comments on commit 61fb50d

Please sign in to comment.