[cc-commits] [SCM] license.rdf (cc.licenserdf): license RDF files and legaltext. (branch i18noverhaul) updated. 1b543c2d1b5bec2064396288e5d42d4a9b2fb6e0

Gitosis User git at gandi0.creativecommons.org
Mon Jan 9 10:25:42 EST 2012


The branch, i18noverhaul has been updated
       via  1b543c2d1b5bec2064396288e5d42d4a9b2fb6e0 (commit)
      from  40bb0a3acc932003e002cdf361c1efebd583bf4b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1b543c2d1b5bec2064396288e5d42d4a9b2fb6e0
Author: Christopher Allan Webber <cwebber at dustycloud.org>
Date:   Mon Jan 9 09:27:30 2012 -0600

    One more mapping change I forgot to commit :)

-----------------------------------------------------------------------

Summary of changes (followed by patch):
 cc/licenserdf/tools/support.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cc/licenserdf/tools/support.py b/cc/licenserdf/tools/support.py
index 5d3b786..fa65a9a 100644
--- a/cc/licenserdf/tools/support.py
+++ b/cc/licenserdf/tools/support.py
@@ -8,7 +8,7 @@ from babel.messages import pofile
 from rdflib.Graph import Graph
 from rdflib import Namespace, RDF, URIRef, Literal
 
-from cc.i18n import mapping
+from cc.i18n import mappers
 from cc.i18n.util import locale_to_lower_lower
 
 from cc.licenserdf import util
@@ -59,7 +59,7 @@ def gen_license_i18n_title(license_code, license_version, license_jurisdiction):
         i18n_str = '${Developing Nations} License'
     elif 'sampling' in license_code:
         i18n_str = '${%s} %s' % (
-            mapping.LICENSE_NAME_MAP[license_code],
+            mappers.LICENSE_NAME_MAP[license_code],
             license_version)
     elif license_code in ('MIT', 'BSD'):
         i18n_str = license_code
@@ -76,17 +76,17 @@ def gen_license_i18n_title(license_code, license_version, license_jurisdiction):
         # 'standard' license
         if license_jurisdiction:
             i18n_str = '${%s} %s ${%s}' % (
-                mapping.LICENSE_NAME_MAP[license_code],
+                mappers.LICENSE_NAME_MAP[license_code],
                 license_version,
-                mapping.COUNTRY_MAP[license_jurisdiction])
+                mappers.COUNTRY_MAP[license_jurisdiction])
         else:
             if StrictVersion(license_version) >= StrictVersion('3.0'):
                 i18n_str = '${%s} %s ${Unported}' % (
-                    mapping.LICENSE_NAME_MAP[license_code],
+                    mappers.LICENSE_NAME_MAP[license_code],
                     license_version)
             else:
                 i18n_str = '${%s} %s ${Generic}' % (
-                    mapping.LICENSE_NAME_MAP[license_code],
+                    mappers.LICENSE_NAME_MAP[license_code],
                     license_version)
 
     return i18n_str


hooks/post-receive
-- 
license.rdf (cc.licenserdf): license RDF files and legaltext.


More information about the cc-commits mailing list