quality_profiles.including_x_overriding.suffix=, incl. {0} overriding
quality_profiles.set_parent=Set parent
quality_profiles.inherit_rules_from_profile=Inherit rules configuration from the profile
-quality_profiles.changelog.empty=No changes have been done.
-quality_profiles.changelog_from=Changelog from
quality_profiles.no_version=no version
quality_profiles.last_version_x_with_date=last version {0} ({1})
quality_profiles.version_x_with_date=version {0} ({1})
quality_profiles.deprecated=deprecated
quality_profiles.manage_rules_tooltip=Manage rules of this profile
quality_profiles.see_rules_tooltip=See rules of this profile
+quality_profiles.changelog.empty=No changes have been done.
+quality_profiles.changelog_from=Changelog from
+quality_profiles.changelog.activated=Activated
+quality_profiles.changelog.deactivated=Deactivated
+quality_profiles.changelog.updated=Updated
+
#------------------------------------------------------------------------------
#
@changes.each do |change|
%>
<tr class="<%= cycle('even', 'odd') -%>">
- <td valign="top" width="1%" nowrap><%= Api::Utils.format_date(change.time()) -%></td>
+ <%
+ action = change.action()
+ action_message = message('quality_profiles.changelog.' + action.downcase) if action
+ %>
+ <td valign="top" width="1%" nowrap><%= Internal.i18n.formatDateTime(change.time()) -%></td>
<td valign="top" width="1%" nowrap><%= change.authorName() ? change.authorName() : change.login() ? !change.login().emtpy? : 'System' %></td>
- <td valign="top" width="1%" nowrap><%= change.action() %></td>
+ <td valign="top" width="1%" nowrap><%= action_message %></td>
<td valign="top"><%= change.ruleName() ? change.ruleName() : change.ruleKey() %></td>
<td valign="top"></td>
</tr>
verify(durations).format(any(Locale.class), eq(Duration.create(10L)), eq(Durations.DurationFormat.SHORT));
}
+ @Test
+ public void format_date_time() throws Exception {
+ Date date = new Date();
+ jRubyI18n.formatDateTime(date);
+ verify(i18n).formatDateTime(any(Locale.class), eq(date));
+ }
+
}