Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > e8a890a0806bad090507daa262acb01f > files > 5

virtaal-0.6.1-8.fc13.src.rpm

diff -up virtaal-0.6.1/virtaal/views/unitview.py.pt_spellchecking virtaal-0.6.1/virtaal/views/unitview.py
--- virtaal-0.6.1/virtaal/views/unitview.py.pt_spellchecking	2011-01-21 08:49:15.318066554 +0200
+++ virtaal-0.6.1/virtaal/views/unitview.py	2011-01-21 08:45:55.554060417 +0200
@@ -364,6 +364,9 @@ class UnitView(gtk.EventBox, GObjectWrap
             #logging.debug('No enchant!')
             return
 
+        if language == "pt":
+            language = "pt_PT"
+
         if not enchant.dict_exists(language):
             # Sometimes enchants *wants* a country code, other times it does not.
             # For the cases where it requires one, we look for the first language