From 82d5de4b4e3e2dbce699bb80b08ef6349e3eb5cd Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 23 Apr 2011 04:41:26 +0000 Subject: [PATCH] scm: mercurial: change "url" human attribute name from "Root directory" to "Path to repository". git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5528 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/repositories_helper.rb | 8 +++++--- app/models/repository/mercurial.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index ee95417a2..1c7d47620 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -207,10 +207,12 @@ module RepositoriesHelper end def mercurial_field_tags(form, repository) - content_tag('p', form.text_field(:url, :label => 'Root directory', + content_tag('p', form.text_field( + :url, :label => 'Path to repository', :size => 60, :required => true, - :disabled => (repository && !repository.root_url.blank?)) + - '
Local repository (e.g. /hgrepo, c:\hgrepo)' ) + + :disabled => (repository && !repository.root_url.blank?) + ) + + '
Local repository (e.g. /hgrepo, c:\hgrepo)' ) + content_tag('p', form.select( :path_encoding, [nil] + Setting::ENCODINGS, :label => l("field_scm_path_encoding") diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index b12d0b348..4cf484f96 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -27,7 +27,7 @@ class Repository::Mercurial < Repository FETCH_AT_ONCE = 100 # number of changesets to fetch at once ATTRIBUTE_KEY_NAMES = { - "url" => "Root directory", + "url" => "Path to repository", } def self.human_attribute_name(attribute_key_name) ATTRIBUTE_KEY_NAMES[attribute_key_name] || super -- 2.39.5