summaryrefslogtreecommitdiffstats
path: root/app/models/repository/mercurial.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-23 07:37:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-23 07:37:03 +0000
commit36eac0dc8df80cf7e03e90ebda2090cc84360990 (patch)
tree4534823dd060e100795c7c270a5387153764efbc /app/models/repository/mercurial.rb
parent82d5de4b4e3e2dbce699bb80b08ef6349e3eb5cd (diff)
downloadredmine-36eac0dc8df80cf7e03e90ebda2090cc84360990.tar.gz
redmine-36eac0dc8df80cf7e03e90ebda2090cc84360990.zip
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
Diffstat (limited to 'app/models/repository/mercurial.rb')
-rw-r--r--app/models/repository/mercurial.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 4cf484f96..4d32d6f51 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -26,11 +26,12 @@ class Repository::Mercurial < Repository
FETCH_AT_ONCE = 100 # number of changesets to fetch at once
- 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