Skip to content

Commit

Permalink
Fix unicode formatting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and rossjones committed Aug 21, 2012
1 parent 7041f22 commit c8ee3e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ckan/controllers/home.py
Expand Up @@ -77,10 +77,10 @@ def index(self):
'https://www.google.com/accounts/o8/id')
if not c.userobj.email and (is_google_id and
not c.userobj.fullname):
msg = _('Please <a href="{link}">update your profile</a>'
' and add your email address and your full name. '
'{site} uses your email address'
' if you need to reset your password.'.format(link=url,
msg = _(u'Please <a href="{link}">update your profile</a>'
u' and add your email address and your full name. '
u'{site} uses your email address'
u' if you need to reset your password.'.format(link=url,
site=g.site_title))
elif not c.userobj.email:
msg = _('Please <a href="%s">update your profile</a>'
Expand Down
2 changes: 1 addition & 1 deletion ckan/i18n/check_po_files.py
Expand Up @@ -102,7 +102,7 @@ def command(self):
test_mapping_keys()
test_replacement_fields()
for path in self.args:
print 'Checking file {}'.format(path)
print u'Checking file {}'.format(path)
po = polib.pofile(path)
for entry in po.translated_entries():
for function in (simple_conv_specs, mapping_keys,
Expand Down
4 changes: 2 additions & 2 deletions ckan/logic/action/create.py
Expand Up @@ -946,7 +946,7 @@ def follow_user(context, data_dict):
if not context.get('defer_commit'):
model.repo.commit()

log.debug('User {follower} started following user {object}'.format(
log.debug(u'User {follower} started following user {object}'.format(
follower=follower.follower_id, object=follower.object_id))

return model_dictize.user_following_user_dictize(follower, context)
Expand Down Expand Up @@ -1014,7 +1014,7 @@ def follow_dataset(context, data_dict):
if not context.get('defer_commit'):
model.repo.commit()

log.debug('User {follower} started following dataset {object}'.format(
log.debug(u'User {follower} started following dataset {object}'.format(
follower=follower.follower_id, object=follower.object_id))

return model_dictize.user_following_dataset_dictize(follower, context)

0 comments on commit c8ee3e1

Please sign in to comment.