]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: change "url" human attribute name from "Root directory" to "Path...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Apr 2011 04:41:26 +0000 (04:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 23 Apr 2011 04:41:26 +0000 (04:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5528 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/repositories_helper.rb
app/models/repository/mercurial.rb

index ee95417a2584d6d6cf925d3d786bcfcac57229df..1c7d47620c906de61ba2e7e897dc4881ac08e3a0 100644 (file)
@@ -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")
index b12d0b348da15a582eb213b3a4ecdb11d789da0a..4cf484f964a58ecd939eb5b6624364c512cbdea9 100644 (file)
@@ -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