rpms/translate-toolkit/devel translate-toolkit-1.4.0-bug1114-obsolete-msgctxt.patch, NONE, 1.1 translate-toolkit.spec, 1.34, 1.35

dwayne dwayne at fedoraproject.org
Mon Aug 24 14:53:59 UTC 2009


Author: dwayne

Update of /cvs/pkgs/rpms/translate-toolkit/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13456

Modified Files:
	translate-toolkit.spec 
Added Files:
	translate-toolkit-1.4.0-bug1114-obsolete-msgctxt.patch 
Log Message:
* Wed Aug 5 2009 Dwayne Bailey <dwayne at translate.org.za> - 1.4.0-2
- Upstream bug #1114 - obsolete messages should not be translatable


translate-toolkit-1.4.0-bug1114-obsolete-msgctxt.patch:
 pypo.py    |    2 +-
 test_po.py |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

--- NEW FILE translate-toolkit-1.4.0-bug1114-obsolete-msgctxt.patch ---
--- src/trunk/translate/storage/pypo.py	2009/08/21 14:25:28	12243
+++ src/trunk/translate/storage/pypo.py	2009/08/24 11:17:10	12244
@@ -477,7 +477,7 @@
         return super(pounit, self).istranslated() and not self.isobsolete()
 
     def istranslatable(self):
-        return not (self.isheader() or self.isblank())
+        return not (self.isheader() or self.isblank() or self.isobsolete())
 
     def isfuzzy(self):
         return self.hastypecomment("fuzzy")
Index: test_po.py
===================================================================
--- src/trunk/translate/storage/test_po.py	2009/08/21 14:25:28	12243
+++ src/trunk/translate/storage/test_po.py	2009/08/24 11:17:10	12244
@@ -448,8 +448,10 @@
         print pofile
         unit = pofile.units[0]
         assert not unit.isobsolete()
+        assert unit.istranslatable()
         unit.makeobsolete()
         assert unit.isobsolete()
+        assert not unit.istranslatable()
         print pofile
         assert str(unit) == poexpected
 



Index: translate-toolkit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/translate-toolkit/devel/translate-toolkit.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -p -r1.34 -r1.35
--- translate-toolkit.spec	5 Aug 2009 05:46:57 -0000	1.34
+++ translate-toolkit.spec	24 Aug 2009 14:53:59 -0000	1.35
@@ -2,7 +2,7 @@
 
 Name:           translate-toolkit
 Version:        1.4.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Tools to assist with translation and software localization
 
 Group:          Development/Tools
@@ -12,6 +12,8 @@ Source0:        http://downloads.sourcef
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Patch0:         translate-toolkit-1.2.1-stoplist.patch
+# Bug 1114
+Patch1:         translate-toolkit-1.4.0-bug1114-obsolete-msgctxt.patch
 
 BuildArch:      noarch
 BuildRequires:  python-devel
@@ -68,6 +70,7 @@ toolkit or to use the libraries in other
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p2
 
 
 %build
@@ -122,6 +125,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Aug 5 2009 Dwayne Bailey <dwayne at translate.org.za> - 1.4.0-2
+- Upstream bug #1114 - obsolete messages should not be translatable
+
 * Wed Aug 5 2009 Dwayne Bailey <dwayne at translate.org.za> - 1.4.0-1
 - Update to 1.4.0 final
 




More information about the scm-commits mailing list