[cc-commits] [git]cc.license (branch master) updated. 0dc142ee56f611ad80a24344d2cc0c887eaa1a57

git version control webmaster at creativecommons.org
Wed Feb 10 17:27:06 EST 2010


The branch, master has been updated
       via  0dc142ee56f611ad80a24344d2cc0c887eaa1a57 (commit)
      from  b1293fd500a027bfea06a3501e1ff27e4ee5e7de (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 0dc142ee56f611ad80a24344d2cc0c887eaa1a57
Author: Christopher Allan Webber <cwebber at dustycloud.org>
Date:   Wed Feb 10 16:16:17 2010 -0600

    Fixing the case on locale and country calls

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

Summary of changes (followed by patch):
 cc/license/formatters/classes.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc/license/formatters/classes.py b/cc/license/formatters/classes.py
index 9c762e2..d8ae5af 100644
--- a/cc/license/formatters/classes.py
+++ b/cc/license/formatters/classes.py
@@ -89,7 +89,8 @@ class HTMLFormatter(object):
         if work_dict.get('format'):
             dctype = self._translate_dctype(work_dict['format'].lower())
 
-        target_language = '%s_%s' % (locale, country)
+        target_language = '%s_%s' % (locale.lower(), country.upper())
+
         base_template = CCLPageTemplateFile(
             BASE_TEMPLATE,
             target_language=target_language)
@@ -131,12 +132,11 @@ class CC0HTMLFormatter(HTMLFormatter):
         actor_href = work_dict.get('actor_href', '').strip()
         actor = work_dict.get('name', '').strip()
         
-        target_language = '%s_%s' % (locale, country)
+        target_language = '%s_%s' % (locale.lower(), country.upper())
 
         base_template = CCLPageTemplateFile(
             CC0_BASE_TEMPLATE,
             target_language=target_language)
-        
 
         work_jurisdiction = work_dict.get('work_jurisdiction')
         country_name = None


hooks/post-receive
-- 
cc.license



More information about the cc-commits mailing list