From 762562ddbee37d8facc6aac6a313bb11ea540526 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 9 Oct 2007 22:17:50 +0000 Subject: Part of feature 32, plugin languages: fr_FR.iso-8859-1 and en_UK.iso-8859-1 contents become utf-8 encoded and the directory names lose encoding information as the only supported encoding becomes utf-8. git-svn-id: http://piwigo.org/svn/trunk@2131 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/admin_advices/en_UK.iso-8859-1/index.php | 33 -- .../admin_advices/en_UK.iso-8859-1/lang.adv.php | 435 ------------------- plugins/admin_advices/en_UK/index.php | 33 ++ plugins/admin_advices/en_UK/lang.adv.php | 435 +++++++++++++++++++ plugins/admin_advices/fr_FR.iso-8859-1/index.php | 33 -- .../admin_advices/fr_FR.iso-8859-1/lang.adv.php | 468 --------------------- plugins/admin_advices/fr_FR/index.php | 33 ++ plugins/admin_advices/fr_FR/lang.adv.php | 468 +++++++++++++++++++++ 8 files changed, 969 insertions(+), 969 deletions(-) delete mode 100644 plugins/admin_advices/en_UK.iso-8859-1/index.php delete mode 100644 plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php create mode 100644 plugins/admin_advices/en_UK/index.php create mode 100644 plugins/admin_advices/en_UK/lang.adv.php delete mode 100644 plugins/admin_advices/fr_FR.iso-8859-1/index.php delete mode 100644 plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php create mode 100644 plugins/admin_advices/fr_FR/index.php create mode 100644 plugins/admin_advices/fr_FR/lang.adv.php (limited to 'plugins/admin_advices') diff --git a/plugins/admin_advices/en_UK.iso-8859-1/index.php b/plugins/admin_advices/en_UK.iso-8859-1/index.php deleted file mode 100644 index 61741e9cb..000000000 --- a/plugins/admin_advices/en_UK.iso-8859-1/index.php +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php b/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php deleted file mode 100644 index 0f6b697b4..000000000 --- a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php +++ /dev/null @@ -1,435 +0,0 @@ - $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Current value: public. '; - $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'You will have more time to describe and check your pictures.'; - $adv[] = 'Time to decide between private and public status.'; - $adv[] = 'If you choose private, time to distribute authorization.'; - $adv[] = 'Your new category will be well prepared.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'This value could be too small for low band connections.'; - $adv[] = 'Think about higher value like 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Should never contains extensions which can be executed'; - $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Show IPTC Data from your picture:'; - $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . - ' in ./tools/
' . - ' 2 - Rename it as sample.jpg.
' . - ' 3 - Run ./tools/metadata.php
' . - ' 4 - Analyse results to determine which IPTC fields could be' . - ' useful for your visitors.'; - $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; - $adv[] = 'Advanced users would take care of $lang values and impacts' . - ' on templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'This value is maybe too high for low connections, ' . - 'think about 25-50 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'One? It could be too low for random pictures, ' . - 'think about 5-10 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'For normal flow processing, your value is probably too high. ' . - 'Reasonable value is 60 (default).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = 'Authorized values are ' . - "'date_creation' or 'date_available'" . - ', otherwise you can get unpredictable results.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advice - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = "'date_creation'" . ' is NOT filled by ' . - 'any activated use metadata mapping fields.'; - $adv[] = 'So activate metadata usage or change to ' . - '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activate metadata usage as you want:
' . - '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . - 'each way will be correct.
' . - '2 - And respectively map:
' . - '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' . - '=> \'2#055\', ...
' . - 'or/and:
' . - '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' . - '=> \'DateTimeOriginal\', ...
' . - '3 - Finally, a new task is up to you: Metadata synchronization.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Current value: false.'; - $adv[] = 'Not useful, private status is better, so code ' . - '$conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; - $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . - '$conf[\'paginate_pages_around\'] = 2;
' . - 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Should be a close value to your thumbnail width.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Should be a close value to your thumbnail height.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Thumbnail height and width have to be equal.'; - $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . - ';
' . - 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Current value: true.'; - $adv[] = 'For security reason, please set ' . - '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Current value: true.'; - $adv[] = 'If you do NOT have any category descriptions just have ' . - 'a look to $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Current value: true.'; - $adv[] = 'Leave $conf[\'allow_random_representative\'] = true;
' . - 'but analyze if you can avoid for performance reasons.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; - $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; - $adv[] = 'Distant site may use a different prefix but ' . - 'create_listing_file.php must be modified.
' . - 'You will get a warning message during synchronization in ' . - 'that case.'; - $adv[] = 'Try to keep the same prefix thru all your sites either ' . - 'local or distants.'; - $adv[] = 'Keep this parameter in your ./include/config_'. - 'local.inc.php.
'. - 'See our wiki configuration page for more information about ' . - './include/config_local.inc.php.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; - $adv[] = 'Unless you have a low band connection, you can draw up ' . - '$conf[\'users_page\'] to a higher value ' . - 'if you have more than 20 members.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only few webmasters have to set ' . - '$conf[\'mail_options\'] = true;
' . - 'A specific advice you can get from an advanced ' . - 'user on our forum in some mailing issues.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only PWG dev Team have to set ' . - '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; - $adv[] = 'Check your best rated pictures prior to remove some values.' . - '
Reduce excessive rating and change your ' . - '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Current value: true.'; - $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' - . '
Some Professional photographers choose false ' . - 'their reasons are not really professional.' ; - $adv[] = 'Do NOT confuse between show_iptc and ' . - 'use_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Current value: true.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave it ' . - 'as $conf[\'use_iptc\'] = false;'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between show_iptc and ' . - 'use_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.
' . - 'IPTC fields have to be described in ' . - '$conf[\'use_iptc_mapping\']'; - $adv[] = 'In any case, show_iptc_mapping and ' . - 'use_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, show_iptc_mapping and ' . - 'use_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Should be true, some information from your camera ' . - 'can be displayed.'; - $adv[] = 'Think about EXIF information could be different depending ' . - 'on camera models.
' . - 'If you change your camera these fields could be ' . - 'partly different.'; - $adv[] = 'Many professional photographers choose false, ' . - 'their reasons are to protect their knowledge.' ; - $adv[] = 'Do NOT confuse between show_exif and ' . - 'use_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would take care of $lang values and ' . - 'impacts on templates.'; - $adv[] = 'In any case, show_exif_fields and ' . - 'use_exif_mapping must be totally different.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave the default value.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between show_exif and ' . - 'use_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would carefully chose overrided fields ' . - 'prior to synchronize.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, show_exif_fields and ' . - 'use_exif_mapping must be totally different.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/en_UK/index.php b/plugins/admin_advices/en_UK/index.php new file mode 100644 index 000000000..61741e9cb --- /dev/null +++ b/plugins/admin_advices/en_UK/index.php @@ -0,0 +1,33 @@ + diff --git a/plugins/admin_advices/en_UK/lang.adv.php b/plugins/admin_advices/en_UK/lang.adv.php new file mode 100644 index 000000000..0f6b697b4 --- /dev/null +++ b/plugins/admin_advices/en_UK/lang.adv.php @@ -0,0 +1,435 @@ + $value) +{ + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } +} + +// +// Don't forget to update range for new advices +// +$cases = range(1,34); +srand ((double) microtime() * 10000000); +shuffle($cases); + +$cond = false; +foreach ($cases as $id_adv) +{ + if ($cond) break; + $adv = array(); + switch ($id_adv) { + Case 1 : + $adv[] = 'Current value: public. '; + $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; + $adv[] = 'You will have more time to describe and check your pictures.'; + $adv[] = 'Time to decide between private and public status.'; + $adv[] = 'If you choose private, time to distribute authorization.'; + $adv[] = 'Your new category will be well prepared.'; + $cond = ($conf['newcat_default_status'] !== 'public'); + $confk = 'newcat_default_status'; + break; + + Case 2 : + $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; + $adv[] = 'This value could be too small for low band connections.'; + $adv[] = 'Think about higher value like 4.'; + $cond = ( $conf['slideshow_period'] < 4 ); + $confk = 'slideshow_period'; + break; + + Case 3 : + $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; + $adv[] = 'Should never contains extensions which can be executed'; + $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; + $cond = ( in_array('php',$conf['file_ext']) ); + $confk = 'file_ext'; + break; + + Case 4 : + $adv[] = 'Show IPTC Data from your picture:'; + $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . + ' in ./tools/
' . + ' 2 - Rename it as sample.jpg.
' . + ' 3 - Run ./tools/metadata.php
' . + ' 4 - Analyse results to determine which IPTC fields could be' . + ' useful for your visitors.'; + $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; + $adv[] = 'Advanced users would take care of $lang values and impacts' . + ' on templates.'; + $cond = true; + $confk = 'show_iptc_mapping'; + break; + + Case 5 : + $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; + $adv[] = 'This value is maybe too high for low connections, ' . + 'think about 25-50 depending on your thumbnail sizes.'; + $cond = ( $conf['top_number'] > 50 ); + $confk = 'top_number'; + break; + + Case 6 : + $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; + $adv[] = 'One? It could be too low for random pictures, ' . + 'think about 5-10 depending on your thumbnail sizes.'; + $cond = ( $conf['top_number'] < 2 ) ? true : false; + $confk = 'top_number'; + break; + + Case 7 : + $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; + $adv[] = 'For normal flow processing, your value is probably too high. ' . + 'Reasonable value is 60 (default).' ; + $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; + $confk = 'anti-flood_time'; + break; + + Case 8 : + $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; + $adv[] = 'Authorized values are ' . + "'date_creation' or 'date_available'" . + ', otherwise you can get unpredictable results.' ; + $cond = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); + $confk = 'calendar_datefield'; + break; + + Case 9 : + // If (iptc or exif) are used and date_creation is updated + // Then it's Ok, you can use date_creation by default for calendar + // else ... Advice + $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; + $adv[] = "'date_creation'" . ' is NOT filled by ' . + 'any activated use metadata mapping fields.'; + $adv[] = 'So activate metadata usage or change to ' . + '$conf[\'calendar_datefield\'] = \'date_available\''; + $adv[] = 'Activate metadata usage as you want:
' . + '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . + 'each way will be correct.
' . + '2 - And respectively map:
' . + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' . + '=> \'2#055\', ...
' . + 'or/and:
' . + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' . + '=> \'DateTimeOriginal\', ...
' . + '3 - Finally, a new task is up to you: Metadata synchronization.' ; + $cond2 = ( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ); + $cond3 = ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) ); + $cond = ( $conf['calendar_datefield'] == 'date_creation' ); + $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; + $confk = 'calendar_datefield'; + break; + + Case 10 : + $adv[] = 'Current value: false.'; + $adv[] = 'Not useful, private status is better, so code ' . + '$conf[\'newcat_default_visible\'] = true;' ; + $cond = !$conf['newcat_default_visible']; + $confk = 'newcat_default_visible'; + break; + + Case 11 : + $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; + $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; + $cond = ( $conf['level_separator'] == ' / ' ); + $confk = 'level_separator'; + break; + + Case 12 : + $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; + $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . + '$conf[\'paginate_pages_around\'] = 2;
' . + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; + $cond = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); + $confk = 'paginate_pages_around'; + break; + + Case 13 : + $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; + $adv[] = 'Should be a close value to your thumbnail width.' . + $adv[] = 'Usual range is between 96 and 150, ' . + 'about $conf[\'tn_width\'] = 128;'; + $cond = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); + $confk = 'tn_width'; + break; + + Case 14 : + $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; + $adv[] = 'Should be a close value to your thumbnail height.' . + $adv[] = 'Usual range is between 96 and 150, ' . + 'about $conf[\'tn_height\'] = 128;'; + $cond = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); + $confk = 'tn_height'; + break; + + Case 15 : + $adv[] = 'Thumbnail height and width have to be equal.'; + $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . + ';
' . + 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; + $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); + $confk = 'tn_height'; + break; + + Case 16 : + $adv[] = 'Current value: true.'; + $adv[] = 'For security reason, please set ' . + '$conf[\'show_version\'] = false;'; + $cond = $conf['show_version']; + $confk = 'show_version'; + break; + + Case 17 : + $adv[] = 'Current value: true.'; + $adv[] = 'For a lighter gallery just have a look to ' . + '$conf[\'show_thumbnail_caption\'] = false;'; + $cond = $conf['show_thumbnail_caption']; + $confk = 'show_thumbnail_caption'; + break; + + Case 18 : + $adv[] = 'Current value: true.'; + $adv[] = 'For a lighter gallery just have a look to ' . + '$conf[\'show_picture_name_on_title\'] = false;'; + $cond = $conf['show_picture_name_on_title']; + $confk = 'show_picture_name_on_title'; + break; + + Case 19 : + $adv[] = 'Current value: true.'; + $adv[] = 'If you do NOT have any category descriptions just have ' . + 'a look to $conf[\'subcatify\'] = false;'; + $cond = $conf['subcatify']; + $confk = 'subcatify'; + break; + + Case 20 : + $adv[] = 'Current value: true.'; + $adv[] = 'Leave $conf[\'allow_random_representative\'] = true;
' . + 'but analyze if you can avoid for performance reasons.' ; + $cond = $conf['allow_random_representative']; + $confk = 'allow_random_representative'; + break; + + Case 21 : + $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.'; + $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; + $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; + $adv[] = 'Distant site may use a different prefix but ' . + 'create_listing_file.php must be modified.
' . + 'You will get a warning message during synchronization in ' . + 'that case.'; + $adv[] = 'Try to keep the same prefix thru all your sites either ' . + 'local or distants.'; + $adv[] = 'Keep this parameter in your ./include/config_'. + 'local.inc.php.
'. + 'See our wiki configuration page for more information about ' . + './include/config_local.inc.php.'; + $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); + $confk = 'prefix_thumbnail'; + break; + + Case 22 : + $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; + $adv[] = 'Unless you have a low band connection, you can draw up ' . + '$conf[\'users_page\'] to a higher value ' . + 'if you have more than 20 members.'; + $cond = ( $conf['users_page'] < 21 ); + $confk = 'users_page'; + break; + + Case 23 : + $adv[] = 'Current value: true.'; + $adv[] = 'Should be false, only few webmasters have to set ' . + '$conf[\'mail_options\'] = true;
' . + 'A specific advice you can get from an advanced ' . + 'user on our forum in some mailing issues.' ; + $cond = $conf['mail_options']; + $confk = 'mail_options'; + break; + + Case 24 : + $adv[] = 'Current value: true.'; + $adv[] = 'Should be false, only PWG dev Team have to set ' . + '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; + $cond = $conf['check_upgrade_feed']; + $confk = 'check_upgrade_feed'; + break; + + Case 25 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; + $cond = ( count($conf['rate_items']) < 4 ); + $confk = 'rate_items'; + break; + + Case 26 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; + $adv[] = 'Check your best rated pictures prior to remove some values.' . + '
Reduce excessive rating and change your ' . + '$conf[\'rate_items\'].'; + $cond = ( count($conf['rate_items']) > 6 ); + $confk = 'rate_items'; + break; + + Case 27 : + $adv[] = 'Current value: true.'; + $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' + . '
Some Professional photographers choose false ' . + 'their reasons are not really professional.' ; + $adv[] = 'Do NOT confuse between show_iptc and ' . + 'use_iptc (have a look on metadata page ' . + 'on our wiki).'; + $cond = $conf['show_iptc']; + $confk = 'show_iptc'; + break; + + Case 28 : + $adv[] = 'Current value: true.'; + $adv[] = 'Documentalists and professionnal photographers would ' . + 'set it true, but beginners should leave it ' . + 'as $conf[\'use_iptc\'] = false;'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '
Mentionned fields would be rewrited with IPTC values ' . + ' even those ones are NOT empty.'; + $adv[] = 'Do NOT confuse between show_iptc and ' . + 'use_iptc (have a look on metadata page ' . + 'on our wiki).'; + $cond = $conf['use_iptc']; + $confk = 'use_iptc'; + break; + + Case 29 : + $adv[] = 'How to deal with IPTC:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '
2 - Rename it as sample.jpg.' . + '
3 - Run ./tools/metadata.php' . + '
4 - Analyse results to determine which IPTC fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; + $adv[] = 'Advanced users make documentation efforts prior ' . + 'to upload their pictures.
' . + 'IPTC fields have to be described in ' . + '$conf[\'use_iptc_mapping\']'; + $adv[] = 'In any case, show_iptc_mapping and ' . + 'use_iptc_mapping must be totally different.'; + $cond = true; + $confk = 'use_iptc'; + break; + + Case 30 : + $adv[] = 'How to deal with IPTC:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '
2 - Rename it as sample.jpg.' . + '
3 - Run ./tools/metadata.php' . + '
4 - Analyse results to determine which IPTC fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; + $adv[] = 'Advanced users make documentation efforts prior ' . + 'to upload their pictures.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '
Mentionned fields would be rewrited with IPTC values ' . + ' even those ones are NOT empty.'; + $adv[] = 'In any case, show_iptc_mapping and ' . + 'use_iptc_mapping must be totally different.'; + $cond = true; + $confk = 'use_iptc_mapping'; + break; + + Case 31 : + $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Should be true, some information from your camera ' . + 'can be displayed.'; + $adv[] = 'Think about EXIF information could be different depending ' . + 'on camera models.
' . + 'If you change your camera these fields could be ' . + 'partly different.'; + $adv[] = 'Many professional photographers choose false, ' . + 'their reasons are to protect their knowledge.' ; + $adv[] = 'Do NOT confuse between show_exif and ' . + 'use_exif (have a look on metadata page ' . + 'on our wiki).'; + $cond = true; + $confk = 'show_exif'; + break; + + Case 32 : + $adv[] = 'How to deal with EXIF:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '
2 - Rename it as sample.jpg.' . + '
3 - Run ./tools/metadata.php' . + '
4 - Analyse results to determine which EXIF fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to let default values.'; + $adv[] = 'Advanced users would take care of $lang values and ' . + 'impacts on templates.'; + $adv[] = 'In any case, show_exif_fields and ' . + 'use_exif_mapping must be totally different.'; + $cond = true; + $confk = 'show_exif_fields'; + break; + + Case 33 : + $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Documentalists and professionnal photographers would ' . + 'set it true, but beginners should leave the default value.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '
Mentionned fields would be rewrited with EXIF values ' . + ' even those ones are NOT empty.'; + $adv[] = 'Do NOT confuse between show_exif and ' . + 'use_exif (have a look on metadata page ' . + 'on our wiki).'; + $cond = true; + $confk = 'use_exif'; + break; + + Case 34 : + $adv[] = 'How to deal with EXIF:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '
2 - Rename it as sample.jpg.' . + '
3 - Run ./tools/metadata.php' . + '
4 - Analyse results to determine which EXIF fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to let default values.'; + $adv[] = 'Advanced users would carefully chose overrided fields ' . + 'prior to synchronize.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '
Mentionned fields would be rewrited with EXIF values ' . + ' even those ones are NOT empty.'; + $adv[] = 'In any case, show_exif_fields and ' . + 'use_exif_mapping must be totally different.'; + $cond = true; + $confk = 'use_exif_mapping'; + break; + } +} + +?> diff --git a/plugins/admin_advices/fr_FR.iso-8859-1/index.php b/plugins/admin_advices/fr_FR.iso-8859-1/index.php deleted file mode 100644 index 61741e9cb..000000000 --- a/plugins/admin_advices/fr_FR.iso-8859-1/index.php +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php b/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php deleted file mode 100644 index c1a3c4d08..000000000 --- a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php +++ /dev/null @@ -1,468 +0,0 @@ - $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Valeur actuelle : public. '; - $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' - . 'Du temps pour vous décider entre un statut privé ou public.'; - $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' - . 'à l\'attribution des autorisations.
' - . 'Vos nouvelles catégories seront préparées plus facilement.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'Ce délai pourrait être trop petit pour les connexions ' - . 'en bas débit.'; - $adv[] = 'Pensez à une valeur supérieure comme 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Ne devrait jamais contenir des extensions pouvant être '; - $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' - . 'bas débit.
Pensez à une valeur située entre 25-50 ' - . 'en fonction de la taille de vos minitures.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' - . 'autour de 5-10 selon la tailles de vos miniatures.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' - . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = 'Les valeurs admises sont ' - . "'date_creation' ou 'date_available'" . ', toute autre valeur' - . 'peut aboutir à des résultats imprévisibles.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advise - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' - . 'des méta-données (use_) n\'actualise la base.'; - $adv[] = 'Soit vous activez l\'usage des méta-données ou' - . ' changez pour ' - . '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activez l\'usage des méta-données simplement par:
' - . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' - . 'au choix, les 2 sont valables.
' - . '2 - Respectivement à chacune faire la modif:
' - . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' - . '=> \'2#055\', ...
' - . 'et/ou:
' - . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' - . '=> \'DateTimeOriginal\', ...
' - . '3 - Enfin une nouvelle tache vous est destinée: ' - . 'la synchronisation des méta-données.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Valeur actuelle : false.'; - $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' - . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Vous pouvez toujours essayer un autre séparateur commme :' - . '
$conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] - . '.'; - $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' - . 'Pour un site avec une interface légère, on choisira :
' - . '$conf[\'paginate_pages_around\'] = 2;
' - . 'Afin de proposer plus d\'accès directs, on choisira :
' - . '$conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit ' - . 'différente de la hauteur maximale. Pourquoi les ajouts en ' - . 'portrait afficheraient des miniatures dans une résolution ' - . 'différente de celle des miniatures en paysage?'; - $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] - . ';
' - . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' - . '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' - . 'essayez $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true;
' - . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' - . 'de performance.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas ' - . 'standard.'; - $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' - . 'problème d\'affichage.'; - $adv[] = 'Un site distant peut avoir un préfixe différent, le ' - . 'create_listing_file.php devra être modifié.
' - . 'Vous devriez avoir un message d\'avertissement pendant la ' - . 'synchronisation dans ce cas.'; - $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' - . 'locaux ou distants.'; - $adv[] = 'Conservez ce paramètre dans votre ./include/config_' - . 'local.inc.php.
' - . 'Voir la page sur la configuration dans le Wiki pour plus ' - . 'd\'informations à propos de ' - . './include/config_local.inc.php.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; - $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' - . 'augmenter largement $conf[\'users_page\'] ' - . 'surtout si vous avez plus de 20 membres.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' - . 'indiquer $conf[\'mail_options\'] = true;
' - . 'Un utilisateur avancé de notre forum les aura conseillé ' - . 'dans un seul cas de problème d\'email.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' - . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) - . 'éléments.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas moins.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas plus.'; - $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' - . ' certaines valeurs.' - . '
Réduire les valeurs excessives et modifiez votre ' - . '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' - . '$conf[\'show_iptc\'] = false;' - . '
Comme quelques photographes professionnels choisissez ' - . 'false bien que leurs raisons ne soient guère professionnelles.'; - $adv[] = 'Ne confondez pas show_iptc et ' - . 'use_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . '$conf[\'use_iptc\'] = false;'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas show_iptc et ' - . 'use_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.
' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Dans tous les cas, show_iptc_mapping et ' - . 'use_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.
' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, show_iptc_mapping et ' - . 'use_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Valeur actuelle : ' - . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; - $adv[] = 'Devrait être à true, certaines informations propres à votre ' - . 'appareil pourront être affichées.'; - $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' - . 'différentes suivant les modèles d\'appareil.
' - . 'Si vous changez votre appareil ces champs pourraient en ' - . 'partie differents.'; - $adv[] = 'Beaucoup de photographes professionnels choissent false, ' - . 'ceci afin de protéger leur savoir-faire.' ; - $adv[] = 'Ne confondez pas show_exif et ' - . 'use_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Dans tous les cas, show_exif_fields et ' - . 'use_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . 'la valeur par défaut.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas show_exif et ' - . 'use_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront très attention aux champs ' - . 'sélectionnés et modifiés par la synchronisation.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Ces champs pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, show_exif_fields et ' - . 'use_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/fr_FR/index.php b/plugins/admin_advices/fr_FR/index.php new file mode 100644 index 000000000..61741e9cb --- /dev/null +++ b/plugins/admin_advices/fr_FR/index.php @@ -0,0 +1,33 @@ + diff --git a/plugins/admin_advices/fr_FR/lang.adv.php b/plugins/admin_advices/fr_FR/lang.adv.php new file mode 100644 index 000000000..350ea53b0 --- /dev/null +++ b/plugins/admin_advices/fr_FR/lang.adv.php @@ -0,0 +1,468 @@ + $value) +{ + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } +} + +// +// Don't forget to update range for new advices +// +$cases = range(1,34); +srand ((double) microtime() * 10000000); +shuffle($cases); + +$cond = false; +foreach ($cases as $id_adv) +{ + if ($cond) break; + $adv = array(); + switch ($id_adv) { + Case 1 : + $adv[] = 'Valeur actuelle : public. '; + $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';'; + $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' + . 'Du temps pour vous décider entre un statut privé ou public.'; + $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' + . 'à l\'attribution des autorisations.
' + . 'Vos nouvelles catégories seront préparées plus facilement.'; + $cond = ($conf['newcat_default_status'] !== 'public'); + $confk = 'newcat_default_status'; + break; + + Case 2 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; + $adv[] = 'Ce délai pourrait être trop petit pour les connexions ' + . 'en bas débit.'; + $adv[] = 'Pensez à une valeur supérieure comme 4.'; + $cond = ( $conf['slideshow_period'] < 4 ); + $confk = 'slideshow_period'; + break; + + Case 3 : + $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; + $adv[] = 'Ne devrait jamais contenir des extensions pouvant être '; + $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...'; + $cond = ( in_array('php',$conf['file_ext']) ); + $confk = 'file_ext'; + break; + + Case 4 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' + . ' 2 - Renommez celle-ci en sample.jpg.
' + . ' 3 - Lancez ./tools/metadata.php
' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $cond = true; + $confk = 'show_iptc_mapping'; + break; + + Case 5 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; + $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' + . 'bas débit.
Pensez à une valeur située entre 25-50 ' + . 'en fonction de la taille de vos minitures.'; + $cond = ( $conf['top_number'] > 50 ); + $confk = 'top_number'; + break; + + Case 6 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; + $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' + . 'autour de 5-10 selon la tailles de vos miniatures.'; + $cond = ( $conf['top_number'] < 2 ) ? true : false; + $confk = 'top_number'; + break; + + Case 7 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; + $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' + . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; + $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; + $confk = 'anti-flood_time'; + break; + + Case 8 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; + $adv[] = 'Les valeurs admises sont ' + . "'date_creation' ou 'date_available'" . ', toute autre valeur' + . 'peut aboutir à des résultats imprévisibles.' ; + $cond = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); + $confk = 'calendar_datefield'; + break; + + Case 9 : + // If (iptc or exif) are used and date_creation is updated + // Then it's Ok, you can use date_creation by default for calendar + // else ... Advise + $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; + $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' + . 'des méta-données (use_) n\'actualise la base.'; + $adv[] = 'Soit vous activez l\'usage des méta-données ou' + . ' changez pour ' + . '$conf[\'calendar_datefield\'] = \'date_available\''; + $adv[] = 'Activez l\'usage des méta-données simplement par:
' + . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' + . 'au choix, les 2 sont valables.
' + . '2 - Respectivement à chacune faire la modif:
' + . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' + . '=> \'2#055\', ...
' + . 'et/ou:
' + . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' + . '=> \'DateTimeOriginal\', ...
' + . '3 - Enfin une nouvelle tache vous est destinée: ' + . 'la synchronisation des méta-données.' ; + $cond2 = ( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ); + $cond3 = ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) ); + $cond = ( $conf['calendar_datefield'] == 'date_creation' ); + $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; + $confk = 'calendar_datefield'; + break; + + Case 10 : + $adv[] = 'Valeur actuelle : false.'; + $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' + . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; + $cond = !$conf['newcat_default_visible']; + $confk = 'newcat_default_visible'; + break; + + Case 11 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; + $adv[] = 'Vous pouvez toujours essayer un autre séparateur commme :' + . '
$conf[\'level_separator\'] = \'+ \';'; + $cond = ( $conf['level_separator'] == ' / ' ); + $confk = 'level_separator'; + break; + + Case 12 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] + . '.'; + $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' + . 'Pour un site avec une interface légère, on choisira :
' + . '$conf[\'paginate_pages_around\'] = 2;
' + . 'Afin de proposer plus d\'accès directs, on choisira :
' + . '$conf[\'paginate_pages_around\'] = 7;'; + $cond = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); + $confk = 'paginate_pages_around'; + break; + + Case 13 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; + $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; + $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' + . 'comme $conf[\'tn_width\'] = 128;'; + $cond = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); + $confk = 'tn_width'; + break; + + Case 14 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; + $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; + $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' + . 'comme $conf[\'tn_height\'] = 128;'; + $cond = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); + $confk = 'tn_height'; + break; + + Case 15 : + $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit ' + . 'différente de la hauteur maximale. Pourquoi les ajouts en ' + . 'portrait afficheraient des miniatures dans une résolution ' + . 'différente de celle des miniatures en paysage?'; + $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] + . ';
' + . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; + $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); + $confk = 'tn_height'; + break; + + Case 16 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' + . '$conf[\'show_version\'] = false;'; + $cond = $conf['show_version']; + $confk = 'show_version'; + break; + + Case 17 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour une galerie moins chargée, faites le test de ' + . '$conf[\'show_thumbnail_caption\'] = false;'; + $cond = $conf['show_thumbnail_caption']; + $confk = 'show_thumbnail_caption'; + break; + + Case 18 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour une galerie moins chargée, faites le test de ' + . '$conf[\'show_picture_name_on_title\'] = false;'; + $cond = $conf['show_picture_name_on_title']; + $confk = 'show_picture_name_on_title'; + break; + + Case 19 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' + . 'essayez $conf[\'subcatify\'] = false;'; + $cond = $conf['subcatify']; + $confk = 'subcatify'; + break; + + Case 20 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true;
' + . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' + . 'de performance.' ; + $cond = $conf['allow_random_representative']; + $confk = 'allow_random_representative'; + break; + + Case 21 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; + $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas ' + . 'standard.'; + $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' + . 'problème d\'affichage.'; + $adv[] = 'Un site distant peut avoir un préfixe différent, le ' + . 'create_listing_file.php devra être modifié.
' + . 'Vous devriez avoir un message d\'avertissement pendant la ' + . 'synchronisation dans ce cas.'; + $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' + . 'locaux ou distants.'; + $adv[] = 'Conservez ce paramètre dans votre ./include/config_' + . 'local.inc.php.
' + . 'Voir la page sur la configuration dans le Wiki pour plus ' + . 'd\'informations à propos de ' + . './include/config_local.inc.php.'; + $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); + $confk = 'prefix_thumbnail'; + break; + + Case 22 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; + $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' + . 'augmenter largement $conf[\'users_page\'] ' + . 'surtout si vous avez plus de 20 membres.'; + $cond = ( $conf['users_page'] < 21 ); + $confk = 'users_page'; + break; + + Case 23 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' + . 'indiquer $conf[\'mail_options\'] = true;
' + . 'Un utilisateur avancé de notre forum les aura conseillé ' + . 'dans un seul cas de problème d\'email.' ; + $cond = $conf['mail_options']; + $confk = 'mail_options'; + break; + + Case 24 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' + . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; + $cond = $conf['check_upgrade_feed']; + $confk = 'check_upgrade_feed'; + break; + + Case 25 : + $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) + . 'éléments.'; + $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' + . 'mais pas moins.'; + $cond = ( count($conf['rate_items']) < 4 ); + $confk = 'rate_items'; + break; + + Case 26 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' + . 'mais pas plus.'; + $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' + . ' certaines valeurs.' + . '
Réduire les valeurs excessives et modifiez votre ' + . '$conf[\'rate_items\'].'; + $cond = ( count($conf['rate_items']) > 6 ); + $confk = 'rate_items'; + break; + + Case 27 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' + . '$conf[\'show_iptc\'] = false;' + . '
Comme quelques photographes professionnels choisissez ' + . 'false bien que leurs raisons ne soient guère professionnelles.'; + $adv[] = 'Ne confondez pas show_iptc et ' + . 'use_iptc (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = $conf['show_iptc']; + $confk = 'show_iptc'; + break; + + Case 28 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Les documentalistes et photographes professionnels choisiront ' + . 'cette valeur true, mais les débutants devraient laisser ' + . '$conf[\'use_iptc\'] = false;'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.
Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs IPTC quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Ne confondez pas show_iptc et ' + . 'use_iptc (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = $conf['use_iptc']; + $confk = 'use_iptc'; + break; + + Case 29 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' + . ' 2 - Renommez celle-ci en sample.jpg.
' + . ' 3 - Lancez ./tools/metadata.php
' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' + . 'avant de transférer leurs images.
' + . 'Les champs IPTC doivent être décrits par ' + . '$conf[\'use_iptc_mapping\']'; + $adv[] = 'Dans tous les cas, show_iptc_mapping et ' + . 'use_iptc_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_iptc'; + break; + + Case 30 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' + . ' 2 - Renommez celle-ci en sample.jpg.
' + . ' 3 - Lancez ./tools/metadata.php
' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' + . 'avant de transférer leurs images.
' + . 'Les champs IPTC doivent être décrits par ' + . '$conf[\'use_iptc_mapping\']'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.
Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs IPTC quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Dans tous les cas, show_iptc_mapping et ' + . 'use_iptc_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_iptc_mapping'; + break; + + Case 31 : + $adv[] = 'Valeur actuelle : ' + . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; + $adv[] = 'Devrait être à true, certaines informations propres à votre ' + . 'appareil pourront être affichées.'; + $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' + . 'différentes suivant les modèles d\'appareil.
' + . 'Si vous changez votre appareil ces champs pourraient en ' + . 'partie differents.'; + $adv[] = 'Beaucoup de photographes professionnels choissent false, ' + . 'ceci afin de protéger leur savoir-faire.' ; + $adv[] = 'Ne confondez pas show_exif et ' + . 'use_exif (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = true; + $confk = 'show_exif'; + break; + + Case 32 : + $adv[] = 'Comment gérer les EXIF:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' + . ' 2 - Renommez celle-ci en sample.jpg.
' + . ' 3 - Lancez ./tools/metadata.php
' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'EXIF pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront la valeur par défaut.'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $adv[] = 'Dans tous les cas, show_exif_fields et ' + . 'use_exif_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'show_exif_fields'; + break; + + Case 33 : + $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Les documentalistes et photographes professionnels choisiront ' + . 'cette valeur true, mais les débutants devraient laisser ' + . 'la valeur par défaut.'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.
Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs EXIF quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Ne confondez pas show_exif et ' + . 'use_exif (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = true; + $confk = 'use_exif'; + break; + + Case 34 : + $adv[] = 'Comment gérer les EXIF:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' + . ' 2 - Renommez celle-ci en sample.jpg.
' + . ' 3 - Lancez ./tools/metadata.php
' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'EXIF pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront la valeur par défaut.'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront très attention aux champs ' + . 'sélectionnés et modifiés par la synchronisation.'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.
Ces champs pourront être ' + . 'écrasés par des valeurs de champs EXIF quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Dans tous les cas, show_exif_fields et ' + . 'use_exif_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_exif_mapping'; + break; + } +} + +?> -- cgit v1.2.3