<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>tools/Rails I18n.tmbundle/Commands/extract translation.tmCommand</filename>
    </added>
    <added>
      <filename>tools/Rails I18n.tmbundle/Support/lib/dictionary.rb</filename>
    </added>
    <added>
      <filename>tools/Rails I18n.tmbundle/Support/lib/rails_i18n.rb</filename>
    </added>
    <added>
      <filename>tools/Rails I18n.tmbundle/Support/lib/yaml_waml.rb</filename>
    </added>
    <added>
      <filename>tools/Rails I18n.tmbundle/info.plist</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -20,4 +20,28 @@ Then, standing in the root directory of this repository, do:
 
 ruby rails/test/structure.rb [your-locale]
 
-Assuming that there is a file rails/locale/[your-locale].{rb,yml} you will get a summary of missing and bogus keys as well as extra pluralization keys in your locale data.
\ No newline at end of file
+Assuming that there is a file rails/locale/[your-locale].{rb,yml} you will get a summary of missing and bogus keys as well as extra pluralization keys in your locale data.
+
+h2. Rails I18n Textmate bundle
+
+Still in a very experimental state but already helpful for me.
+
+The bundle adds a single command: extract translation (shift-cmd-e)
+
+# expects you to have a string selected (including single or double quotes)
+# prompts you for a dot-separated key
+# opens the file /log/translations.yml (creating it when not available)
+# adds the translation (mapping the dot-separated key to nested yaml keys)
+# replaces the selected string in your source-code with the dot-separated key wrapped into a call to t(your.key)
+
+It currently expects that you're working with English views, so it uses :en as a locale in translation.yml.
+
+Note that Textmate, while active, won't reload the translations.yml for you if it's already open. When you give the focus to another application and then go back to Textmate (e.g. with cmd-tab, cmd-tab) it will reload the file. I found it useful to have translations.yml open on a second monitor while extracting translations from my application.
+
+I still have to figure out how to automatically select the next string after this command has run. It works well to just use Textmate's &quot;Find Next&quot; though:
+
+# hit cmd-f and give it &lt;code&gt;(&quot;|').*(\1)&lt;/code&gt; as a search expression, tell it to use this as a &quot;Regular expression&quot;
+# hit return and it will select the next string
+# use shift-cmd-e to extract that string
+# hit cmd-g to select the next string
+</diff>
      <filename>README.textile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>81b2f040890a8eb7a8cb0ec649394932af0e3517</id>
    </parent>
  </parents>
  <author>
    <name>Sven Fuchs</name>
    <email>svenfuchs@artweb-design.de</email>
  </author>
  <url>http://github.com/svenfuchs/rails-i18n/commit/f97f1ca95036ed3f7dc6ca21b4400333df115341</url>
  <id>f97f1ca95036ed3f7dc6ca21b4400333df115341</id>
  <committed-date>2008-11-27T01:58:57-08:00</committed-date>
  <authored-date>2008-11-27T01:58:57-08:00</authored-date>
  <message>first stab at a simple Rails I18n Textmate bundle</message>
  <tree>a380b19ab37bb0abf7a33da818a1dbf385856a5a</tree>
  <committer>
    <name>Sven Fuchs</name>
    <email>svenfuchs@artweb-design.de</email>
  </committer>
</commit>
