Skip to content
Browse files

Remove hardcoded file size unit 'k'

Fixes #16970

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information...
1 parent a6cb846 commit e1d4aa54d6773dd12bcdbe452675a724008180b7 @badfiles badfiles committed with dregad Feb 14, 2014
Showing with 5 additions and 7 deletions.
  1. +1 −2 bug_file_upload_inc.php
  2. +1 −1 bug_report_page.php
  3. +1 −0 lang/strings_english.txt
  4. +1 −2 proj_doc_add_page.php
  5. +1 −2 proj_doc_edit_page.php
View
3 bug_file_upload_inc.php
@@ -70,8 +70,7 @@
<tr class="row-1">
<td class="category" width="15%">
<?php echo lang_get( $t_file_upload_max_num == 1 ? 'select_file' : 'select_files' ) ?><br />
- <?php //FIXME: hard coded "k" in here. ?>
- <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) ?>k</span>
+ <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) . lang_get( 'word_separator' ) . lang_get( 'file_kb' ) ?></span>
</td>
<td width="85%">
<input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" />
View
2 bug_report_page.php
@@ -598,7 +598,7 @@
<tr>
<th class="category">
<label for="file"><?php echo lang_get( $t_file_upload_max_num == 1 ? 'upload_file' : 'upload_files' ) ?></label><br />
- <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) ?>k</span>
+ <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) . lang_get( 'word_separator' ) . lang_get( 'file_kb' ) ?></span>
</th>
<td>
<input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size ?>" />
View
1 lang/strings_english.txt
@@ -491,6 +491,7 @@ $s_upload_file_button = 'Upload File';
$s_upload_files_button = 'Upload Files';
$s_max_file_size = 'Maximum size';
$s_max_file_size_label = 'Maximum size:';
+$s_file_kb = 'KiB';
# bug_reopen.php
$s_bug_reopened_msg = 'Issue has been reopened...';
View
3 proj_doc_add_page.php
@@ -87,8 +87,7 @@
<tr class="row-1">
<td class="category">
<span class="required">*</span><?php echo lang_get( 'select_file' ); ?><br />
- <?php // FIXME: hard coded "k" in here. ?>
- <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) ?>k</span>
+ <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) . lang_get( 'word_separator' ) . lang_get( 'file_kb' ) ?></span>
</td>
<td>
<input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size ?>" />
View
3 proj_doc_edit_page.php
@@ -125,8 +125,7 @@
<tr class="row-2">
<td class="category">
<?php echo lang_get( 'select_file' ); ?><br />
- <?php // FIXME: hard coded "k" in here. ?>
- <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) ?>k</span>
+ <span class="small"><?php echo lang_get( 'max_file_size_label' ) . lang_get( 'word_separator' ) . number_format( $t_max_file_size/1000 ) . lang_get( 'word_separator' ) . lang_get( 'file_kb' ) ?></span>
</td>
<td>
<input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size ?>" />

0 comments on commit e1d4aa5

Please sign in to comment.
Something went wrong with that request. Please try again.