Hi<br><br>I have attached the screenshots to illustrate the bug and the patch for the same.<br><br>For the bug check <br><br>[1] <a href="http://seeta.in/dextrose/sl2010/initialword1.png">http://seeta.in/dextrose/sl2010/initialword1.png</a><br>
<br>[2] <a href="http://seeta.in/dextrose/sl2010/initialword2.png">http://seeta.in/dextrose/sl2010/initialword2.png</a><br><br>To check for the patch <br><br>[1] <a href="http://seeta.in/dextrose/sl2010/finalword1.png">http://seeta.in/dextrose/sl2010/finalword1.png</a><br>
<br>[2] <a href="http://seeta.in/dextrose/sl2010/finalword2.png">http://seeta.in/dextrose/sl2010/finalword2.png</a><br><br>Regards<br><br>ishan<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 12:32 PM, Ishan Bansal <span dir="ltr"><<a href="mailto:ishan@seeta.in">ishan@seeta.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">New global variable 'newtotranslate' added to update the translated text when<br>
the language to translate is being changed.<br>
<br>
Signed-off-by: Ishan Bansal <<a href="mailto:ishan@seeta.in">ishan@seeta.in</a>>, Anubhav Aggarwal <<a href="mailto:anubhav@seeta.in">anubhav@seeta.in</a>><br>
---<br>
 pippy_app.py |    4 ++++<br>
 1 files changed, 4 insertions(+), 0 deletions(-)<br>
<br>
v1->v2 : Global variable removed and subject updated.<br>
v2->v3 : Co-author fields added in accordance with the guidelines for patch submission<br>
<br>
diff --git a/pippy_app.py b/pippy_app.py<br>
index b9a5a25..f9b0be7 100644<br>
--- a/pippy_app.py<br>
+++ b/pippy_app.py<br>
@@ -49,6 +49,7 @@ class WordsActivity(ViewSourceActivity):<br>
         self.fromlang = "English"<br>
         self.tolang   = "Spanish"<br>
         self.languagemodel = LanguageModel.LanguageModel()<br>
+        self.newtotranslate = 'none'<br>
<br>
         # Main layout.<br>
         hbox = gtk.HBox(homogeneous=True)<br>
@@ -151,6 +152,8 @@ class WordsActivity(ViewSourceActivity):<br>
<br>
     def lang2combo_cb(self, combo):<br>
         self.languagemodel.SetLanguages("English", self.langs[combo.get_active()])<br>
+        self.translated.set_text("")<br>
+        self.totranslate_cb(self.newtotranslate)<br>
<br>
     def lang1sel_cb(self, column):<br>
         # FIXME: Complete the text entry box<br>
@@ -177,6 +180,7 @@ class WordsActivity(ViewSourceActivity):<br>
<br>
     def totranslate_cb(self, totranslate):<br>
         entry = totranslate.get_text()<br>
+        self.newtotranslate = totranslate<br>
         # Ask for completion suggestions<br>
         if not entry:<br>
             return<br>
<font color="#888888">--<br>
1.7.0.4<br>
<br>
</font></blockquote></div><br>