diff options
author | plegall <plg@piwigo.org> | 2005-01-31 23:22:29 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-01-31 23:22:29 +0000 |
commit | 68970e1e656cc1b217b31d01a738bb9e3ca6db33 (patch) | |
tree | 2aa4067e3b9c099de99bb067c26b3876910accbf /admin | |
parent | a500671dc24ace6dbb9fc9c1387af2d77877851a (diff) |
- add information after metadata synchronization
git-svn-id: http://piwigo.org/svn/trunk@723 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/update.php | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/admin/update.php b/admin/update.php index c8ed1752a..56843d21a 100644 --- a/admin/update.php +++ b/admin/update.php @@ -466,6 +466,23 @@ if (isset($simulate) and $simulate) } $result_title.= $lang['update_part_research']; +// used_metadata string is displayed to inform admin which metadata will be +// used from files for synchronization +$used_metadata = $lang['metadata_basic'].' (filesize, width, height)'; + +if ($conf['use_exif']) +{ + $used_metadata.= ', '.$lang['metadata_exif'].' (date_creation)'; +} + +if ($conf['use_iptc']) +{ + $used_metadata.= ', '.$lang['metadata_iptc']; + $used_metadata.= '('; + $used_metadata.= implode(', ', array_keys($conf['use_iptc_mapping'])); + $used_metadata.= ')'; +} + $template->assign_vars( array( 'L_SUBMIT'=>$lang['submit'], @@ -492,7 +509,11 @@ $template->assign_vars( 'L_UPDATE_ERRORS_CAPTION'=>$lang['update_errors_caption'], 'L_UPDATE_DISPLAY_INFO'=>$lang['update_display_info'], 'L_UPDATE_SIMULATE'=>$lang['update_simulate'], - 'L_UPDATE_INFOS_TITLE'=>$lang['update_infos_title'] + 'L_UPDATE_INFOS_TITLE'=>$lang['update_infos_title'], + 'L_RESULT_METADATA'=>$lang['update_result_metadata'], + 'L_ELEMENTS_METADATA_SYNC'=>$lang['update_elements_metadata_sync'], + 'L_USED_METADATA'=>$lang['update_used_metadata'], + 'METADATA_LIST' => $used_metadata )); // +-----------------------------------------------------------------------+ // | introduction : choices | @@ -659,6 +680,12 @@ else if (isset($_POST['submit']) and preg_match('/^metadata/', $_POST['sync'])) echo '<!-- metadata update : '; echo get_elapsed_time($start, get_moment()); echo ' -->'."\n"; + + $template->assign_block_vars( + 'metadata_result', + array( + 'NB_ELEMENTS' => count($files), + )); } // +-----------------------------------------------------------------------+ // | sending html code | |