end
def cvs_field_tags(form, repository)
- content_tag('p', form.text_field(:root_url,
- :label => 'CVSROOT', :size => 60, :required => true,
+ content_tag('p', form.text_field(
+ :root_url,
+ :label => l("field_cvsroot"),
+ :size => 60, :required => true,
:disabled => !repository.new_record?)) +
- content_tag('p', form.text_field(:url, :label => 'Module',
+ content_tag('p', form.text_field(
+ :url,
+ :label => l("field_cvs_module"),
:size => 30, :required => true,
:disabled => !repository.new_record?)) +
content_tag('p', form.select(
class Repository::Cvs < Repository
validates_presence_of :url, :root_url, :log_encoding
- ATTRIBUTE_KEY_NAMES = {
- "root_url" => "CVSROOT",
- "url" => "Module",
- }
def self.human_attribute_name(attribute_key_name)
- ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
+ attr_name = attribute_key_name
+ if attr_name == "root_url"
+ attr_name = "cvsroot"
+ elsif attr_name == "url"
+ attr_name = "cvs_module"
+ end
+ super(attr_name)
end
def self.scm_adapter_class
field_scm_path_encoding: Path encoding
field_path_to_repository: Path to repository
field_root_directory: Root directory
+ field_cvsroot: CVSROOT
+ field_cvs_module: Module
setting_app_title: Application title
setting_app_subtitle: Application subtitle