[Python-modules-commits] r19362 - in packages/django-countries/trunk/debian/patches (1 file)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Fri Nov 18 07:00:18 UTC 2011


    Date: Friday, November 18, 2011 @ 07:00:11
  Author: fladi-guest
Revision: 19362

Revert translation of OFFICIAL_COUNTRIES and update DEP3 patch description.

Modified:
  packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch

Modified: packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch
===================================================================
--- packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch	2011-11-18 02:41:51 UTC (rev 19361)
+++ packages/django-countries/trunk/debian/patches/use_iso_codes_package.patch	2011-11-18 07:00:11 UTC (rev 19362)
@@ -2,10 +2,12 @@
  Debian already provides the necessary data as part of its ico-codes package.
  This patch changes the upstream behaviour to gather the data at runtime by 
  parsing the XML files shipped with the iso-codes package.
- Translations for the countries names are also taken from iso-codes.
+ Translations for the countries names are also taken from iso-codes by using 
+ the symlinked .mo files with Django's lazy translation.
+ Sorting function by Jakub Wilk.
 Author: Fladischer Michael <FladischerMichael at fladi.at>
 Forwarded: not-needed
-Last-Update: 2011-10-18
+Last-Update: 2011-11-17
 
 --- a/django_countries/settings.py
 +++ b/django_countries/settings.py
@@ -53,7 +55,7 @@
 +    COUNTRIES_PLUS.append((_code, _name))
 +    if _name.find(', ') >= 0:
 +        COUNTRIES_PLUS.append((_code, ' '.join(reversed(_name.split(', ')))))
-+    OFFICIAL_COUNTRIES[_code.upper()] = _(_name.upper())
++    OFFICIAL_COUNTRIES[_code.upper()] = _name.upper()
 +
 +COUNTRIES_PLUS = [(_code, _(_name)) for (_code, _name) in sorted(COUNTRIES_PLUS, key=lambda node: _sort_key(node[1]))]
 +




More information about the Python-modules-commits mailing list