<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,9 +30,9 @@ class opentran(match.matcher):
         from the server. self.max_results sets the limit on the number of the
         returned units.
         &quot;&quot;&quot;
-        units = base.TranslationStore()
-        units.setsourcelanguage(self.source_lang)
-        units.settargetlanguage(self.target_lang)
+        result = base.TranslationStore()
+        result.setsourcelanguage(self.source_lang)
+        result.settargetlanguage(self.target_lang)
 
         if self.target_lang is not None or text is not None:
             suggs = self.server.suggest3(text, self.source_lang,
@@ -43,22 +43,22 @@ class opentran(match.matcher):
                 newunit = base.TranslationUnit(&quot;&quot;)
                 newunit.source = sugg[&quot;projects&quot;][0][&quot;orig_phrase&quot;]
                 newunit.target = sugg[&quot;text&quot;]
-                units.append(newunit)
-        return units
+                result.units.append(newunit)
+        return result
 
 
-def unit2json(units):
+def unit2json(store):
     &quot;&quot;&quot;
     Converts units retrieved from a suggestion service to a suitable format.
     &quot;&quot;&quot;
     #TODO: use the simplejson module to return data in JSON format
     response = &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot; standalone=\&quot;yes\&quot; ?&gt;\n&quot;
     response +=  &quot;&lt;entries&gt;\n&quot;
-    for unit in units.getunits():
+    for unit in store.getunits():
         response += &quot; &lt;entry&gt;\n&quot;
-        response += &quot;  &lt;source lang=\&quot;%s\&quot;&gt;%s&lt;/source&gt;\n&quot; % (units.sourcelanguage,
+        response += &quot;  &lt;source lang=\&quot;%s\&quot;&gt;%s&lt;/source&gt;\n&quot; % (store.sourcelanguage,
                                                              unit.source)
-        response += &quot;  &lt;target lang=\&quot;%s\&quot;&gt;%s&lt;/target&gt;\n&quot; % (units.targetlanguage,
+        response += &quot;  &lt;target lang=\&quot;%s\&quot;&gt;%s&lt;/target&gt;\n&quot; % (store.targetlanguage,
                                                              unit.target)
         response += &quot; &lt;/entry&gt;\n&quot;
     response +=  &quot;&lt;/entries&gt;\n&quot;</diff>
      <filename>search/suggestions.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>59f2563c4b86f0206cda49d3634bb907f1c05774</id>
    </parent>
  </parents>
  <author>
    <name>Julen Ruiz Aizpuru</name>
    <email>julenx@gmail.com</email>
  </author>
  <url>http://github.com/julen/translate/commit/24c466f4605dc7f61b1fc4d02b9a312e1dc81aee</url>
  <id>24c466f4605dc7f61b1fc4d02b9a312e1dc81aee</id>
  <committed-date>2008-11-21T08:07:51-08:00</committed-date>
  <authored-date>2008-11-21T08:07:51-08:00</authored-date>
  <message>Fix appending new units, reword variables.</message>
  <tree>6654b857b55730b37cac0dfe0eb4937664c62f02</tree>
  <committer>
    <name>Julen Ruiz Aizpuru</name>
    <email>julenx@gmail.com</email>
  </committer>
</commit>
