# HG changeset patch # User Takumi IINO # Date 1445699960 -3600 # Node ID 59edb20f88ad8aaad2c22ffeb2fb2adc201e6d60 # Parent 6ed126ef71afdb2cbf3d6f0419a8c02b70de4ce2 i18n: some tweaks for i18n diff -r 6ed126ef71af -r 59edb20f88ad kallithea/controllers/files.py --- a/kallithea/controllers/files.py Tue Oct 20 22:18:47 2015 +0900 +++ b/kallithea/controllers/files.py Sat Oct 24 16:19:20 2015 +0100 @@ -316,7 +316,7 @@ # check if revision is a branch name or branch hash if revision not in _branches.keys() + _branches.values(): h.flash(_('You can only delete files with revision ' - 'being a valid branch '), category='warning') + 'being a valid branch'), category='warning') raise HTTPFound(location=h.url('files_home', repo_name=repo_name, revision='tip', f_path=f_path)) @@ -376,7 +376,7 @@ # check if revision is a branch name or branch hash if revision not in _branches.keys() + _branches.values(): h.flash(_('You can only edit files with revision ' - 'being a valid branch '), category='warning') + 'being a valid branch'), category='warning') raise HTTPFound(location=h.url('files_home', repo_name=repo_name, revision='tip', f_path=f_path)) diff -r 6ed126ef71af -r 59edb20f88ad kallithea/model/db.py --- a/kallithea/model/db.py Tue Oct 20 22:18:47 2015 +0900 +++ b/kallithea/model/db.py Sat Oct 24 16:19:20 2015 +0100 @@ -1692,7 +1692,7 @@ ('hg.create.write_on_repogroup.false', _('Repository creation disabled with write permission to a repository group')), ('hg.fork.none', _('Only admins can fork repositories')), - ('hg.fork.repository', _('Non-admins can can fork repositories')), + ('hg.fork.repository', _('Non-admins can fork repositories')), ('hg.register.none', _('Registration disabled')), ('hg.register.manual_activate', _('User registration with manual account activation')), diff -r 6ed126ef71af -r 59edb20f88ad kallithea/templates/admin/repos/repo_edit_advanced.html --- a/kallithea/templates/admin/repos/repo_edit_advanced.html Tue Oct 20 22:18:47 2015 +0900 +++ b/kallithea/templates/admin/repos/repo_edit_advanced.html Sat Oct 24 16:19:20 2015 +0100 @@ -53,7 +53,7 @@ ${_('Unlock Repository')} - ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} + ${_('Locked by %s on %s') % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} %else: ${h.hidden('set_lock', '1')}