summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
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
commit3ffe1f7679138d802b32adadcd6ef2cc38f118b6 (patch)
treea463e0028ab59aa89b79c884e9cbecf01159d1bd /includes/functions
parent9e219ab4d4a39eb526b4eb735096f7b6999f12c5 (diff)
downloadwebtrees-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.php7
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);");