Commit baa351a2 authored by tmaruyama's avatar tmaruyama
Browse files

scm: mercurial: change "url" human attribute name from "Root directory" to "Path to repository".

git-svn-id: https://svn.redmine.org/redmine/trunk@5528 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e9ba2bd2
......@@ -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?)) +
'<br />Local repository (e.g. /hgrepo, c:\hgrepo)' ) +
:disabled => (repository && !repository.root_url.blank?)
) +
'<br />Local repository (e.g. /hgrepo, c:\hgrepo)' ) +
content_tag('p', form.select(
:path_encoding, [nil] + Setting::ENCODINGS,
:label => l("field_scm_path_encoding")
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment