Modified: src/trunk/translate/lang/es.py =================================================================== --- src/trunk/translate/lang/es.py 2010-02-26 06:30:13 UTC (rev 13851) +++ src/trunk/translate/lang/es.py 2010-02-26 06:31:59 UTC (rev 13852) @@ -43,6 +43,9 @@ first = firstmatch.group() # remove trailing whitespace first = first.strip() + # protect against incorrectly handling an empty string + if not first: + return text if first[-1] == '?': text = u"¿" + text elif first[-1] == '!':