[Debian-l10n-commits] r1355 - in /pootle/trunk: current/ debian/README.Debian debian/changelog debian/control debian/patches/debian_dont_send_password_by_mail.patch debian/patches/pootle_fix_support_for_xlf_files.patch debian/patches/series

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Fri Sep 26 21:19:40 UTC 2008


Author: nekral-guest
Date: Fri Sep 26 21:19:39 2008
New Revision: 1355

URL: http://svn.debian.org/wsvn/?sc=1&rev=1355
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    pootle/trunk/debian/patches/debian_dont_send_password_by_mail.patch
    pootle/trunk/debian/patches/pootle_fix_support_for_xlf_files.patch
Removed:
    pootle/trunk/current/
Modified:
    pootle/trunk/debian/README.Debian
    pootle/trunk/debian/changelog
    pootle/trunk/debian/control
    pootle/trunk/debian/patches/series

Modified: pootle/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/README.Debian?rev=1355&op=diff
==============================================================================
--- pootle/trunk/debian/README.Debian (original)
+++ pootle/trunk/debian/README.Debian Fri Sep 26 21:19:39 2008
@@ -31,3 +31,12 @@
 Only this Pootle admin will be able to add new projects and languages, or
 to configure the rights of the other users.
 
+
+Security
+========
+Pootle implements an HTTP server. The users' passwords and translation are
+transfered without any protection.
+In order to secure the connexions to Pootle, you should use a SSL proxy.
+
+You can find an example of how to configure an apache proxy on:
+http://translate.sourceforge.net/wiki/pootle/apache

Modified: pootle/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/changelog?rev=1355&op=diff
==============================================================================
--- pootle/trunk/debian/changelog (original)
+++ pootle/trunk/debian/changelog Fri Sep 26 21:19:39 2008
@@ -1,3 +1,18 @@
+pootle (1.1.0-2) unstable; urgency=low
+
+  * debian/patches/pootle_fix_support_for_xlf_files.patch: Fix the support for
+    the XLIFF format. This patch was recommended by upstream. Without it, no
+    strings will be loaded from the XLIFF files. Closes: #495324
+  * debian/patches/debian_dont_send_password_by_mail.patch: Do not send clear
+    text password in the subscription confirmation emails. Thanks to Helge
+    Kreutzmann (http://lists.debian.org/debian-i18n/2008/08/msg00013.html)
+    Closes: #495323
+  * debian/README.Debian: Document the lack of SSL support and links to
+    documentation for the setup of proxies. Closes: #495323
+  * debian/control: Standards-Version bumped to 3.8.0 (no changes).
+
+ -- Nicolas FRANCOIS (Nekral) <nicolas.francois at centraliens.net>  Sat, 16 Aug 2008 05:21:53 -0300
+
 pootle (1.1.0-1) unstable; urgency=low
 
   * New upstream release

Modified: pootle/trunk/debian/control
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/control?rev=1355&op=diff
==============================================================================
--- pootle/trunk/debian/control (original)
+++ pootle/trunk/debian/control Fri Sep 26 21:19:39 2008
@@ -5,7 +5,7 @@
 Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6)
 Build-Depends: debhelper (>= 5.0.38), quilt (>= 0.40)
 XS-Python-Version: current, >= 2.3
-Standards-Version: 3.7.3
+Standards-Version: 3.8.0
 
 Package: pootle
 Architecture: all

Added: pootle/trunk/debian/patches/debian_dont_send_password_by_mail.patch
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/debian_dont_send_password_by_mail.patch?rev=1355&op=file
==============================================================================
--- pootle/trunk/debian/patches/debian_dont_send_password_by_mail.patch (added)
+++ pootle/trunk/debian/patches/debian_dont_send_password_by_mail.patch Fri Sep 26 21:19:39 2008
@@ -1,0 +1,13 @@
+Index: pootle-1.1.0/Pootle/users.py
+===================================================================
+--- pootle-1.1.0.orig/Pootle/users.py	2008-08-16 05:08:38.961117386 -0300
++++ pootle-1.1.0/Pootle/users.py	2008-08-16 05:08:45.849115378 -0300
+@@ -448,7 +448,7 @@
+     session.saveprefs()
+     message += session.localize("Your user name is: %s\n", username)
+     if password.strip():
+-      message += session.localize("Your password is: %s\n", password)
++      message += session.localize("Your password is: %s\n", "XXXXXX")
+     message += session.localize("Your registered email address is: %s\n", email)
+     smtpserver = self.instance.registration.smtpserver
+     fromaddress = self.instance.registration.fromaddress

