[Debian-l10n-commits] r2153 - in /translate-toolkit/trunk/debian/patches: debian_gaupol_library_path poterminology_defaultstopfile
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Mon Feb 1 23:07:41 UTC 2010
Author: nekral-guest
Date: Mon Feb 1 23:07:31 2010
New Revision: 2153
URL: http://svn.debian.org/wsvn/?sc=1&rev=2153
Log:
Updated patches.
Modified:
translate-toolkit/trunk/debian/patches/debian_gaupol_library_path
translate-toolkit/trunk/debian/patches/poterminology_defaultstopfile
Modified: translate-toolkit/trunk/debian/patches/debian_gaupol_library_path
URL: http://svn.debian.org/wsvn/translate-toolkit/trunk/debian/patches/debian_gaupol_library_path?rev=2153&op=diff
==============================================================================
--- translate-toolkit/trunk/debian/patches/debian_gaupol_library_path (original)
+++ translate-toolkit/trunk/debian/patches/debian_gaupol_library_path Mon Feb 1 23:07:31 2010
@@ -1,7 +1,5 @@
-Index: trunk/translate/convert/po2sub.py
-===================================================================
---- trunk.orig/translate/convert/po2sub.py 2009-07-25 00:09:59.970212480 +0200
-+++ trunk/translate/convert/po2sub.py 2009-07-25 00:10:29.462214704 +0200
+--- a/translate/convert/po2sub.py
++++ b/translate/convert/po2sub.py
@@ -22,6 +22,8 @@
"""Convert Gettext PO localization files to subtitle files"""
@@ -9,17 +7,15 @@
+import sys
+sys.path.append("/usr/share/gaupol/lib")
from translate.storage import factory
- from translate.storage import subtitles
-Index: trunk/translate/convert/sub2po.py
-===================================================================
---- trunk.orig/translate/convert/sub2po.py 2009-07-25 00:09:59.982213079 +0200
-+++ trunk/translate/convert/sub2po.py 2009-07-25 00:10:29.470211451 +0200
+ class resub:
+--- a/translate/convert/sub2po.py
++++ b/translate/convert/sub2po.py
@@ -22,6 +22,7 @@
"""convert subtitle files to Gettext PO localization files"""
import sys
+sys.path.append("/usr/share/gaupol/lib")
from translate.storage import po
- from translate.storage import subtitles
+ def convert_store(input_store, duplicatestyle="msgctxt"):
Modified: translate-toolkit/trunk/debian/patches/poterminology_defaultstopfile
URL: http://svn.debian.org/wsvn/translate-toolkit/trunk/debian/patches/poterminology_defaultstopfile?rev=2153&op=diff
==============================================================================
--- translate-toolkit/trunk/debian/patches/poterminology_defaultstopfile (original)
+++ translate-toolkit/trunk/debian/patches/poterminology_defaultstopfile Mon Feb 1 23:07:31 2010
@@ -5,12 +5,12 @@
--- a/translate/tools/poterminology.py
+++ b/translate/tools/poterminology.py
-@@ -415,7 +415,7 @@
- parser.stoprelist = []
- parser.stopfoldtitle = True
- parser.stopignorecase = False
-- parser.defaultstopfile = file_discovery.get_abs_data_filename('stoplist-en')
-+ parser.defaultstopfile = "/usr/share/pyshared/translate/share/stoplist-en"
- parser.add_option("-S", "--stopword-list", type="string", metavar="STOPFILE",
- action="callback", callback=parse_stopword_file,
- help="read stopword (term exclusion) list from STOPFILE (default %s)" % parser.defaultstopfile,
+@@ -457,7 +457,7 @@
+
+ parser.add_option("-S", "--stopword-list", type="string", metavar="STOPFILE", dest="stopfile",
+ help="read stopword (term exclusion) list from STOPFILE (default %s)" %
+- file_discovery.get_abs_data_filename('stoplist-en'))
++ "/usr/share/pyshared/translate/share/stoplist-en")
+
+ parser.set_defaults(foldtitle = True, ignorecase = False)
+ parser.add_option("-F", "--fold-titlecase", callback=fold_case_option,
More information about the Debian-l10n-commits
mailing list