Translation for various hard-coded strings (#577).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1143 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -95,6 +95,10 @@ module ApplicationHelper
|
||||
l(:label_added_time_by, author || 'Anonymous', time_tag)
|
||||
end
|
||||
|
||||
def l_or_humanize(s)
|
||||
l_has_string?("label_#{s}".to_sym) ? l("label_#{s}".to_sym) : s.to_s.humanize
|
||||
end
|
||||
|
||||
def day_name(day)
|
||||
l(:general_day_names).split(',')[day-1]
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
:html => {:id => 'modules-form'} do |f| %>
|
||||
|
||||
<div class=box>
|
||||
<strong>Select modules to enable for this project:</strong>
|
||||
<strong><%= l(:text_select_project_modules) %></strong>
|
||||
<br />
|
||||
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
||||
<p><label><%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %> <%= m.to_s.humanize %></label></p>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<% remote_form_for :repository, @repository,
|
||||
:url => { :controller => 'repositories', :action => 'edit', :id => @project },
|
||||
:builder => TabularFormBuilder do |f| %>
|
||||
:builder => TabularFormBuilder,
|
||||
:lang => current_language do |f| %>
|
||||
|
||||
<%= error_messages_for 'repository' %>
|
||||
|
||||
<div class="box tabular">
|
||||
<p><label>SCM</label><%= scm_select_tag(@repository) %></p>
|
||||
<p><label><%= l(:label_scm) %></label><%= scm_select_tag(@repository) %></p>
|
||||
<%= repository_field_tags(f, @repository) if @repository %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<% remote_form_for :wiki, @wiki,
|
||||
:url => { :controller => 'wikis', :action => 'edit', :id => @project },
|
||||
:builder => TabularFormBuilder do |f| %>
|
||||
:builder => TabularFormBuilder,
|
||||
:lang => current_language do |f| %>
|
||||
|
||||
<%= error_messages_for 'wiki' %>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<fieldset class="box"><legend><%=l(:text_select_mail_notifications)%></legend>
|
||||
<% @notifiables.each do |notifiable| %>
|
||||
<label><%= check_box_tag 'settings[notified_events][]', notifiable, Setting.notified_events.include?(notifiable) %>
|
||||
<%= notifiable.humanize %></label><br />
|
||||
<%= l_or_humanize(notifiable) %></label><br />
|
||||
<% end %>
|
||||
<%= hidden_field_tag 'settings[notified_events][]', '' %>
|
||||
<p><%= check_all_links('mail-options-form') %></p>
|
||||
|
||||
Reference in New Issue
Block a user