email_configuration.test.sending=Sending test email
email_configuration.test.email_was_sent_to_x=Email was sent to {0}
+
+#------------------------------------------------------------------------------
+#
+# NOTIFICATIONS
+#
+#------------------------------------------------------------------------------
notification.channel.EmailNotificationChannel=Email
notification.dispatcher.ChangesInReviewAssignedToMeOrCreatedByMe=Changes in review assigned to me or created by me
alerts.notes.ok=at least one threshold is defined, no threshold is reached.
alerts.notes.warn=at least one warning threshold is reached, no error threshold is reached.
alerts.notes.error=at least one error threshold is reached.
-alert.new_alert=New alert
-alert.editing_alert=Editing alert
-alert.create_alert=Create alert
-alert.select_metric=Select a metric
-alert.warning_threshold=Warning threshold
-alert.warning_tooltip=A warning is triggered when this value is reached.
-alert.error_threshold=Error threshold
-alert.error_tooltip=An error is triggered when this value is reached.
-alert.alert_created=Alert is created.
-alert.alert_updated=Alert is updated.
-alert.alert_deleted=Alert is deleted.
-alert.operator.<=is less than
-alert.operator.>=is greater than
-alert.operator.\==equals
-alert.operator.!\==is not
+alerts.new_alert=New alert
+alerts.editing_alert=Editing alert
+alerts.create_alert=Create alert
+alerts.select_metric=Select a metric
+alerts.warning_threshold=Warning threshold
+alerts.warning_tooltip=A warning is triggered when this value is reached.
+alerts.error_threshold=Error threshold
+alerts.error_tooltip=An error is triggered when this value is reached.
+alerts.alert_created=Alert is created.
+alerts.alert_updated=Alert is updated.
+alerts.alert_deleted=Alert is deleted.
+alerts.operator.<=is less than
+alerts.operator.>=is greater than
+alerts.operator.\==equals
+alerts.operator.!\==is not
#------------------------------------------------------------------------------
#
events.name_required=Name (required)
+#------------------------------------------------------------------------------
+#
+# MY PROFILE
+#
+#------------------------------------------------------------------------------
+my_profile.login=Login
+my_profile.name=Name
+my_profile.email=Email
+my_profile.groups=Groups
+my_profile.password.title=Change password
+my_profile.password.old=Old value
+my_profile.password.new=New value
+my_profile.password.confirm=Confirm new value
+my_profile.password.submit=Change password
+my_profile.notifications.title=Notifications
+my_profile.notifications.submit=Save changes
+my_profile.password.changed=Password changed
+my_profile.password.empty=Password can not be empty
+my_profile.password.mismatch=Password mismatch
+my_profile.password.wrong_old=Wrong old password
+
#------------------------------------------------------------------------------
#
# MAINTENANCE
current_user.password_confirmation = params[:password]
@result = current_user.save
if @result
- flash[:notice] = 'Password changed.'
+ flash[:notice] = message('my_profile.password.changed')
else
- flash[:error] = 'Password cannot be empty'
+ flash[:error] = message('my_profile.password.empty')
end
else
- flash[:error] = 'Password mismatch'
+ flash[:error] = message('my_profile.password.mismatch')
end
else
- flash[:error] = 'Wrong old password'
+ flash[:error] = message('my_profile.password.wrong_old')
end
redirect_to :controller => 'account', :action => 'index'
end
respond_to do |format|
if @alert.save
- flash[:notice] = message('alert.alert_created')
+ flash[:notice] = message('alerts.alert_created')
format.html { redirect_to :action => 'index', :id=>@profile.id }
format.js { render :update do |page|
page.redirect_to :action => 'index', :id=>@profile.id
respond_to do |format|
if alert.update_attributes(params[:alert])
- flash[:notice] = message('alert.alert_updated')
+ flash[:notice] = message('alerts.alert_updated')
format.html { redirect_to :action => 'index', :id=>@profile.id }
format.xml { head :ok }
format.js { render :update do |page| page.redirect_to :action => 'index', :id=>@profile.id end}
@profile = Profile.find(params[:profile_id])
@alert = @profile.alerts.find(params[:id])
@alert.destroy
- flash[:notice] = message('alert.alert_deleted')
+ flash[:notice] = message('alerts.alert_deleted')
respond_to do |format|
format.html { redirect_to(:action => 'index', :id=>@profile.id) }
-<h1>My profile</h1>
-<div class="admin">
+<h1><%= message('my_profile.page') -%></h1>
+<div class="admin marginbottom10">
<table class="form">
<tr>
- <td><b>Login:</b></td>
+ <td><b><%= message('my_profile.login') -%>:</b></td>
<td id="login"><%= current_user.login %></td>
</tr>
<tr>
- <td><b>Name:</b></td>
+ <td><b><%= message('my_profile.name') -%>:</b></td>
<td id="name"><%= current_user.name %></td>
</tr>
<tr>
- <td><b>Email:</b></td>
- <td id="name"><%= current_user.email %></td>
+ <td><b><%= message('my_profile.email') -%>:</b></td>
+ <td id="email"><%= current_user.email %></td>
</tr>
<tr>
- <td><b>Groups:</b></td>
+ <td><b><%= message('my_profile.groups') -%>:</b></td>
<td id="groups"><%= current_user.groups.sort.map(&:name).join(', ') %></td>
</tr>
</table>
</div>
<% if User.editable_password? %>
-<h1>Change password</h1>
-<div class="admin">
+<h1><%= message('my_profile.password.title') -%></h1>
+<div class="admin marginbottom10">
<% form_tag( {:action => 'change_password' }, :id => 'pass_form_tag', :name => 'pass_form_tag') do -%>
<table class="form">
<tr>
- <td class="keyCell"><label for="old_password"><b>Old value:</b></label></td>
+ <td class="keyCell"><label for="old_password"><b><%= message('my_profile.password.old') -%>:</b></label></td>
<td><%= password_field_tag 'old_password' %></td>
</tr>
<tr>
- <td class="keyCell"><label for="password"><b>New value:</b></label></td>
+ <td class="keyCell"><label for="password"><b><%= message('my_profile.password.new') -%>:</b></label></td>
<td><%= password_field_tag 'password' %></td>
</tr>
<tr>
- <td class="keyCell"><label for="password_confirmation"><b>Confirm new value:</b></label></td>
+ <td class="keyCell"><label for="password_confirmation"><b><%= message('my_profile.password.confirm') -%>:</b></label></td>
<td><%= password_field_tag 'password_confirmation' %></td>
</tr>
<tr>
<td></td>
- <td><%= submit_tag 'Change password' %></td>
+ <td><%= submit_tag message('my_profile.password.submit') %></td>
</tr>
</table>
<% end %>
</div>
<% end -%>
-<h1>Notifications</h1>
-<div class="admin">
+<h1><%= message('my_profile.notifications.title') -%></h1>
+<div class="admin marginbottom10">
<% form_tag({:action => 'update_notifications'}, {:method => 'post'}) do %>
<table class="form">
<tr>
</tr>
<% for dispatcher in @dispatchers %>
<tr>
- <td><b><%= message('notification.dispatcher.' + dispatcher.getKey()) -%></b></td>
+ <td><%= message('notification.dispatcher.' + dispatcher.getKey()) -%></td>
<td>
<%
for channel in @channels
<% end %>
<tr>
<td></td>
- <td><%= submit_tag %></td>
+ <td><%= submit_tag message('my_profile.notifications.submit') %></td>
</tr>
</table>
<% end %>
<td width="10%" nowrap>
<select id="alert_operator" name="alert[operator]">
<% operators_for_select(alert).each do |key| %>
- <option value="<%= key -%>" <%= 'selected' if alert.operator==key -%>><%= message("alert.operator.#{key}") -%></option>
+ <option value="<%= key -%>" <%= 'selected' if alert.operator==key -%>><%= message("alerts.operator.#{key}") -%></option>
<% end %>
</select>
</td>
<td width="20%" align="left">
- <%= image_tag 'levels/warn.png', :alt => message('alert.warning_tooltip') %>
+ <%= image_tag 'levels/warn.png', :alt => message('alerts.warning_tooltip') %>
<%= value_field(alert, alert.value_warning, 'alert[value_warning]') %> <%= alert.metric.suffix if alert.metric %>
</td>
<td width="20%" align="left">
- <%= image_tag 'levels/error.png', :alt => message('alert.error_tooltip') %>
+ <%= image_tag 'levels/error.png', :alt => message('alerts.error_tooltip') %>
<%= value_field(alert, alert.value_error, 'alert[value_error]') %> <%= alert.metric.suffix if alert.metric %>
</td>
<td width="120px" nowrap>
-<h3><%= message('alert.create_alert') -%></h3>
+<h3><%= message('alerts.create_alert') -%></h3>
<%= form_remote_tag :url => {:action => 'create', :profile_id => @profile.id}, :html => {:id => 'new_alert_form'} %>
<table class="spaced">
<tr>
</script>
<select id="alert_metric_id" name="alert[metric_id]" onChange="javascript:selectMetric()">
- <option value="" <%= 'selected' if @alert.metric.nil? %>><%= message('alert.select_metric') -%></option>
+ <option value="" <%= 'selected' if @alert.metric.nil? %>><%= message('alerts.select_metric') -%></option>
<% Metric.domains.each do |domain| %>
<optgroup label="<%= h domain -%>">
<%# 'new_' metrics excluded due to SONAR-2396 %>
<%
default_op=default_operator(@alert)
operators_for_select(@alert).each do |key| %>
- <option value="<%= key -%>" <%= 'selected' if default_op==key -%>><%= message("alert.operator.#{key}") -%></option>
+ <option value="<%= key -%>" <%= 'selected' if default_op==key -%>><%= message("alerts.operator.#{key}") -%></option>
<% end %>
</select>
</td>
<td width="20%" valign="top">
- <%= image_tag 'levels/warn.png', :alt => message('alert.warning_tooltip') %>
+ <%= image_tag 'levels/warn.png', :alt => message('alerts.warning_tooltip') %>
<%= value_field(@alert, '', 'alert[value_warning]') %>
<%= @alert.metric.suffix if @alert.metric %><br/>
- <span class="note"><%= message('alert.warning_threshold') -%></span>
+ <span class="note"><%= message('alerts.warning_threshold') -%></span>
</td>
<td width="20%" valign="top">
- <%= image_tag 'levels/error.png', :alt => message('alert.error_tooltip') %>
+ <%= image_tag 'levels/error.png', :alt => message('alerts.error_tooltip') %>
<%= value_field(@alert, '', 'alert[value_error]') %>
<%= @alert.metric.suffix if @alert.metric %><br/>
- <span class="note"><%= message('alert.error_threshold') -%></span>
+ <span class="note"><%= message('alerts.error_threshold') -%></span>
</td>
<td width="120px" nowrap valign="top">
<%= h alert.name %>
</td>
<td width="10%">
- <%= message("alert.operator.#{alert.operator}") -%>
+ <%= message("alerts.operator.#{alert.operator}") -%>
</td>
<td width="20%">
<% if alert.metric && !alert.value_warning.blank? %>
- <%= image_tag 'levels/warn.png', :alt => message('alert.warning_tooltip') %>
+ <%= image_tag 'levels/warn.png', :alt => message('alerts.warning_tooltip') %>
<%= alert.value_warning %> <%= alert.metric.suffix if alert.metric %>
<% end %>
</td>
<td width="20%">
<% if alert.metric && !alert.value_error.blank? %>
- <%= image_tag 'levels/error.png', :alt => message('alert.error_tooltip') %>
+ <%= image_tag 'levels/error.png', :alt => message('alerts.error_tooltip') %>
<%= alert.value_error %> <%= alert.metric.suffix %>
<% end %>
</td>
-<h1><%= message('alert.editing_alert') -%></h1>
+<h1><%= message('alerts.editing_alert') -%></h1>
<% form_for([@profile, @alert]) do |f| %>
<%= f.error_messages %>
-<h1><%= message('alert.new_alert') -%></h1>
+<h1><%= message('alerts.new_alert') -%></h1>
<% form_for([@profile, @alert]) do |f| %>
<%= f.error_messages %>