Parent Directory | Revision Log | Revision Graph
* Wed Feb 24 2010 Shad L. Lords <slords@mail.com> 1.5.3-2.1 - Test correctly for the case of an empty string (es)
1 | Modified: src/trunk/translate/lang/es.py |
2 | =================================================================== |
3 | --- src/trunk/translate/lang/es.py 2010-02-26 06:30:13 UTC (rev 13851) |
4 | +++ src/trunk/translate/lang/es.py 2010-02-26 06:31:59 UTC (rev 13852) |
5 | @@ -43,6 +43,9 @@ |
6 | first = firstmatch.group() |
7 | # remove trailing whitespace |
8 | first = first.strip() |
9 | + # protect against incorrectly handling an empty string |
10 | + if not first: |
11 | + return text |
12 | if first[-1] == '?': |
13 | text = u"¿" + text |
14 | elif first[-1] == '!': |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |