Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #16951: Remove hardcoded 'Due date was' string

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information...
commit d3db7fafee2bcbf2fc5320d70fecddc10f9f7df7 1 parent a00ebde
@badfiles badfiles authored dregad committed
Showing with 3 additions and 1 deletion.
  1. +2 −1  core/columns_api.php
  2. +1 −0  lang/strings_english.txt
View
3  core/columns_api.php
@@ -1514,7 +1514,8 @@ function print_column_overdue( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_P
!date_is_null( $p_bug->due_date ) &&
bug_is_overdue( $p_bug->id ) ) {
$t_overdue_text = lang_get( 'overdue' );
- $t_overdue_text_hover = $t_overdue_text . '. Due date was: ' . string_display_line( date( config_get( 'short_date_format' ), $p_bug->due_date ) );
+ $t_due_date_was = lang_get( 'due_date_was' );
+ $t_overdue_text_hover = $t_overdue_text . '. ' . $t_due_date_was . ': ' . string_display_line( date( config_get( 'short_date_format' ), $p_bug->due_date ) );
echo '<img src="' . $t_icon_path . 'overdue.png" alt="' . $t_overdue_text . '" title="' . $t_overdue_text_hover . '" />';
} else {
echo '&#160;';
View
1  lang/strings_english.txt
@@ -1525,6 +1525,7 @@ $s_copy_columns_to = 'Copy Columns To';
# due date
$s_due_date = 'Due Date';
$s_overdue = 'Overdue';
+$s_due_date_was = 'Due date was';
#account_view_page.php
$s_view_account_title = 'User Information';
Please sign in to comment.
Something went wrong with that request. Please try again.