Added: pootle/trunk/debian/patches/pootle_fix_support_for_xlf_files.patch
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/pootle_fix_support_for_xlf_files.patch?rev=1355&op=file
==============================================================================
--- pootle/trunk/debian/patches/pootle_fix_support_for_xlf_files.patch (added)
+++ pootle/trunk/debian/patches/pootle_fix_support_for_xlf_files.patch Fri Sep 26 21:19:39 2008
@@ -1,0 +1,81 @@
+Goal: Fix importation of XLF files in Pootle 1.1.0
+
+Status wrt upstream: Recommended by upstream
+                     see http://bugs.locamotion.org/show_bug.cgi?id=448
+                     Not needed in Pootle > 1.1.0
+
+Index: pootle-1.1.0/Pootle/translatepage.py
+===================================================================
+--- pootle-1.1.0.orig/Pootle/translatepage.py	2008-02-29 04:42:48.000000000 -0300
++++ pootle-1.1.0/Pootle/translatepage.py	2008-08-16 04:57:11.617121075 -0300
+@@ -25,6 +25,7 @@
+ from Pootle import projects
+ from Pootle import pootlefile
+ from translate.storage import po
++from translate.misc.multistring import multistring
+ import difflib
+ import urllib
+ 
+@@ -427,8 +428,14 @@
+       suggestions = {self.item: self.project.getsuggestions(self.pofilename, self.item)}
+     for row, unit in enumerate(self.translations):
+       tmsuggestions = []
+-      orig = unit.source.strings
+-      trans = unit.target.strings
++      if isinstance(unit.source, multistring):
++        orig = unit.source.strings
++      else:
++        orig = [unit.source]
++      if isinstance(unit.target, multistring):
++        trans = unit.target.strings
++      else:
++        trans = [unit.target]
+       nplurals, plurals = self.project.getpofile(self.pofilename).getheaderplural()
+       try:
+         if len(orig) > 1:
+Index: pootle-1.1.0/Pootle/statistics.py
+===================================================================
+--- pootle-1.1.0.orig/Pootle/statistics.py	2008-01-21 05:21:59.000000000 -0200
++++ pootle-1.1.0/Pootle/statistics.py	2008-08-16 04:57:11.621123245 -0300
+@@ -1,6 +1,7 @@
+ import os
+ from translate.storage import statsdb
+ from translate.filters import checks
++from translate.misc.multistring import multistring
+ 
+ def getmodtime(filename, default=None):
+   """gets the modificationtime of the given file"""
+@@ -192,14 +193,29 @@
+     self.sourcewordcounts = []
+     self.targetwordcounts = []
+     for unit in self.basefile.transunits:
+-      self.sourcewordcounts.append([statsdb.wordcount(text) for text in unit.source.strings])
+-      self.targetwordcounts.append([statsdb.wordcount(text) for text in unit.target.strings])
++      if isinstance(unit.source, multistring):
++        sourcestrings = unit.source.strings
++      else:
++        sourcestrings = [unit.source]
++      if isinstance(unit.target, multistring):
++        targetstrings = unit.target.strings
++      else:
++        targetstrings = [unit.target]
++          
++      self.sourcewordcounts.append([statsdb.wordcount(text) for text in sourcestrings])
++      self.targetwordcounts.append([statsdb.wordcount(text) for text in targetstrings])
+ 
+   def reclassifyunit(self, item):
+     """updates the classification of a unit in self.classify"""
+     unit = self.basefile.transunits[item]
+-    self.sourcewordcounts[item] = [statsdb.wordcount(text) for text in unit.source.strings]
+-    self.targetwordcounts[item] = [statsdb.wordcount(text) for text in unit.target.strings]
++    if unit.hasplural():
++        sources = unit.source.strings
++        targets = unit.target.strings
++    else:
++        sources = [unit.source]
++        targets = [unit.target]
++    self.sourcewordcounts[item] = [statsdb.wordcount(text) for text in sources]
++    self.targetwordcounts[item] = [statsdb.wordcount(text) for text in targets]
+     classes = self.classifyunit(unit)
+     if self.basefile.getsuggestions(item):
+       classes.append("has-suggestion")

Modified: pootle/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/series?rev=1355&op=diff
==============================================================================
--- pootle/trunk/debian/patches/series (original)
+++ pootle/trunk/debian/patches/series Fri Sep 26 21:19:39 2008
@@ -4,3 +4,5 @@
 pootle_ll_CC_languages.patch
 #pootle_no_autoload_language.patch
 pootle_continue_after_po_failure.patch
+pootle_fix_support_for_xlf_files.patch
+debian_dont_send_password_by_mail.patch




More information about the Debian-l10n-commits mailing list