diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2010-04-24 14:42:15 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2010-04-24 14:42:15 +0000 |
| commit | 3ffe1f7679138d802b32adadcd6ef2cc38f118b6 (patch) | |
| tree | a463e0028ab59aa89b79c884e9cbecf01159d1bd /includes/functions | |
| parent | 9e219ab4d4a39eb526b4eb735096f7b6999f12c5 (diff) | |
| download | webtrees-3ffe1f7679138d802b32adadcd6ef2cc38f118b6.tar.gz webtrees-3ffe1f7679138d802b32adadcd6ef2cc38f118b6.tar.bz2 webtrees-3ffe1f7679138d802b32adadcd6ef2cc38f118b6.zip | |
translate image and file size
Diffstat (limited to 'includes/functions')
| -rw-r--r-- | includes/functions/functions_print_facts.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php index 4ebfd1dae1..92d5dc7772 100644 --- a/includes/functions/functions_print_facts.php +++ b/includes/functions/functions_print_facts.php @@ -192,8 +192,11 @@ function print_fact(&$eventObj, $noedit=false) { echo "<td class=\"descriptionbox $styleadd center width20\">"; if ($SHOW_FACT_ICONS) echo $eventObj->Icon(), ' '; - if ($ct>0) echo $factref; - else echo translate_fact($factref, $label_person); + if ($ct>0) { + if ($factref=='image_size') echo i18n::translate('Image Dimensions'); + else if ($factref=='file_size') echo i18n::translate('File Size'); + else echo $factref; + } else echo translate_fact($factref, $label_person); if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && $view!="preview" && !FactEditRestricted($pid, $factrec)) { $menu = new Menu(i18n::translate('Edit'), "#", "right", "down"); $menu->addOnclick("return edit_record('$pid', $linenum);"); |
