Changeset 2126
- Timestamp:
- Oct 9, 2007, 1:46:09 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r2014 r2126 58 58 array( 59 59 'about'=>'about.tpl', 60 'about_content' => get_language_filepath('about.html')61 60 ) 62 61 ); … … 76 75 ); 77 76 78 $template->assign_var _from_handle('ABOUT_MESSAGE', 'about_content');79 77 $template->assign_var('ABOUT_MESSAGE', load_language('about.html','','',true) ); 78 80 79 $template->parse('about'); 81 80 include(PHPWG_ROOT_PATH.'include/page_tail.php'); -
trunk/admin/help.php
r1900 r2126 33 33 check_status(ACCESS_ADMINISTRATOR); 34 34 35 $template->set_filenames( 36 array( 37 'help_content' => get_language_filepath('help.html') 38 ) 39 ); 40 41 $template->assign_var_from_handle('ADMIN_CONTENT', 'help_content'); 35 $template->assign_var('ADMIN_CONTENT', load_language('help.html','','',true) ); 42 36 ?> -
trunk/include/common.inc.php
r2117 r2126 156 156 157 157 // language files 158 include_once(get_language_filepath('common.lang.php'));158 load_language('common.lang'); 159 159 if (defined('IN_ADMIN') and IN_ADMIN) 160 160 { 161 include_once(get_language_filepath('admin.lang.php'));161 load_language('admin.lang'); 162 162 } 163 163 trigger_action('loading_lang'); 164 @include_once(get_language_filepath('local.lang.php'));164 load_language('local.lang'); 165 165 166 166 // only now we can set the localized username of the guest user (and not in -
trunk/include/functions.inc.php
r2123 r2126 730 730 { 731 731 $user = build_user( $conf['guest_id'], true); 732 include_once(get_language_filepath('common.lang.php'));732 load_language('common.lang'); 733 733 trigger_action('loading_lang'); 734 @include_once(get_language_filepath('local.lang.php'));734 load_language('local.lang'); 735 735 list($tmpl, $thm) = explode('/', get_default_template()); 736 736 $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm); … … 1425 1425 } 1426 1426 1427 /** 1428 * returns the character set of data sent to browsers / received from forms 1429 */ 1430 function get_pwg_charset() 1431 { 1432 //TEMP CODE 1433 global $lang_info;return $lang_info['charset']; 1434 } 1435 1436 /** 1437 * includes a language file or returns the content of a language file 1438 * availability of the file 1439 * 1440 * in descending order of preference: 1441 * param language, user language, default language 1442 * PhpWebGallery default language. 1443 * 1444 * @param string filename 1445 * @param string dirname 1446 * @param string language 1447 * @param bool return_content - if true the file content is returned otherwise 1448 * the file is evaluated as php 1449 * @return boolean success status or a string if return_content is true 1450 */ 1451 function load_language($filename, $dirname = '', $language = '', 1452 $return_content=false) 1453 { 1454 //TEMP CODE 1455 if (!$return_content) $filename.='.php'; 1456 $f = get_language_filepath($filename, $dirname, $language); 1457 if ($f === false) 1458 return false; 1459 if ($return_content) 1460 return @file_get_contents($f); 1461 global $lang, $lang_info; 1462 @include($f); 1463 return true; 1464 } 1465 1427 1466 ?> -
trunk/include/functions_mail.inc.php
r2122 r2126 49 49 50 50 global $lang_info; 51 return '=?'. $lang_info['charset'].'?Q?'.$str.'?=';51 return '=?'.get_pwg_charset().'?Q?'.$str.'?='; 52 52 } 53 53 … … 227 227 228 228 // language files 229 include(get_language_filepath('common.lang.php', '', $language));229 load_language('common.lang', '', $language); 230 230 // No test admin because script is checked admin (user selected no) 231 231 // Translations are in admin file too 232 include(get_language_filepath('admin.lang.php', '', $language));232 load_language('admin.lang', '', $language); 233 233 trigger_action('loading_lang'); 234 @include(get_language_filepath('local.lang.php', '', $language));234 load_language('local.lang', '', $language); 235 235 236 236 $switch_lang[$language]['lang_info'] = $lang_info; … … 589 589 $content = ''; 590 590 591 if (!isset($conf_mail[$args['email_format']][ $lang_info['charset']][$args['template']][$args['theme']]))591 if (!isset($conf_mail[$args['email_format']][get_pwg_charset()][$args['template']][$args['theme']])) 592 592 { 593 593 if (!isset($mail_template)) … … 604 604 'BOUNDARY_KEY' => $conf_mail['boundary_key'], 605 605 'CONTENT_TYPE' => $args['email_format'], 606 'CONTENT_ENCODING' => $lang_info['charset'],606 'CONTENT_ENCODING' => get_pwg_charset(), 607 607 'LANG' => $lang_info['code'], 608 608 'DIR' => $lang_info['direction'], … … 651 651 // what are displayed on the header of each mail ? 652 652 $conf_mail[$args['email_format']] 653 [ $lang_info['charset']]653 [get_pwg_charset()] 654 654 [$args['template']][$args['theme']]['header'] = 655 655 $mail_template->parse('mail_header', true); … … 657 657 // what are displayed on the footer of each mail ? 658 658 $conf_mail[$args['email_format']] 659 [ $lang_info['charset']]659 [get_pwg_charset()] 660 660 [$args['template']][$args['theme']]['footer'] = 661 661 $mail_template->parse('mail_footer', true); … … 664 664 // Header 665 665 $content.= $conf_mail[$args['email_format']] 666 [ $lang_info['charset']]666 [get_pwg_charset()] 667 667 [$args['template']][$args['theme']]['header']; 668 668 … … 684 684 // Footer 685 685 $content.= $conf_mail[$args['email_format']] 686 [ $lang_info['charset']]686 [get_pwg_charset()] 687 687 [$args['template']][$args['theme']]['footer']; 688 688 -
trunk/include/page_header.php
r1900 r2126 47 47 $page['body_id'] : '', 48 48 49 'CONTENT_ENCODING' => $lang_info['charset'],49 'CONTENT_ENCODING' => get_pwg_charset(), 50 50 'PAGE_TITLE' => strip_tags($title), 51 51 'LANG'=>$lang_info['code'], … … 100 100 trigger_action('loc_end_page_header'); 101 101 102 header('Content-Type: text/html; charset='. $lang_info['charset']);102 header('Content-Type: text/html; charset='.get_pwg_charset()); 103 103 $template->parse('header'); 104 104 -
trunk/include/ws_functions.inc.php
r2119 r2126 911 911 $res[$k] = $user[$k]; 912 912 } 913 foreach ( array('charset') as $k ) 914 { 915 $res[$k] = $lang_info[$k]; 916 } 913 $res['charset'] = get_pwg_charset(); 917 914 return $res; 918 915 } -
trunk/include/ws_protocols/rest_encoder.php
r1900 r2126 169 169 $this->encode($response); 170 170 $ret = $this->_writer->getOutput(); 171 $ret = '<?xml version="1.0" encoding="'. $lang_info['charset'].'" ?>171 $ret = '<?xml version="1.0" encoding="'.get_pwg_charset().'" ?> 172 172 <rsp stat="ok"> 173 173 '.$ret.' -
trunk/nbm.php
r2059 r2126 35 35 include_once(PHPWG_ROOT_PATH.'admin/include/functions_notification_by_mail.inc.php'); 36 36 // Translations are in admin file too 37 include(get_language_filepath('admin.lang.php'));37 load_language('admin.lang'); 38 38 // Need to update a second time 39 39 trigger_action('loading_lang'); 40 @include(get_language_filepath('local.lang.php')); 40 load_language('local.lang'); 41 41 42 42 43 -
trunk/plugins/add_index/main.admin.inc.php
r2059 r2126 51 51 function loading_lang() 52 52 { 53 global $lang; 54 55 include(get_language_filepath('plugin.lang.php', $this->path)); 53 load_language('plugin.lang', $this->path); 56 54 } 57 55 -
trunk/plugins/add_index/main.normal.inc.php
r2059 r2126 37 37 { 38 38 $help_content = 39 @file_get_contents(get_language_filepath('help/'.$page.'.html', $this->path));39 load_language('help/'.$page.'.html', $this->path, '', true); 40 40 } 41 41 else -
trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php
r1926 r2126 20 20 $bool = ($value == 'false') ? false : $value; 21 21 $bool = ($value == 'true') ? true : $bool; 22 $conf[$key] = $bool; 22 $conf[$key] = $bool; 23 23 } 24 24 } … … 46 46 $cond = ($conf['newcat_default_status'] !== 'public'); 47 47 $confk = 'newcat_default_status'; 48 break; 49 48 break; 49 50 50 Case 2 : 51 51 $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; … … 54 54 $cond = ( $conf['slideshow_period'] < 4 ); 55 55 $confk = 'slideshow_period'; 56 break; 57 56 break; 57 58 58 Case 3 : 59 59 $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; … … 62 62 $cond = ( in_array('php',$conf['file_ext']) ); 63 63 $confk = 'file_ext'; 64 break; 65 64 break; 65 66 66 Case 4 : 67 67 $adv[] = 'Show IPTC Data from your picture:'; 68 $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . 69 ' in ./tools/<br />' . 70 ' 2 - Rename it as sample.jpg.<br />' . 68 $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . 69 ' in ./tools/<br />' . 70 ' 2 - Rename it as sample.jpg.<br />' . 71 71 ' 3 - Run ./tools/metadata.php<br />' . 72 ' 4 - Analyse results to determine which IPTC fields could be' . 72 ' 4 - Analyse results to determine which IPTC fields could be' . 73 73 ' useful for your visitors.'; 74 74 $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; 75 $adv[] = 'Advanced users would take care of $lang values and impacts' . 75 $adv[] = 'Advanced users would take care of $lang values and impacts' . 76 76 ' on templates.'; 77 77 $cond = true; 78 78 $confk = 'show_iptc_mapping'; 79 break; 80 79 break; 80 81 81 Case 5 : 82 82 $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; 83 $adv[] = 'This value is maybe too high for low connections, ' . 83 $adv[] = 'This value is maybe too high for low connections, ' . 84 84 'think about 25-50 depending on your thumbnail sizes.'; 85 85 $cond = ( $conf['top_number'] > 50 ); 86 86 $confk = 'top_number'; 87 break; 88 87 break; 88 89 89 Case 6 : 90 90 $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; 91 $adv[] = 'One? It could be too low for random pictures, ' . 91 $adv[] = 'One? It could be too low for random pictures, ' . 92 92 'think about 5-10 depending on your thumbnail sizes.'; 93 93 $cond = ( $conf['top_number'] < 2 ) ? true : false; 94 94 $confk = 'top_number'; 95 break; 96 95 break; 96 97 97 Case 7 : 98 98 $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; … … 101 101 $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; 102 102 $confk = 'anti-flood_time'; 103 break; 104 103 break; 104 105 105 Case 8 : 106 106 $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; … … 108 108 "'date_creation' or 'date_available'" . 109 109 ', otherwise you can get unpredictable results.' ; 110 $cond = ( !in_array($conf['calendar_datefield'], 110 $cond = ( !in_array($conf['calendar_datefield'], 111 111 array('date_creation','date_available')) ); 112 112 $confk = 'calendar_datefield'; 113 break; 114 113 break; 114 115 115 Case 9 : 116 116 // If (iptc or exif) are used and date_creation is updated … … 118 118 // else ... Advice 119 119 $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; 120 $adv[] = "'date_creation'" . ' is NOT filled by ' . 120 $adv[] = "'date_creation'" . ' is NOT filled by ' . 121 121 'any activated use metadata mapping fields.'; 122 $adv[] = 'So activate metadata usage <strong>or</strong> change to ' . 122 $adv[] = 'So activate metadata usage <strong>or</strong> change to ' . 123 123 '$conf[\'calendar_datefield\'] = \'date_available\''; 124 124 $adv[] = 'Activate metadata usage as you want: <br />' . 125 '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . 125 '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . 126 126 'each way will be correct.<br />' . 127 127 '2 - And respectively map:<br />' . … … 132 132 '=> \'DateTimeOriginal\', ...<br />' . 133 133 '3 - Finally, a new task is up to you: Metadata synchronization.' ; 134 $cond2 = ( $conf['use_exif'] and 134 $cond2 = ( $conf['use_exif'] and 135 135 isset($conf['use_exif_mapping']['date_creation']) ); 136 136 $cond3 = ( $conf['use_iptc'] and … … 139 139 $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; 140 140 $confk = 'calendar_datefield'; 141 break; 142 141 break; 142 143 143 Case 10 : 144 144 $adv[] = 'Current value: false.'; … … 147 147 $cond = !$conf['newcat_default_visible']; 148 148 $confk = 'newcat_default_visible'; 149 break; 150 149 break; 150 151 151 Case 11 : 152 152 $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; … … 154 154 $cond = ( $conf['level_separator'] == ' / ' ); 155 155 $confk = 'level_separator'; 156 break; 157 156 break; 157 158 158 Case 12 : 159 159 $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; … … 161 161 '$conf[\'paginate_pages_around\'] = 2; <br />' . 162 162 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; 163 $cond = (($conf['paginate_pages_around'] < 2) 163 $cond = (($conf['paginate_pages_around'] < 2) 164 164 or ($conf['paginate_pages_around'] > 12)); 165 165 $confk = 'paginate_pages_around'; 166 break; 166 break; 167 167 168 168 Case 13 : 169 169 $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; 170 170 $adv[] = 'Should be a close value to your thumbnail width.' . 171 $adv[] = 'Usual range is between 96 and 150, ' . 171 $adv[] = 'Usual range is between 96 and 150, ' . 172 172 'about $conf[\'tn_width\'] = 128;'; 173 $cond = (($conf['tn_width'] < 66) 173 $cond = (($conf['tn_width'] < 66) 174 174 or ($conf['tn_width'] > 180)); 175 175 $confk = 'tn_width'; 176 break; 176 break; 177 177 178 178 Case 14 : 179 179 $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; 180 180 $adv[] = 'Should be a close value to your thumbnail height.' . 181 $adv[] = 'Usual range is between 96 and 150, ' . 181 $adv[] = 'Usual range is between 96 and 150, ' . 182 182 'about $conf[\'tn_height\'] = 128;'; 183 $cond = (($conf['tn_height'] < 66) 183 $cond = (($conf['tn_height'] < 66) 184 184 or ($conf['tn_height'] > 180)); 185 185 $confk = 'tn_height'; 186 break; 186 break; 187 187 188 188 Case 15 : 189 189 $adv[] = 'Thumbnail height and width have to be equal.'; 190 $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . 190 $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . 191 191 ';<br />' . 192 192 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; 193 193 $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); 194 194 $confk = 'tn_height'; 195 break; 195 break; 196 196 197 197 Case 16 : … … 201 201 $cond = $conf['show_version']; 202 202 $confk = 'show_version'; 203 break; 203 break; 204 204 205 205 Case 17 : … … 209 209 $cond = $conf['show_thumbnail_caption']; 210 210 $confk = 'show_thumbnail_caption'; 211 break; 211 break; 212 212 213 213 Case 18 : … … 217 217 $cond = $conf['show_picture_name_on_title']; 218 218 $confk = 'show_picture_name_on_title'; 219 break; 219 break; 220 220 221 221 Case 19 : … … 225 225 $cond = $conf['subcatify']; 226 226 $confk = 'subcatify'; 227 break; 227 break; 228 228 229 229 Case 20 : … … 233 233 $cond = $conf['allow_random_representative']; 234 234 $confk = 'allow_random_representative'; 235 break; 235 break; 236 236 237 237 Case 21 : … … 239 239 $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; 240 240 $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; 241 $adv[] = 'Distant site may use a different prefix but ' . 241 $adv[] = 'Distant site may use a different prefix but ' . 242 242 'create_listing_file.php must be modified.<br />' . 243 243 'You will get a warning message during synchronization in ' . … … 251 251 $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); 252 252 $confk = 'prefix_thumbnail'; 253 break; 253 break; 254 254 255 255 Case 22 : 256 256 $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; 257 257 $adv[] = 'Unless you have a low band connection, you can draw up ' . 258 '$conf[\'users_page\'] to a higher value ' . 258 '$conf[\'users_page\'] to a higher value ' . 259 259 'if you have more than 20 members.'; 260 260 $cond = ( $conf['users_page'] < 21 ); 261 261 $confk = 'users_page'; 262 break; 262 break; 263 263 264 264 Case 23 : … … 266 266 $adv[] = 'Should be false, only few webmasters have to set ' . 267 267 '$conf[\'mail_options\'] = true; <br />' . 268 'A specific advice you can get from an advanced ' . 268 'A specific advice you can get from an advanced ' . 269 269 'user on our forum in some mailing issues.' ; 270 270 $cond = $conf['mail_options']; 271 271 $confk = 'mail_options'; 272 break; 272 break; 273 273 274 274 Case 24 : … … 278 278 $cond = $conf['check_upgrade_feed']; 279 279 $confk = 'check_upgrade_feed'; 280 break; 280 break; 281 281 282 282 Case 25 : 283 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 283 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 284 284 . 'items.'; 285 285 $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; 286 286 $cond = ( count($conf['rate_items']) < 4 ); 287 287 $confk = 'rate_items'; 288 break; 288 break; 289 289 290 290 Case 26 : 291 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 291 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 292 292 . 'items.'; 293 293 $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; … … 297 297 $cond = ( count($conf['rate_items']) > 6 ); 298 298 $confk = 'rate_items'; 299 break; 300 299 break; 300 301 301 Case 27 : 302 302 $adv[] = 'Current value: true.'; … … 309 309 $cond = $conf['show_iptc']; 310 310 $confk = 'show_iptc'; 311 break; 312 311 break; 312 313 313 Case 28 : 314 314 $adv[] = 'Current value: true.'; 315 315 $adv[] = 'Documentalists and professionnal photographers would ' . 316 'set it true, but beginners should leave it ' . 316 'set it true, but beginners should leave it ' . 317 317 'as $conf[\'use_iptc\'] = false;'; 318 318 $adv[] = 'Take care of mentionned fields in metadata synchronization.' . … … 324 324 $cond = $conf['use_iptc']; 325 325 $confk = 'use_iptc'; 326 break; 327 326 break; 327 328 328 Case 29 : 329 329 $adv[] = 'How to deal with IPTC:'; … … 331 331 '<br />2 - Rename it as sample.jpg.' . 332 332 '<br />3 - Run ./tools/metadata.php' . 333 '<br />4 - Analyse results to determine which IPTC fields ' . 333 '<br />4 - Analyse results to determine which IPTC fields ' . 334 334 'could be used to override database fields.'; 335 335 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; … … 342 342 $cond = true; 343 343 $confk = 'use_iptc'; 344 break; 345 344 break; 345 346 346 Case 30 : 347 347 $adv[] = 'How to deal with IPTC:'; … … 349 349 '<br />2 - Rename it as sample.jpg.' . 350 350 '<br />3 - Run ./tools/metadata.php' . 351 '<br />4 - Analyse results to determine which IPTC fields ' . 351 '<br />4 - Analyse results to determine which IPTC fields ' . 352 352 'could be used to override database fields.'; 353 353 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; … … 361 361 $cond = true; 362 362 $confk = 'use_iptc_mapping'; 363 break; 364 363 break; 364 365 365 Case 31 : 366 366 $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) … … 368 368 $adv[] = 'Should be true, some information from your camera ' . 369 369 'can be displayed.'; 370 $adv[] = 'Think about EXIF information could be different depending ' . 370 $adv[] = 'Think about EXIF information could be different depending ' . 371 371 'on camera models.<br />' . 372 372 'If you change your camera these fields could be ' . … … 379 379 $cond = true; 380 380 $confk = 'show_exif'; 381 break; 382 381 break; 382 383 383 Case 32 : 384 384 $adv[] = 'How to deal with EXIF:'; … … 386 386 '<br />2 - Rename it as sample.jpg.' . 387 387 '<br />3 - Run ./tools/metadata.php' . 388 '<br />4 - Analyse results to determine which EXIF fields ' . 388 '<br />4 - Analyse results to determine which EXIF fields ' . 389 389 'could be used to override database fields.'; 390 390 $adv[] = 'Beginners would prefer to let default values.'; … … 395 395 $cond = true; 396 396 $confk = 'show_exif_fields'; 397 break; 398 397 break; 398 399 399 Case 33 : 400 400 $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) … … 410 410 $cond = true; 411 411 $confk = 'use_exif'; 412 break; 413 412 break; 413 414 414 Case 34 : 415 415 $adv[] = 'How to deal with EXIF:'; … … 417 417 '<br />2 - Rename it as sample.jpg.' . 418 418 '<br />3 - Run ./tools/metadata.php' . 419 '<br />4 - Analyse results to determine which EXIF fields ' . 419 '<br />4 - Analyse results to determine which EXIF fields ' . 420 420 'could be used to override database fields.'; 421 421 $adv[] = 'Beginners would prefer to let default values.'; … … 429 429 $cond = true; 430 430 $confk = 'use_exif_mapping'; 431 break; 431 break; 432 432 } 433 433 } 434 434 435 435 ?> -
trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php
r2109 r2126 20 20 $bool = ($value == 'false') ? false : $value; 21 21 $bool = ($value == 'true') ? true : $bool; 22 $conf[$key] = $bool; 22 $conf[$key] = $bool; 23 23 } 24 24 } … … 42 42 $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' 43 43 . 'Du temps pour vous décider entre un statut privé ou public.'; 44 $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' 44 $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' 45 45 . 'à l\'attribution des autorisations. <br />' 46 46 . 'Vos nouvelles catégories seront préparées plus facilement.'; 47 47 $cond = ($conf['newcat_default_status'] !== 'public'); 48 48 $confk = 'newcat_default_status'; 49 break; 50 49 break; 50 51 51 Case 2 : 52 52 $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; … … 56 56 $cond = ( $conf['slideshow_period'] < 4 ); 57 57 $confk = 'slideshow_period'; 58 break; 59 58 break; 59 60 60 Case 3 : 61 61 $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; … … 64 64 $cond = ( in_array('php',$conf['file_ext']) ); 65 65 $confk = 'file_ext'; 66 break; 67 66 break; 67 68 68 Case 4 : 69 69 $adv[] = 'Comment gérer les IPTC:'; 70 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 70 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 71 71 . ' 2 - Renommez celle-ci en sample.jpg.<br />' 72 . ' 3 - Lancez ./tools/metadata.php<br />' 73 . ' 4 - Analysez les résultats pour déterminer quels champs ' 72 . ' 3 - Lancez ./tools/metadata.php<br />' 73 . ' 4 - Analysez les résultats pour déterminer quels champs ' 74 74 . 'IPTC pourraient intéresser vos visiteurs.'; 75 75 $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; 76 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 76 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 77 77 . '$lang; voire même à l\'impact possible sur les templates.'; 78 78 $cond = true; 79 79 $confk = 'show_iptc_mapping'; 80 break; 81 80 break; 81 82 82 Case 5 : 83 83 $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; 84 84 $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' 85 . 'bas débit.<br /> Pensez à une valeur située entre 25-50 ' 85 . 'bas débit.<br /> Pensez à une valeur située entre 25-50 ' 86 86 . 'en fonction de la taille de vos minitures.'; 87 87 $cond = ( $conf['top_number'] > 50 ); 88 88 $confk = 'top_number'; 89 break; 90 89 break; 90 91 91 Case 6 : 92 92 $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; 93 $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' 93 $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' 94 94 . 'autour de 5-10 selon la tailles de vos miniatures.'; 95 95 $cond = ( $conf['top_number'] < 2 ) ? true : false; 96 96 $confk = 'top_number'; 97 break; 98 97 break; 98 99 99 Case 7 : 100 100 $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; 101 $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' 101 $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' 102 102 . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; 103 103 $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; 104 104 $confk = 'anti-flood_time'; 105 break; 106 105 break; 106 107 107 Case 8 : 108 108 $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; 109 $adv[] = 'Les valeurs admises sont ' 110 . "'date_creation' ou 'date_available'" . ', toute autre valeur' 109 $adv[] = 'Les valeurs admises sont ' 110 . "'date_creation' ou 'date_available'" . ', toute autre valeur' 111 111 . 'peut aboutir à des résultats imprévisibles.' ; 112 $cond = ( !in_array($conf['calendar_datefield'], 112 $cond = ( !in_array($conf['calendar_datefield'], 113 113 array('date_creation','date_available')) ); 114 114 $confk = 'calendar_datefield'; 115 break; 116 115 break; 116 117 117 Case 9 : 118 118 // If (iptc or exif) are used and date_creation is updated … … 120 120 // else ... Advise 121 121 $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; 122 $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' 122 $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' 123 123 . 'des méta-données (use_) n\'actualise la base.'; 124 124 $adv[] = 'Soit vous activez l\'usage des méta-données <strong>ou' … … 128 128 . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' 129 129 . 'au choix, les 2 sont valables.<br />' 130 . '2 - Respectivement à chacune faire la modif:<br />' 131 . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' 132 . '=> \'2#055\', ...<br />' 133 . 'et/ou:<br />' 134 . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' 135 . '=> \'DateTimeOriginal\', ...<br />' 136 . '3 - Enfin une nouvelle tache vous est destinée: ' 130 . '2 - Respectivement à chacune faire la modif:<br />' 131 . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' 132 . '=> \'2#055\', ...<br />' 133 . 'et/ou:<br />' 134 . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' 135 . '=> \'DateTimeOriginal\', ...<br />' 136 . '3 - Enfin une nouvelle tache vous est destinée: ' 137 137 . 'la synchronisation des méta-données.' ; 138 $cond2 = ( $conf['use_exif'] and 138 $cond2 = ( $conf['use_exif'] and 139 139 isset($conf['use_exif_mapping']['date_creation']) ); 140 140 $cond3 = ( $conf['use_iptc'] and … … 143 143 $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; 144 144 $confk = 'calendar_datefield'; 145 break; 146 145 break; 146 147 147 Case 10 : 148 148 $adv[] = 'Valeur actuelle : false.'; 149 $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' 149 $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' 150 150 . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; 151 151 $cond = !$conf['newcat_default_visible']; 152 152 $confk = 'newcat_default_visible'; 153 break; 154 153 break; 154 155 155 Case 11 : 156 156 $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; … … 159 159 $cond = ( $conf['level_separator'] == ' / ' ); 160 160 $confk = 'level_separator'; 161 break; 162 161 break; 162 163 163 Case 12 : 164 164 $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] 165 165 . '.'; 166 $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' 166 $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' 167 167 . 'Pour un site avec une interface légère, on choisira : <br />' 168 . '$conf[\'paginate_pages_around\'] = 2; <br />' 168 . '$conf[\'paginate_pages_around\'] = 2; <br />' 169 169 . 'Afin de proposer plus d\'accès directs, on choisira : <br />' 170 170 . '$conf[\'paginate_pages_around\'] = 7;'; 171 $cond = (($conf['paginate_pages_around'] < 2) 171 $cond = (($conf['paginate_pages_around'] < 2) 172 172 or ($conf['paginate_pages_around'] > 12)); 173 173 $confk = 'paginate_pages_around'; 174 break; 174 break; 175 175 176 176 Case 13 : 177 177 $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; 178 178 $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; 179 $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' 179 $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' 180 180 . 'comme $conf[\'tn_width\'] = 128;'; 181 $cond = (($conf['tn_width'] < 66) 181 $cond = (($conf['tn_width'] < 66) 182 182 or ($conf['tn_width'] > 180)); 183 183 $confk = 'tn_width'; 184 break; 184 break; 185 185 186 186 Case 14 : 187 187 $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; 188 188 $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; 189 $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' 189 $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' 190 190 . 'comme $conf[\'tn_height\'] = 128;'; 191 $cond = (($conf['tn_height'] < 66) 191 $cond = (($conf['tn_height'] < 66) 192 192 or ($conf['tn_height'] > 180)); 193 193 $confk = 'tn_height'; 194 break; 194 break; 195 195 196 196 Case 15 : … … 199 199 . 'portrait afficheraient des miniatures dans une résolution ' 200 200 . 'différente de celle des miniatures en paysage?'; 201 $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] 202 . ';<br />' 201 $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] 202 . ';<br />' 203 203 . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; 204 204 $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); 205 205 $confk = 'tn_height'; 206 break; 206 break; 207 207 208 208 Case 16 : 209 209 $adv[] = 'Valeur actuelle : true.'; 210 $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' 210 $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' 211 211 . '$conf[\'show_version\'] = false;'; 212 212 $cond = $conf['show_version']; 213 213 $confk = 'show_version'; 214 break; 214 break; 215 215 216 216 Case 17 : 217 217 $adv[] = 'Valeur actuelle : true.'; 218 $adv[] = 'Pour une galerie moins chargée, faites le test de ' 218 $adv[] = 'Pour une galerie moins chargée, faites le test de ' 219 219 . '$conf[\'show_thumbnail_caption\'] = false;'; 220 220 $cond = $conf['show_thumbnail_caption']; 221 221 $confk = 'show_thumbnail_caption'; 222 break; 222 break; 223 223 224 224 Case 18 : 225 225 $adv[] = 'Valeur actuelle : true.'; 226 $adv[] = 'Pour une galerie moins chargée, faites le test de ' 226 $adv[] = 'Pour une galerie moins chargée, faites le test de ' 227 227 . '$conf[\'show_picture_name_on_title\'] = false;'; 228 228 $cond = $conf['show_picture_name_on_title']; 229 229 $confk = 'show_picture_name_on_title'; 230 break; 230 break; 231 231 232 232 Case 19 : 233 233 $adv[] = 'Valeur actuelle : true.'; 234 $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' 234 $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' 235 235 . 'essayez $conf[\'subcatify\'] = false;'; 236 236 $cond = $conf['subcatify']; 237 237 $confk = 'subcatify'; 238 break; 238 break; 239 239 240 240 Case 20 : 241 241 $adv[] = 'Valeur actuelle : true.'; 242 $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />' 242 $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />' 243 243 . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' 244 244 . 'de performance.' ; 245 245 $cond = $conf['allow_random_representative']; 246 246 $confk = 'allow_random_representative'; 247 break; 247 break; 248 248 249 249 Case 21 : … … 253 253 $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' 254 254 . 'problème d\'affichage.'; 255 $adv[] = 'Un site distant peut avoir un préfixe différent, le ' 256 . 'create_listing_file.php devra être modifié.<br />' 255 $adv[] = 'Un site distant peut avoir un préfixe différent, le ' 256 . 'create_listing_file.php devra être modifié.<br />' 257 257 . 'Vous devriez avoir un message d\'avertissement pendant la ' 258 258 . 'synchronisation dans ce cas.'; 259 $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' 259 $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' 260 260 . 'locaux ou distants.'; 261 261 $adv[] = 'Conservez ce paramètre dans votre ./include/config_' 262 262 . '<strong>local.inc.php</strong>. <br />' 263 263 . 'Voir la page sur la configuration dans le Wiki pour plus ' 264 . 'd\'informations à propos de ' 264 . 'd\'informations à propos de ' 265 265 . './include/config_<strong>local.inc.php</strong>.'; 266 266 $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); 267 267 $confk = 'prefix_thumbnail'; 268 break; 268 break; 269 269 270 270 Case 22 : 271 271 $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; 272 $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' 273 . 'augmenter largement $conf[\'users_page\'] ' 272 $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' 273 . 'augmenter largement $conf[\'users_page\'] ' 274 274 . 'surtout si vous avez plus de 20 membres.'; 275 275 $cond = ( $conf['users_page'] < 21 ); 276 276 $confk = 'users_page'; 277 break; 277 break; 278 278 279 279 Case 23 : 280 280 $adv[] = 'Valeur actuelle : true.'; 281 $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' 282 . 'indiquer $conf[\'mail_options\'] = true; <br />' 283 . 'Un utilisateur avancé de notre forum les aura conseillé ' 281 $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' 282 . 'indiquer $conf[\'mail_options\'] = true; <br />' 283 . 'Un utilisateur avancé de notre forum les aura conseillé ' 284 284 . 'dans un seul cas de problème d\'email.' ; 285 285 $cond = $conf['mail_options']; 286 286 $confk = 'mail_options'; 287 break; 287 break; 288 288 289 289 Case 24 : 290 290 $adv[] = 'Valeur actuelle : true.'; 291 $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' 291 $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' 292 292 . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; 293 293 $cond = $conf['check_upgrade_feed']; 294 294 $confk = 'check_upgrade_feed'; 295 break; 295 break; 296 296 297 297 Case 25 : 298 $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) 298 $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) 299 299 . 'éléments.'; 300 300 $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' … … 302 302 $cond = ( count($conf['rate_items']) < 4 ); 303 303 $confk = 'rate_items'; 304 break; 304 break; 305 305 306 306 Case 26 : 307 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 307 $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 308 308 . 'items.'; 309 309 $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' 310 310 . 'mais pas plus.'; 311 311 $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' 312 . ' certaines valeurs.' 313 . '<br />Réduire les valeurs excessives et modifiez votre ' 312 . ' certaines valeurs.' 313 . '<br />Réduire les valeurs excessives et modifiez votre ' 314 314 . '$conf[\'rate_items\'].'; 315 315 $cond = ( count($conf['rate_items']) > 6 ); 316 316 $confk = 'rate_items'; 317 break; 318 317 break; 318 319 319 Case 27 : 320 320 $adv[] = 'Valeur actuelle : true.'; 321 $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' 321 $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' 322 322 . '$conf[\'show_iptc\'] = false;' 323 323 . '<br />Comme quelques photographes professionnels choisissez ' 324 324 . 'false bien que leurs raisons ne soient guère professionnelles.'; 325 $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' 325 $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' 326 326 . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' 327 327 . 'sur notre wiki).'; 328 328 $cond = $conf['show_iptc']; 329 329 $confk = 'show_iptc'; 330 break; 331 330 break; 331 332 332 Case 28 : 333 333 $adv[] = 'Valeur actuelle : true.'; 334 334 $adv[] = 'Les documentalistes et photographes professionnels choisiront ' 335 . 'cette valeur true, mais les débutants devraient laisser ' 335 . 'cette valeur true, mais les débutants devraient laisser ' 336 336 . '$conf[\'use_iptc\'] = false;'; 337 337 $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' 338 338 . 'des métadonnées.<br />Les champs indiqués pourront être ' 339 . 'écrasés par des valeurs de champs IPTC quand bien même ces ' 339 . 'écrasés par des valeurs de champs IPTC quand bien même ces ' 340 340 . 'champs ne seraient pas vides.'; 341 $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' 341 $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' 342 342 . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' 343 343 . 'sur notre wiki).'; 344 344 $cond = $conf['use_iptc']; 345 345 $confk = 'use_iptc'; 346 break; 347 346 break; 347 348 348 Case 29 : 349 349 $adv[] = 'Comment gérer les IPTC:'; 350 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 350 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 351 351 . ' 2 - Renommez celle-ci en sample.jpg.<br />' 352 . ' 3 - Lancez ./tools/metadata.php<br />' 353 . ' 4 - Analysez les résultats pour déterminer quels champs ' 352 . ' 3 - Lancez ./tools/metadata.php<br />' 353 . ' 4 - Analysez les résultats pour déterminer quels champs ' 354 354 . 'IPTC pourraient intéresser vos visiteurs.'; 355 355 $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; 356 356 $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' 357 . 'avant de transférer leurs images.<br />' 358 . 'Les champs IPTC doivent être décrits par ' 357 . 'avant de transférer leurs images.<br />' 358 . 'Les champs IPTC doivent être décrits par ' 359 359 . '$conf[\'use_iptc_mapping\']'; 360 360 $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' … … 363 363 $cond = true; 364 364 $confk = 'use_iptc'; 365 break; 366 365 break; 366 367 367 Case 30 : 368 368 $adv[] = 'Comment gérer les IPTC:'; 369 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 369 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 370 370 . ' 2 - Renommez celle-ci en sample.jpg.<br />' 371 . ' 3 - Lancez ./tools/metadata.php<br />' 372 . ' 4 - Analysez les résultats pour déterminer quels champs ' 371 . ' 3 - Lancez ./tools/metadata.php<br />' 372 . ' 4 - Analysez les résultats pour déterminer quels champs ' 373 373 . 'IPTC pourraient intéresser vos visiteurs.'; 374 374 $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; 375 375 $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' 376 . 'avant de transférer leurs images.<br />' 377 . 'Les champs IPTC doivent être décrits par ' 376 . 'avant de transférer leurs images.<br />' 377 . 'Les champs IPTC doivent être décrits par ' 378 378 . '$conf[\'use_iptc_mapping\']'; 379 379 $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' 380 380 . 'des métadonnées.<br />Les champs indiqués pourront être ' 381 . 'écrasés par des valeurs de champs IPTC quand bien même ces ' 381 . 'écrasés par des valeurs de champs IPTC quand bien même ces ' 382 382 . 'champs ne seraient pas vides.'; 383 383 $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' … … 387 387 $confk = 'use_iptc_mapping'; 388 388 break; 389 389 390 390 Case 31 : 391 $adv[] = 'Valeur actuelle : ' 391 $adv[] = 'Valeur actuelle : ' 392 392 . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; 393 $adv[] = 'Devrait être à true, certaines informations propres à votre ' 393 $adv[] = 'Devrait être à true, certaines informations propres à votre ' 394 394 . 'appareil pourront être affichées.'; 395 $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' 396 . 'différentes suivant les modèles d\'appareil.<br />' 397 . 'Si vous changez votre appareil ces champs pourraient en ' 395 $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' 396 . 'différentes suivant les modèles d\'appareil.<br />' 397 . 'Si vous changez votre appareil ces champs pourraient en ' 398 398 . 'partie differents.'; 399 $adv[] = 'Beaucoup de photographes professionnels choissent false, ' 399 $adv[] = 'Beaucoup de photographes professionnels choissent false, ' 400 400 . 'ceci afin de protéger leur savoir-faire.' ; 401 $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' 401 $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' 402 402 . '<strong>use</strong>_exif (consultez la pages de métadonnées ' 403 403 . 'sur notre wiki).'; … … 405 405 $confk = 'show_exif'; 406 406 break; 407 407 408 408 Case 32 : 409 409 $adv[] = 'Comment gérer les EXIF:'; 410 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 410 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 411 411 . ' 2 - Renommez celle-ci en sample.jpg.<br />' 412 . ' 3 - Lancez ./tools/metadata.php<br />' 413 . ' 4 - Analysez les résultats pour déterminer quels champs ' 412 . ' 3 - Lancez ./tools/metadata.php<br />' 413 . ' 4 - Analysez les résultats pour déterminer quels champs ' 414 414 . 'EXIF pourraient intéresser vos visiteurs.'; 415 415 $adv[] = 'Les débutants laisseront la valeur par défaut.'; 416 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 416 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 417 417 . '$lang; voire même à l\'impact possible sur les templates.'; 418 418 $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' … … 422 422 $confk = 'show_exif_fields'; 423 423 break; 424 424 425 425 Case 33 : 426 426 $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) 427 427 . '.'; 428 428 $adv[] = 'Les documentalistes et photographes professionnels choisiront ' 429 . 'cette valeur true, mais les débutants devraient laisser ' 429 . 'cette valeur true, mais les débutants devraient laisser ' 430 430 . 'la valeur par défaut.'; 431 431 $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' 432 432 . 'des métadonnées.<br />Les champs indiqués pourront être ' 433 . 'écrasés par des valeurs de champs EXIF quand bien même ces ' 433 . 'écrasés par des valeurs de champs EXIF quand bien même ces ' 434 434 . 'champs ne seraient pas vides.'; 435 $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' 435 $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' 436 436 . '<strong>use</strong>_exif (consultez la pages de métadonnées ' 437 437 . 'sur notre wiki).'; … … 439 439 $confk = 'use_exif'; 440 440 break; 441 441 442 442 Case 34 : 443 443 $adv[] = 'Comment gérer les EXIF:'; 444 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 444 $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' 445 445 . ' 2 - Renommez celle-ci en sample.jpg.<br />' 446 . ' 3 - Lancez ./tools/metadata.php<br />' 447 . ' 4 - Analysez les résultats pour déterminer quels champs ' 446 . ' 3 - Lancez ./tools/metadata.php<br />' 447 . ' 4 - Analysez les résultats pour déterminer quels champs ' 448 448 . 'EXIF pourraient intéresser vos visiteurs.'; 449 449 $adv[] = 'Les débutants laisseront la valeur par défaut.'; 450 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 450 $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' 451 451 . '$lang; voire même à l\'impact possible sur les templates.'; 452 452 $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; … … 455 455 $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' 456 456 . 'des métadonnées.<br />Ces champs pourront être ' 457 . 'écrasés par des valeurs de champs EXIF quand bien même ces ' 457 . 'écrasés par des valeurs de champs EXIF quand bien même ces ' 458 458 . 'champs ne seraient pas vides.'; 459 459 $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' … … 465 465 } 466 466 } 467 467 468 468 ?> -
trunk/plugins/c13y_upgrade/initialize.inc.php
r2115 r2126 34 34 function c13y_upgrade($c13y_array) 35 35 { 36 global $ lang, $conf;36 global $conf; 37 37 38 include(get_language_filepath('plugin.lang.php', dirname(__FILE__).'/'));39 38 load_language('plugin.lang', dirname(__FILE__).'/'); 39 40 40 $result = array(); 41 41 … … 62 62 if (count($result) === 0) 63 63 { 64 $deactivate_msg_link = 64 $deactivate_msg_link = 65 65 '<a href="'. 66 66 PHPWG_ROOT_PATH. -
trunk/popuphelp.php
r1900 r2126 43 43 include(PHPWG_ROOT_PATH.'include/page_header.php'); 44 44 45 if 45 if 46 46 ( 47 47 isset($_GET['page']) … … 50 50 { 51 51 $help_content = 52 @file_get_contents(get_language_filepath('help/'.$_GET['page'].'.html'));52 load_language('help/'.$_GET['page'].'.html', '', '', true); 53 53 54 54 if ($help_content == false)
Note: See TracChangeset
for help on using the changeset viewer.