choices = [[blank_text.is_a?(Symbol) ? l(blank_text) : blank_text, '']] + choices
end
setting_label(setting, options) +
- select_tag("settings[#{setting}]", options_for_select(choices, Setting.send(setting).to_s), options)
+ select_tag("settings[#{setting}]",
+ options_for_select(choices, Setting.send(setting).to_s),
+ options)
end
def setting_multiselect(setting, choices, options={})
hidden_field_tag("settings[#{setting}][]", '') +
choices.collect do |choice|
text, value = (choice.is_a?(Array) ? choice : [choice, choice])
- content_tag('label',
- check_box_tag("settings[#{setting}][]", value, Setting.send(setting).include?(value)) + text.to_s,
+ content_tag(
+ 'label',
+ check_box_tag(
+ "settings[#{setting}][]",
+ value,
+ Setting.send(setting).include?(value)
+ ) + text.to_s,
:class => 'block'
- )
+ )
end.join
end
def setting_check_box(setting, options={})
setting_label(setting, options) +
hidden_field_tag("settings[#{setting}]", 0) +
- check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options)
+ check_box_tag("settings[#{setting}]", 1, Setting.send("#{setting}?"), options)
end
def setting_label(setting, options={})
<div class="box tabular">
<p>
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
-<% if @repository %>
-<br />
-<%= image_tag((@repository.class.scm_available ? 'true.png' : 'exclamation.png'))%>
-<%= l(:text_scm_command) -%>: <%= @repository.class.scm_command %>
-|
-<%= l(:text_scm_command_version) -%>: <%= @repository.class.scm_version_string %>
+<% if @repository && ! @repository.class.scm_available %>
+ <br />
+ <em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em>
<% end %>
</p>
<% button_disabled = true %>
<% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
+<fieldset class="box tabular settings enabled_scm">
+<legend><%= l(:setting_enabled_scm) %></legend>
+<table>
+ <tr>
+ <th></th>
+ <th><%= l(:text_scm_command) %></th>
+ <th><%= l(:text_scm_command_version) %></th>
+ </tr>
+ <% Redmine::Scm::Base.all.collect do |choice| %>
+ <% scm_class = "Repository::#{choice}".constantize %>
+ <% text, value = (choice.is_a?(Array) ? choice : [choice, choice]) %>
+ <% setting = :enabled_scm %>
+ <tr>
+ <td class="scm_name">
+ <%=
+ check_box_tag(
+ "settings[#{setting}][]",
+ value,
+ Setting.send(setting).include?(value))
+ %>
+ <%= text.to_s %>
+ </td>
+ <td>
+ <%=
+ image_tag(
+ (scm_class.scm_available ? 'true.png' : 'exclamation.png'),
+ :style => "vertical-align:bottom;"
+ )
+ %>
+ <%= scm_class.scm_command %>
+ </td>
+ <td>
+ <%= scm_class.scm_version_string %>
+ </td>
+ </tr>
+ <% end %>
+</table>
+<p class="scm_config">
+<%= l(:text_scm_config) %>
+</p>
+</fieldset>
+
<div class="box tabular settings">
<p><%= setting_check_box :autofetch_changesets %></p>
<p><%= setting_check_box :sys_api_enabled,
- :onclick => "if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %></p>
+ :onclick =>
+ "if (this.checked) { Form.Element.enable('settings_sys_api_key'); } else { Form.Element.disable('settings_sys_api_key'); }" %></p>
-<p><%= setting_text_field :sys_api_key, :size => 30,
- :id => 'settings_sys_api_key',
- :disabled => !Setting.sys_api_enabled?,
- :label => :setting_mail_handler_api_key %>
- <%= link_to_function l(:label_generate_key), "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %>
+<p><%= setting_text_field :sys_api_key,
+ :size => 30,
+ :id => 'settings_sys_api_key',
+ :disabled => !Setting.sys_api_enabled?,
+ :label => :setting_mail_handler_api_key %>
+ <%= link_to_function l(:label_generate_key),
+ "if ($('settings_sys_api_key').disabled == false) { $('settings_sys_api_key').value = randomKey(20) }" %>
</p>
-<p><%= setting_multiselect(:enabled_scm, Redmine::Scm::Base.all) %></p>
-
<p><%= setting_text_field :repositories_encodings, :size => 60 %><br />
<em><%= l(:text_comma_separated) %></em></p>
<p><%= setting_text_field :repository_log_display_limit, :size => 6 %></p>
</div>
-<fieldset class="box tabular settings"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
+<fieldset class="box tabular settings">
+<legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
<p><%= setting_text_field :commit_ref_keywords, :size => 30 %><br />
<em><%= l(:text_comma_separated) %></em></p>
<p><%= setting_text_field :commit_fix_keywords, :size => 30 %>
- <%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id, [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, :label => false %>
- <%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio, (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }, :blank => :label_no_change_option, :label => false %>
+ <%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id,
+ [["", 0]] +
+ IssueStatus.find(:all).collect{
+ |status| [status.name, status.id.to_s]
+ },
+ :label => false %>
+ <%= l(:field_done_ratio) %>: <%= setting_select :commit_fix_done_ratio,
+ (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] },
+ :blank => :label_no_change_option,
+ :label => false %>
<br /><em><%= l(:text_comma_separated) %></em></p>
<p><%= setting_check_box :commit_logtime_enabled,
- :onclick => "if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%></p>
+ :onclick =>
+ "if (this.checked) { Form.Element.enable('settings_commit_logtime_activity_id'); } else { Form.Element.disable('settings_commit_logtime_activity_id'); }"%></p>
<p><%= setting_select :commit_logtime_activity_id,
- [[l(:label_default), 0]] + TimeEntryActivity.shared.all.collect{|activity| [activity.name, activity.id.to_s]},
- :disabled => !Setting.commit_logtime_enabled?%></p>
+ [[l(:label_default), 0]] +
+ TimeEntryActivity.shared.all.collect{|activity| [activity.name, activity.id.to_s]},
+ :disabled => !Setting.commit_logtime_enabled?%></p>
</fieldset>
<%= submit_tag l(:button_save) %>
enumeration_doc_categories: Категории документи
enumeration_activities: Дейности (time tracking)
enumeration_system_activity: Системна активност
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
button_quote: Quote
button_duplicate: Duplicate
button_show: Show
-
+
status_active: active
status_registered: registered
status_locked: locked
-
+
version_status_open: open
version_status_locked: locked
version_status_closed: closed
field_active: Active
-
+
text_select_mail_notifications: Select actions for which email notifications should be sent.
text_regexp_info: eg. ^[A-Z0-9]+$
text_min_max_length_info: 0 means no restriction
text_mercurial_repository_note: "Local repository (e.g. /hgrepo, c:\hgrepo)"
text_scm_command: Command
text_scm_command_version: Version
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
default_role_manager: Manager
default_role_developer: Developer
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Komandoa
text_scm_command_version: Bertsioa
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Commande
text_scm_command_version: Version
label_git_report_last_commit: Afficher le dernier commit des fichiers et répertoires
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Parancs
text_scm_command_version: Verzió
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
setting_commit_logtime_enabled: コミット時に作業時間を記録する
setting_commit_logtime_activity_id: 作業時間の作業分類
setting_gantt_items_limit: ガントチャート最大表示項目数
-
+
permission_add_project: プロジェクトの追加
permission_add_subprojects: サブプロジェクトの追加
permission_edit_project: プロジェクトの編集
permission_delete_messages: メッセージの削除
permission_delete_own_messages: 自身が記入したメッセージの削除
permission_manage_subtasks: 子チケットの管理
-
+
project_module_issue_tracking: チケットトラッキング
project_module_time_tracking: 時間トラッキング
project_module_news: ニュース
project_module_boards: フォーラム
project_module_gantt: ガントチャート
project_module_calendar: カレンダー
-
+
label_user: ユーザ
label_user_plural: ユーザ
label_user_new: 新しいユーザ
text_mercurial_repository_note: "ローカルリポジトリ (例: /hgrepo, c:\hgrepo)"
text_scm_command: コマンド
text_scm_command_version: バージョン
+ text_scm_config: バージョン管理システムのコマンドをconfig/configuration.ymlで設定できます。設定後、Redmineを再起動してください。
+ text_scm_command_not_available: バージョン管理システムのコマンドが利用できません。管理画面にて設定を確認してください。
default_role_manager: 管理者
default_role_developer: 開発者
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
enumeration_doc_categories: 文件分類
enumeration_activities: 活動 (時間追蹤)
enumeration_system_activity: 系統活動
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
text_scm_command: Command
text_scm_command_version: Version
label_git_report_last_commit: Report last commit for files and directories
+ text_scm_config: You can configure your scm commands in config/configuration.yml. Please restart the application after editing it.
+ text_scm_command_not_available: Scm command is not available. Please check settings on the administration panel.
.tabular.settings label{ margin-left: -300px; width: 295px; }
.tabular.settings textarea { width: 99%; }
+.tabular.settings.enabled_scm table {width:100%}
+.tabular.settings.enabled_scm td.scm_name{ font-weight: bold; }
+.tabular.settings.enabled_scm p.scm_config{ padding-left: 8px; font-style:italic;}
+
fieldset.settings label { display: block; }
fieldset#notified_events .parent { padding-left: 20px; }
color: #A6750C;
}
+span.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;}
+
#errorExplanation ul { font-size: 0.9em;}
#errorExplanation h2, #errorExplanation p { display: none; }