aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-20 15:44:01 +0100
committerplegall <plg@piwigo.org>2015-12-20 15:44:01 +0100
commit89bc74b3f30e169ab51e5b2728767f02a94a991c (patch)
tree417a9d1369699139eeb5dca05782e00d0572e2cb /picture.php
parent0f8d85491f656440e7cc66ecca70f7af8dff0022 (diff)
feature #379, multiple format, labels
Ability to customize, with $lang['format CR2'] = 'RAW Canon' (in LocalFiles Editor) for example
Diffstat (limited to '')
-rw-r--r--picture.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/picture.php b/picture.php
index f2dfecf0e..093e4b271 100644
--- a/picture.php
+++ b/picture.php
@@ -679,6 +679,13 @@ SELECT *
$format['download_url'] = 'action.php?format='.$format['format_id'];
$format['download_url'].= '&amp;download='.substr(md5(time()), 0, 6); // a random string to avoid browser cache
+ $format['label'] = strtoupper($format['ext']);
+ $lang_key = 'format '.strtoupper($format['ext']);
+ if (isset($lang[$lang_key]))
+ {
+ $format['label'] = $lang[$lang_key];
+ }
+
$format['filesize'] = sprintf('%.1fMB', $format['filesize']/1024);
}
}