# HG changeset patch # User Takumi IINO # Date 2015-10-24 17:19:20 # Node ID f569f44a8a890069510ee0b141b95ecf730bc9fc # Parent 92ebcf7d80429df49b67af4ffe58449ed543b5e0 i18n: some tweaks for i18n diff --git a/kallithea/controllers/files.py b/kallithea/controllers/files.py --- a/kallithea/controllers/files.py +++ b/kallithea/controllers/files.py @@ -315,7 +315,7 @@ class FilesController(BaseRepoController # 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') return redirect(h.url('files_home', repo_name=repo_name, revision='tip', f_path=f_path)) @@ -375,7 +375,7 @@ class FilesController(BaseRepoController # 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') return redirect(h.url('files_home', repo_name=repo_name, revision='tip', f_path=f_path)) diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -1692,7 +1692,7 @@ class Permission(Base, BaseModel): ('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 --git a/kallithea/templates/admin/repos/repo_edit_advanced.html b/kallithea/templates/admin/repos/repo_edit_advanced.html --- a/kallithea/templates/admin/repos/repo_edit_advanced.html +++ b/kallithea/templates/admin/repos/repo_edit_advanced.html @@ -53,7 +53,7 @@ ${h.form(url('edit_repo_advanced_locking ${_('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')}