# HG changeset patch # User Takumi IINO # Date 2015-10-24 17:19:20 # Node ID 59edb20f88ad8aaad2c22ffeb2fb2adc201e6d60 # Parent 6ed126ef71afdb2cbf3d6f0419a8c02b70de4ce2 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 @@ -316,7 +316,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') raise HTTPFound(location=h.url('files_home', repo_name=repo_name, revision='tip', f_path=f_path)) @@ -376,7 +376,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') raise HTTPFound(location=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')}