<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,13 +19,11 @@ in app/views/posts/index.html.erb:
 
   &lt;%= link_to(:new_post, new_post_path) %&gt;
 
-will lookup these translations:
-# views.posts.index.new_post
-# views.posts.common.new_post
-# views.common.new_post
+This will be the same as:
 
-Basically all these helpers do is call view_translate(). The example above
-is exactly the same as link_to(vt(:new_post), new_post_path).
+  &lt;%= link_to(t(:new_post), new_post_path) %&gt;
+
+If the argument is not a symbol, it won't call t(). In the past this would call some interesting view_translate method, which did some scoping. I moved that part (and improved it) to the &quot;Mr. T plugin&quot;:http://github.com/iain/mr.-t/. Please install that to get all kinds of wonderfull goodies for translating from views.
 
 h1. Translating existing helpers
 </diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -81,11 +81,7 @@ module I18nHelper
   # It will return the same object if no translation has been found.
   def view_translate(key, options = {})
     return key unless key.is_a?(Symbol)
-    options = {:raise =&gt; true, :scope =&gt; :views}.merge(options)
-    I18n.translate(:&quot;#{view_scope}.#{key}&quot;, options)
-  rescue I18n::MissingTranslationData =&gt; e
-    logger.warn &quot;#{e}&quot;
-    key
+    t(key, options)
   end
   alias_method :vt, :view_translate
 </diff>
      <filename>lib/i18n_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dff357743336c1eaf086422446e2ad912ec7adb1</id>
    </parent>
  </parents>
  <author>
    <name>Iain Hecker</name>
    <email>github@iain.nl</email>
  </author>
  <url>http://github.com/iain/i18n_helper/commit/e48b0f164cb54f6330375e6589557448047586d5</url>
  <id>e48b0f164cb54f6330375e6589557448047586d5</id>
  <committed-date>2009-01-23T08:25:41-08:00</committed-date>
  <authored-date>2009-01-23T08:25:41-08:00</authored-date>
  <message>Extracted view_translate to call just t(). Use Mr. T plugin, to get old behaviour back.</message>
  <tree>d5e23717b53d20483b444b47a48e7173e9af322b</tree>
  <committer>
    <name>Iain Hecker</name>
    <email>github@iain.nl</email>
  </committer>
</commit>
