/[smecontribs]/rpms/translate-toolkit/contribs8/translate-toolkit-1.5.3-es_empty_string.patch
ViewVC logotype

Contents of /rpms/translate-toolkit/contribs8/translate-toolkit-1.5.3-es_empty_string.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Mar 1 15:05:01 2010 UTC (14 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: translate-toolkit-1_5_3-2_1_el5_sme, HEAD
* 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 RSS 2.0 feed