<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,7 +38,9 @@ class TranslateController &lt; ActionController::Base
     @keys = (@files.keys.map(&amp;:to_s) + Translate::Keys.new.i18n_keys(@from_locale)).uniq    
     @keys.reject! do |key|
       from_text = lookup(@from_locale, key)
-      (@from_locale != @to_locale &amp;&amp; !from_text.present?) || !from_text.is_a?(String)
+      # When translating from one language to another, make sure there is a text to translate from.
+      # Always exclude non string translation objects as we don't support editing them in the UI.
+      (@from_locale != @to_locale &amp;&amp; !from_text.present?) || (from_text.present? &amp;&amp; !from_text.is_a?(String))      
     end
   end
 </diff>
      <filename>lib/translate_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7e01079d862c26340710f371566cc38f7892f06e</id>
    </parent>
  </parents>
  <author>
    <name>Peter Marklund</name>
    <email>peter_marklund@fastmail.fm</email>
  </author>
  <url>http://github.com/sermoa/translate/commit/6203065377f229fb1b538040ed206731a2844412</url>
  <id>6203065377f229fb1b538040ed206731a2844412</id>
  <committed-date>2009-04-20T01:46:34-07:00</committed-date>
  <authored-date>2009-04-20T01:46:34-07:00</authored-date>
  <message>When editing texts within a single locale (from and to locale are the same) - don't exclude texts that are nil. Thanks ozataman for reporting and providing a fix for this.</message>
  <tree>9604a22d67c6b90c928546cc9917bf4cdb7e109a</tree>
  <committer>
    <name>Peter Marklund</name>
    <email>peter_marklund@fastmail.fm</email>
  </committer>
</commit>
