Feature #11109 » frozen_repository_identifiers.patch
| app/models/repository.rb | ||
|---|---|---|
|
class Repository < ActiveRecord::Base
|
||
|
include Redmine::Ciphering
|
||
|
include Redmine::SafeAttributes
|
||
|
|
||
|
# Maximum length for repository identifiers
|
||
|
IDENTIFIER_MAX_LENGTH = 255
|
||
|
belongs_to :project
|
||
|
has_many :changesets, :order => "#{Changeset.table_name}.committed_on DESC, #{Changeset.table_name}.id DESC"
|
||
| ... | ... | |
|
before_destroy :clear_changesets
|
||
|
validates_length_of :password, :maximum => 255, :allow_nil => true
|
||
|
validates_length_of :identifier, :maximum => 255, :allow_blank => true
|
||
|
validates_length_of :identifier, :maximum => IDENTIFIER_MAX_LENGTH, :allow_blank => true
|
||
|
validates_presence_of :identifier, :unless => Proc.new { |r| r.is_default? || r.set_as_default? }
|
||
|
validates_uniqueness_of :identifier, :scope => :project_id, :allow_blank => true
|
||
|
validates_exclusion_of :identifier, :in => %w(show entry raw changes annotate diff show stats graph)
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
def identifier=(identifier)
|
||
|
super unless identifier_frozen?
|
||
|
end
|
||
|
def identifier_frozen?
|
||
|
errors[:identifier].blank? && !(new_record? || identifier.blank?)
|
||
|
end
|
||
|
def identifier_param
|
||
|
if is_default?
|
||
|
nil
|
||
| app/views/projects/_form.html.erb | ||
|---|---|---|
|
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
|
||
|
<p><%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %>
|
||
|
<% unless @project.identifier_frozen? %>
|
||
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %></em>
|
||
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_identifier_info).html_safe %></em>
|
||
|
<% end %></p>
|
||
|
<p><%= f.text_field :homepage, :size => 60 %></p>
|
||
|
<p><%= f.check_box :is_public %></p>
|
||
| app/views/repositories/_form.html.erb | ||
|---|---|---|
|
</p>
|
||
|
<p><%= f.check_box :is_default, :label => :field_repository_is_default %></p>
|
||
|
<p><%= f.text_field :identifier %></p>
|
||
|
<p><%= f.text_field :identifier, :disabled => @repository.identifier_frozen? %>
|
||
|
<% unless @repository.identifier_frozen? %>
|
||
|
<em class="info"><%= l(:text_length_between, :min => 1, :max => Repository::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_identifier_info).html_safe %></em>
|
||
|
<% end %></p>
|
||
|
<% button_disabled = true %>
|
||
|
<% if @repository %>
|
||
| config/locales/ar.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/bg.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: задача, започваща този ден
|
||
|
text_tip_issue_end_day: задача, завършваща този ден
|
||
|
text_tip_issue_begin_end_day: задача, започваща и завършваща този ден
|
||
|
text_project_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
|
||
|
text_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
|
||
|
text_caracters_maximum: "До %{count} символа."
|
||
|
text_caracters_minimum: "Минимум %{count} символа."
|
||
|
text_length_between: "От %{min} до %{max} символа."
|
||
| config/locales/bs.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/ca.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/da.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/de.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: Aufgabe, die an diesem Tag beginnt
|
||
|
text_tip_issue_end_day: Aufgabe, die an diesem Tag endet
|
||
|
text_tip_issue_begin_end_day: Aufgabe, die an diesem Tag beginnt und endet
|
||
|
text_project_identifier_info: 'Kleinbuchstaben (a-z), Ziffern, Binde- und Unterstriche erlaubt.<br />Einmal gespeichert, kann die Kennung nicht mehr geändert werden.'
|
||
|
text_identifier_info: 'Kleinbuchstaben (a-z), Ziffern, Binde- und Unterstriche erlaubt.<br />Einmal gespeichert, kann die Kennung nicht mehr geändert werden.'
|
||
|
text_caracters_maximum: "Max. %{count} Zeichen."
|
||
|
text_caracters_minimum: "Muss mindestens %{count} Zeichen lang sein."
|
||
|
text_length_between: "Länge zwischen %{min} und %{max} Zeichen."
|
||
| config/locales/el.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/en-GB.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: task beginning this day
|
||
|
text_tip_issue_end_day: task ending this day
|
||
|
text_tip_issue_begin_end_day: task beginning and ending this day
|
||
|
text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_caracters_maximum: "%{count} characters maximum."
|
||
|
text_caracters_minimum: "Must be at least %{count} characters long."
|
||
|
text_length_between: "Length between %{min} and %{max} characters."
|
||
| config/locales/en.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: issue beginning this day
|
||
|
text_tip_issue_end_day: issue ending this day
|
||
|
text_tip_issue_begin_end_day: issue beginning and ending this day
|
||
|
text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_caracters_maximum: "%{count} characters maximum."
|
||
|
text_caracters_minimum: "Must be at least %{count} characters long."
|
||
|
text_length_between: "Length between %{min} and %{max} characters."
|
||
| config/locales/es.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/et.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: "teema avamise päev"
|
||
|
text_tip_issue_end_day: "teema sulgemise päev"
|
||
|
text_tip_issue_begin_end_day: "teema avati ja sulgeti samal päeval"
|
||
|
text_project_identifier_info: "Lubatud on ainult väikesed tähed (a-z), numbrid ja kriipsud.<br />Peale salvestamist ei saa tunnust enam muuta."
|
||
|
text_identifier_info: "Lubatud on ainult väikesed tähed (a-z), numbrid ja kriipsud.<br />Peale salvestamist ei saa tunnust enam muuta."
|
||
|
text_caracters_maximum: "%{count} märki kõige rohkem."
|
||
|
text_caracters_minimum: "Peab olema vähemalt %{count} märki pikk."
|
||
|
text_length_between: "Pikkus %{min} kuni %{max} märki."
|
||
| config/locales/eu.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/fa.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/fi.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/fr.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: tâche commençant ce jour
|
||
|
text_tip_issue_end_day: tâche finissant ce jour
|
||
|
text_tip_issue_begin_end_day: tâche commençant et finissant ce jour
|
||
|
text_project_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
|
||
|
text_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
|
||
|
text_caracters_maximum: "%{count} caractères maximum."
|
||
|
text_caracters_minimum: "%{count} caractères minimum."
|
||
|
text_length_between: "Longueur comprise entre %{min} et %{max} caractères."
|
||
| config/locales/gl.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/he.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/hr.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/hu.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/id.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/it.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/ja.yml | ||
|---|---|---|
|
label_copy_attachments: 添付ファイルをコピー
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: 完了したバージョン
|
||
|
text_project_identifier_info: アルファベット小文字(a-z)・数字・ハイフン・アンダースコアが使えます。<br />識別子は後で変更することはできません。
|
||
|
text_identifier_info: アルファベット小文字(a-z)・数字・ハイフン・アンダースコアが使えます。<br />識別子は後で変更することはできません。
|
||
|
field_multiple: 複数選択可
|
||
|
setting_commit_cross_project_ref: 異なるプロジェクトのチケットの参照/修正を許可
|
||
|
text_issue_conflict_resolution_add_notes: 自分の編集内容を破棄し注記のみ追加
|
||
| config/locales/ko.yml | ||
|---|---|---|
|
label_copy_attachments: 첨부파일 복사
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: 완료 버전
|
||
|
text_project_identifier_info: "소문자(a-z),숫자,대쉬(-)와 밑줄(_)만 가능합니다.<br />식별자는 저장후에는 수정할 수 없습니다."
|
||
|
text_identifier_info: "소문자(a-z),숫자,대쉬(-)와 밑줄(_)만 가능합니다.<br />식별자는 저장후에는 수정할 수 없습니다."
|
||
|
field_multiple: 복수선택가능
|
||
|
setting_commit_cross_project_ref: 다른 프로젝트의 일감 참조 및 수정 허용
|
||
|
text_issue_conflict_resolution_add_notes: 변경내용은 취소하고 덧글만 추가
|
||
| config/locales/lt.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/lv.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/mk.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/mn.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/nl.yml | ||
|---|---|---|
|
text_no_configuration_data: "Rollen, trackers, issue statussen en workflows zijn nog niet geconfigureerd.\nHet is ten zeerste aangeraden om de standaard configuratie in te laden. U kunt deze aanpassen nadat deze is ingeladen."
|
||
|
text_plugin_assets_writable: Plugin assets directory beschrijfbaar
|
||
|
text_project_destroy_confirmation: Weet u zeker dat u dit project en alle gerelateerde gegevens wilt verwijderen?
|
||
|
text_project_identifier_info: 'Alleen kleine letter (a-z), cijfers, streepjes en liggende streepjes zijn toegestaan.<br />Eenmaal opgeslagen kan de identifier niet worden gewijzigd.'
|
||
|
text_identifier_info: 'Alleen kleine letter (a-z), cijfers, streepjes en liggende streepjes zijn toegestaan.<br />Eenmaal opgeslagen kan de identifier niet worden gewijzigd.'
|
||
|
text_reassign_time_entries: 'Gerapporteerde uren opnieuw toewijzen:'
|
||
|
text_regexp_info: bv. ^[A-Z0-9]+$
|
||
|
text_repository_usernames_mapping: "Koppel de Redminegebruikers aan gebruikers in de repository log.\nGebruikers met dezelfde Redmine en repository gebruikersnaam of email worden automatisch gekoppeld."
|
||
| config/locales/no.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/pt.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/ro.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/ru.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/sl.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/sq.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: issue beginning this day
|
||
|
text_tip_issue_end_day: issue ending this day
|
||
|
text_tip_issue_begin_end_day: issue beginning and ending this day
|
||
|
text_project_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
|
||
|
text_caracters_maximum: "%{count} characters maximum."
|
||
|
text_caracters_minimum: "Must be at least %{count} characters long."
|
||
|
text_length_between: "Length between %{min} and %{max} characters."
|
||
| config/locales/sr-YU.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/sr.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/sv.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: ärende som börjar denna dag
|
||
|
text_tip_issue_end_day: ärende som slutar denna dag
|
||
|
text_tip_issue_begin_end_day: ärende som börjar och slutar denna dag
|
||
|
text_project_identifier_info: Ändast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.
|
||
|
text_identifier_info: Ändast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.
|
||
|
text_caracters_maximum: "max %{count} tecken."
|
||
|
text_caracters_minimum: "Måste vara minst %{count} tecken lång."
|
||
|
text_length_between: "Längd mellan %{min} och %{max} tecken."
|
||
| config/locales/th.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/tr.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/uk.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/vi.yml | ||
|---|---|---|
|
label_copy_attachments: Copy attachments
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: Completed versions
|
||
|
text_project_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
text_identifier_info: Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.
|
||
|
field_multiple: Multiple values
|
||
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||
|
text_issue_conflict_resolution_add_notes: Add my notes and discard my other changes
|
||
| config/locales/zh-TW.yml | ||
|---|---|---|
|
text_tip_issue_begin_day: 今天起始的問題
|
||
|
text_tip_issue_end_day: 今天截止的的問題
|
||
|
text_tip_issue_begin_end_day: 今天起始與截止的問題
|
||
|
text_project_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
|
||
|
text_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
|
||
|
text_caracters_maximum: "最多 %{count} 個字元."
|
||
|
text_caracters_minimum: "長度必須大於 %{count} 個字元."
|
||
|
text_length_between: "長度必須介於 %{min} 至 %{max} 個字元之間."
|
||
| config/locales/zh.yml | ||
|---|---|---|
|
label_copy_attachments: 复制附件
|
||
|
label_item_position: "%{position}/%{count}"
|
||
|
label_completed_versions: 已完成的版本
|
||
|
text_project_identifier_info: 仅小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。<br />一旦保存,标识无法修改。
|
||
|
text_identifier_info: 仅小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。<br />一旦保存,标识无法修改。
|
||
|
field_multiple: 多重取值
|
||
|
setting_commit_cross_project_ref: 允许引用/修复所有其他项目的问题
|
||
|
text_issue_conflict_resolution_add_notes: 添加说明并取消我的其他变更处理。
|
||
| test/functional/repositories_git_controller_test.rb | ||
|---|---|---|
|
put :update, :id => repository.id,
|
||
|
:repository => {
|
||
|
:extra_report_last_commit => '0',
|
||
|
:identifier => 'test-update',
|
||
|
:identifier => 'cannot-be-changed-since-it-is-frozen',
|
||
|
}
|
||
|
assert_response 302
|
||
|
repo2 = Repository.find(repository.id)
|
||
|
assert_equal 'test-update', repo2.identifier
|
||
|
assert_equal 'test-create', repo2.identifier
|
||
|
assert_equal false, repo2.extra_report_last_commit
|
||
|
end
|
||
| test/unit/repository_test.rb | ||
|---|---|---|
|
)
|
||
|
assert r.save
|
||
|
end
|
||
|
|
||
|
def test_identifier_should_not_be_frozen_for_a_new_repository
|
||
|
assert_equal false, Repository.new.identifier_frozen?
|
||
|
end
|
||
|
def test_identifier_should_not_be_frozen_for_a_saved_repository_with_blank_identifier
|
||
|
Repository.update_all(["identifier = ''"], "id = 10")
|
||
|
assert_equal false, Repository.find(10).identifier_frozen?
|
||
|
end
|
||
|
def test_identifier_should_be_frozen_for_a_saved_repository_with_valid_identifier
|
||
|
Repository.update_all(["identifier = 'abc123'"], "id = 10")
|
||
|
assert_equal true, Repository.find(10).identifier_frozen?
|
||
|
end
|
||
|
def test_destroy
|
||
|
repository = Repository.find(10)
|
||