scm: use i18n string at 'Path to repository' setting in Mercurial, Git, Bazaar and Darcs.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5529 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,11 +21,12 @@ class Repository::Git < Repository
|
||||
attr_protected :root_url
|
||||
validates_presence_of :url
|
||||
|
||||
ATTRIBUTE_KEY_NAMES = {
|
||||
"url" => "Path to repository",
|
||||
}
|
||||
def self.human_attribute_name(attribute_key_name)
|
||||
ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
|
||||
attr_name = attribute_key_name
|
||||
if attr_name == "url"
|
||||
attr_name = "path_to_repository"
|
||||
end
|
||||
super(attr_name)
|
||||
end
|
||||
|
||||
def self.scm_adapter_class
|
||||
|
||||
Reference in New Issue
Block a user