Changeset 2126


Ignore:
Timestamp:
Oct 9, 2007, 1:46:09 AM (17 years ago)
Author:
rvelices
Message:
  • some code refactoring before upgrade to utf (only cosmetic at this point...)
Location:
trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r2014 r2126  
    5858  array(
    5959    'about'=>'about.tpl',
    60     'about_content' => get_language_filepath('about.html')
    6160    )
    6261  );
     
    7675  );
    7776
    78 $template->assign_var_from_handle('ABOUT_MESSAGE', 'about_content');
    79  
     77$template->assign_var('ABOUT_MESSAGE', load_language('about.html','','',true) );
     78
    8079$template->parse('about');
    8180include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/admin/help.php

    r1900 r2126  
    3333check_status(ACCESS_ADMINISTRATOR);
    3434
    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) );
    4236?>
  • trunk/include/common.inc.php

    r2117 r2126  
    156156
    157157// language files
    158 include_once(get_language_filepath('common.lang.php'));
     158load_language('common.lang');
    159159if (defined('IN_ADMIN') and IN_ADMIN)
    160160{
    161   include_once(get_language_filepath('admin.lang.php'));
     161  load_language('admin.lang');
    162162}
    163163trigger_action('loading_lang');
    164 @include_once(get_language_filepath('local.lang.php'));
     164load_language('local.lang');
    165165
    166166// only now we can set the localized username of the guest user (and not in
  • trunk/include/functions.inc.php

    r2123 r2126  
    730730  {
    731731    $user = build_user( $conf['guest_id'], true);
    732     include_once(get_language_filepath('common.lang.php'));
     732    load_language('common.lang');
    733733    trigger_action('loading_lang');
    734     @include_once(get_language_filepath('local.lang.php'));
     734    load_language('local.lang');
    735735    list($tmpl, $thm) = explode('/', get_default_template());
    736736    $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm);
     
    14251425}
    14261426
     1427/**
     1428 * returns the character set of data sent to browsers / received from forms
     1429 */
     1430function 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 */
     1451function 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
    14271466?>
  • trunk/include/functions_mail.inc.php

    r2122 r2126  
    4949
    5050  global $lang_info;
    51   return '=?'.$lang_info['charset'].'?Q?'.$str.'?=';
     51  return '=?'.get_pwg_charset().'?Q?'.$str.'?=';
    5252}
    5353
     
    227227
    228228      // language files
    229       include(get_language_filepath('common.lang.php', '', $language));
     229      load_language('common.lang', '', $language);
    230230      // No test admin because script is checked admin (user selected no)
    231231      // Translations are in admin file too
    232       include(get_language_filepath('admin.lang.php', '', $language));
     232      load_language('admin.lang', '', $language);
    233233      trigger_action('loading_lang');
    234       @include(get_language_filepath('local.lang.php', '', $language));
     234      load_language('local.lang', '', $language);
    235235
    236236      $switch_lang[$language]['lang_info'] = $lang_info;
     
    589589  $content = '';
    590590
    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']]))
    592592  {
    593593    if (!isset($mail_template))
     
    604604        'BOUNDARY_KEY' => $conf_mail['boundary_key'],
    605605        'CONTENT_TYPE' => $args['email_format'],
    606         'CONTENT_ENCODING' => $lang_info['charset'],
     606        'CONTENT_ENCODING' => get_pwg_charset(),
    607607        'LANG' => $lang_info['code'],
    608608        'DIR' => $lang_info['direction'],
     
    651651    // what are displayed on the header of each mail ?
    652652    $conf_mail[$args['email_format']]
    653       [$lang_info['charset']]
     653      [get_pwg_charset()]
    654654      [$args['template']][$args['theme']]['header'] =
    655655        $mail_template->parse('mail_header', true);
     
    657657    // what are displayed on the footer of each mail ?
    658658    $conf_mail[$args['email_format']]
    659       [$lang_info['charset']]
     659      [get_pwg_charset()]
    660660      [$args['template']][$args['theme']]['footer'] =
    661661        $mail_template->parse('mail_footer', true);
     
    664664  // Header
    665665  $content.= $conf_mail[$args['email_format']]
    666               [$lang_info['charset']]
     666              [get_pwg_charset()]
    667667              [$args['template']][$args['theme']]['header'];
    668668
     
    684684  // Footer
    685685  $content.= $conf_mail[$args['email_format']]
    686               [$lang_info['charset']]
     686              [get_pwg_charset()]
    687687              [$args['template']][$args['theme']]['footer'];
    688688
  • trunk/include/page_header.php

    r1900 r2126  
    4747        $page['body_id'] : '',
    4848
    49     'CONTENT_ENCODING' => $lang_info['charset'],
     49    'CONTENT_ENCODING' => get_pwg_charset(),
    5050    'PAGE_TITLE' => strip_tags($title),
    5151    'LANG'=>$lang_info['code'],
     
    100100trigger_action('loc_end_page_header');
    101101
    102 header('Content-Type: text/html; charset='.$lang_info['charset']);
     102header('Content-Type: text/html; charset='.get_pwg_charset());
    103103$template->parse('header');
    104104
  • trunk/include/ws_functions.inc.php

    r2119 r2126  
    911911    $res[$k] = $user[$k];
    912912  }
    913   foreach ( array('charset') as $k )
    914   {
    915     $res[$k] = $lang_info[$k];
    916   }
     913  $res['charset'] = get_pwg_charset();
    917914  return $res;
    918915}
  • trunk/include/ws_protocols/rest_encoder.php

    r1900 r2126  
    169169    $this->encode($response);
    170170    $ret = $this->_writer->getOutput();
    171     $ret = '<?xml version="1.0" encoding="'.$lang_info['charset'].'" ?>
     171    $ret = '<?xml version="1.0" encoding="'.get_pwg_charset().'" ?>
    172172<rsp stat="ok">
    173173'.$ret.'
  • trunk/nbm.php

    r2059 r2126  
    3535include_once(PHPWG_ROOT_PATH.'admin/include/functions_notification_by_mail.inc.php');
    3636// Translations are in admin file too
    37 include(get_language_filepath('admin.lang.php'));
     37load_language('admin.lang');
    3838// Need to update a second time
    3939trigger_action('loading_lang');
    40 @include(get_language_filepath('local.lang.php'));
     40load_language('local.lang');
     41
    4142
    4243
  • trunk/plugins/add_index/main.admin.inc.php

    r2059 r2126  
    5151  function loading_lang()
    5252  {
    53     global $lang;
    54 
    55     include(get_language_filepath('plugin.lang.php', $this->path));
     53    load_language('plugin.lang', $this->path);
    5654  }
    5755
  • trunk/plugins/add_index/main.normal.inc.php

    r2059 r2126  
    3737    {
    3838      $help_content =
    39         @file_get_contents(get_language_filepath('help/'.$page.'.html', $this->path));
     39        load_language('help/'.$page.'.html', $this->path, '', true);
    4040    }
    4141    else
  • trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php

    r1926 r2126  
    2020    $bool = ($value == 'false') ? false : $value;
    2121    $bool = ($value == 'true') ? true : $bool;
    22     $conf[$key] = $bool; 
     22    $conf[$key] = $bool;
    2323  }
    2424}
     
    4646      $cond = ($conf['newcat_default_status'] !== 'public');
    4747      $confk = 'newcat_default_status';
    48       break; 
    49      
     48      break;
     49
    5050    Case 2 :
    5151      $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.';
     
    5454      $cond = ( $conf['slideshow_period'] < 4 );
    5555      $confk = 'slideshow_period';
    56       break; 
    57      
     56      break;
     57
    5858    Case 3 :
    5959      $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. ';
     
    6262      $cond = ( in_array('php',$conf['file_ext']) );
    6363      $confk = 'file_ext';
    64       break; 
    65      
     64      break;
     65
    6666    Case 4 :
    6767      $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 />' .
    7171               ' 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' .
    7373                   ' useful for your visitors.';
    7474      $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' .
    7676        ' on templates.';
    7777      $cond = true;
    7878      $confk = 'show_iptc_mapping';
    79       break; 
    80  
     79      break;
     80
    8181     Case 5 :
    8282      $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, ' .
    8484               'think about 25-50 depending on your thumbnail sizes.';
    8585      $cond = ( $conf['top_number'] > 50 );
    8686      $confk = 'top_number';
    87       break; 
    88  
     87      break;
     88
    8989     Case 6 :
    9090      $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, ' .
    9292               'think about 5-10 depending on your thumbnail sizes.';
    9393      $cond = ( $conf['top_number'] < 2 ) ? true : false;
    9494      $confk = 'top_number';
    95       break; 
    96      
     95      break;
     96
    9797     Case 7 :
    9898      $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.';
     
    101101      $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
    102102      $confk = 'anti-flood_time';
    103       break; 
    104      
     103      break;
     104
    105105     Case 8 :
    106106      $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
     
    108108               "'date_creation' or 'date_available'" .
    109109               ', otherwise you can get unpredictable results.' ;
    110       $cond = ( !in_array($conf['calendar_datefield'], 
     110      $cond = ( !in_array($conf['calendar_datefield'],
    111111        array('date_creation','date_available')) );
    112112      $confk = 'calendar_datefield';
    113       break; 
    114      
     113      break;
     114
    115115     Case 9 :
    116116      // If (iptc or exif) are used and date_creation is updated
     
    118118      // else ... Advice
    119119      $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
    120       $adv[] = "'date_creation'" . ' is NOT filled by ' . 
     120      $adv[] = "'date_creation'" . ' is NOT filled by ' .
    121121      '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 ' .
    123123      '$conf[\'calendar_datefield\'] = \'date_available\'';
    124124      $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; ' .
    126126      'each way will be correct.<br />' .
    127127      '2 - And respectively map:<br />' .
     
    132132      '=> \'DateTimeOriginal\', ...<br />' .
    133133      '3 - Finally, a new task is up to you: Metadata synchronization.'  ;
    134       $cond2 = ( $conf['use_exif'] and 
     134      $cond2 = ( $conf['use_exif'] and
    135135                isset($conf['use_exif_mapping']['date_creation']) );
    136136      $cond3 = ( $conf['use_iptc'] and
     
    139139      $cond = ( ($cond2 or $cond3) and $cond ) ? false : true;
    140140      $confk = 'calendar_datefield';
    141       break; 
    142      
     141      break;
     142
    143143     Case 10 :
    144144      $adv[] = 'Current value: false.';
     
    147147      $cond = !$conf['newcat_default_visible'];
    148148      $confk = 'newcat_default_visible';
    149       break; 
    150      
     149      break;
     150
    151151     Case 11 :
    152152      $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.';
     
    154154      $cond = ( $conf['level_separator'] == ' / ' );
    155155      $confk = 'level_separator';
    156       break; 
    157      
     156      break;
     157
    158158     Case 12 :
    159159      $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.';
     
    161161      '$conf[\'paginate_pages_around\'] = 2; <br />' .
    162162      'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;';
    163       $cond = (($conf['paginate_pages_around'] < 2) 
     163      $cond = (($conf['paginate_pages_around'] < 2)
    164164            or ($conf['paginate_pages_around'] > 12));
    165165      $confk = 'paginate_pages_around';
    166       break; 
     166      break;
    167167
    168168     Case 13 :
    169169      $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.';
    170170      $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, ' .
    172172               'about $conf[\'tn_width\'] = 128;';
    173       $cond = (($conf['tn_width'] < 66) 
     173      $cond = (($conf['tn_width'] < 66)
    174174            or ($conf['tn_width'] > 180));
    175175      $confk = 'tn_width';
    176       break; 
     176      break;
    177177
    178178     Case 14 :
    179179      $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.';
    180180      $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, ' .
    182182               'about $conf[\'tn_height\'] = 128;';
    183       $cond = (($conf['tn_height'] < 66) 
     183      $cond = (($conf['tn_height'] < 66)
    184184            or ($conf['tn_height'] > 180));
    185185      $confk = 'tn_height';
    186       break; 
     186      break;
    187187
    188188     Case 15 :
    189189      $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'] .
    191191               ';<br />' .
    192192               'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
    193193      $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
    194194      $confk = 'tn_height';
    195       break; 
     195      break;
    196196
    197197     Case 16 :
     
    201201      $cond = $conf['show_version'];
    202202      $confk = 'show_version';
    203       break; 
     203      break;
    204204
    205205     Case 17 :
     
    209209      $cond = $conf['show_thumbnail_caption'];
    210210      $confk = 'show_thumbnail_caption';
    211       break; 
     211      break;
    212212
    213213     Case 18 :
     
    217217      $cond = $conf['show_picture_name_on_title'];
    218218      $confk = 'show_picture_name_on_title';
    219       break; 
     219      break;
    220220
    221221     Case 19 :
     
    225225      $cond = $conf['subcatify'];
    226226      $confk = 'subcatify';
    227       break; 
     227      break;
    228228
    229229     Case 20 :
     
    233233      $cond = $conf['allow_random_representative'];
    234234      $confk = 'allow_random_representative';
    235       break; 
     235      break;
    236236
    237237     Case 21 :
     
    239239      $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.';
    240240      $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 ' .
    242242               'create_listing_file.php must be modified.<br />' .
    243243               'You will get a warning message during synchronization in ' .
     
    251251      $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
    252252      $confk = 'prefix_thumbnail';
    253       break; 
     253      break;
    254254
    255255     Case 22 :
    256256      $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.';
    257257      $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 ' .
    259259               'if you have more than 20 members.';
    260260      $cond = ( $conf['users_page'] < 21 );
    261261      $confk = 'users_page';
    262       break; 
     262      break;
    263263
    264264     Case 23 :
     
    266266      $adv[] = 'Should be false, only few webmasters have to set ' .
    267267               '$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 ' .
    269269               'user on our forum in some mailing issues.' ;
    270270      $cond = $conf['mail_options'];
    271271      $confk = 'mail_options';
    272       break; 
     272      break;
    273273
    274274     Case 24 :
     
    278278      $cond = $conf['check_upgrade_feed'];
    279279      $confk = 'check_upgrade_feed';
    280       break; 
     280      break;
    281281
    282282     Case 25 :
    283       $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 
     283      $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
    284284             . 'items.';
    285285      $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.';
    286286      $cond = ( count($conf['rate_items']) < 4 );
    287287      $confk = 'rate_items';
    288       break; 
     288      break;
    289289
    290290     Case 26 :
    291       $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 
     291      $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
    292292             . 'items.';
    293293      $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.';
     
    297297      $cond = ( count($conf['rate_items']) > 6 );
    298298      $confk = 'rate_items';
    299       break; 
    300        
     299      break;
     300
    301301     Case 27 :
    302302      $adv[] = 'Current value: true.';
     
    309309      $cond = $conf['show_iptc'];
    310310      $confk = 'show_iptc';
    311       break; 
    312        
     311      break;
     312
    313313     Case 28 :
    314314      $adv[] = 'Current value: true.';
    315315      $adv[] = 'Documentalists and professionnal photographers would ' .
    316                'set it true, but beginners should leave it ' . 
     316               'set it true, but beginners should leave it ' .
    317317               'as $conf[\'use_iptc\'] = false;';
    318318      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
     
    324324      $cond = $conf['use_iptc'];
    325325      $confk = 'use_iptc';
    326       break; 
    327        
     326      break;
     327
    328328     Case 29 :
    329329      $adv[] = 'How to deal with IPTC:';
     
    331331               '<br />2 - Rename it as sample.jpg.' .
    332332               '<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 ' .
    334334               'could be used to override database fields.';
    335335      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
     
    342342      $cond = true;
    343343      $confk = 'use_iptc';
    344       break;   
    345      
     344      break;
     345
    346346     Case 30 :
    347347      $adv[] = 'How to deal with IPTC:';
     
    349349               '<br />2 - Rename it as sample.jpg.' .
    350350               '<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 ' .
    352352               'could be used to override database fields.';
    353353      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
     
    361361      $cond = true;
    362362      $confk = 'use_iptc_mapping';
    363       break;                               
    364      
     363      break;
     364
    365365     Case 31 :
    366366      $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' )
     
    368368      $adv[] = 'Should be true, some information from your camera ' .
    369369               'can be displayed.';
    370       $adv[] = 'Think about EXIF information could be different depending ' . 
     370      $adv[] = 'Think about EXIF information could be different depending ' .
    371371               'on camera models.<br />' .
    372372               'If you change your camera these fields could be ' .
     
    379379      $cond = true;
    380380      $confk = 'show_exif';
    381       break;   
    382      
     381      break;
     382
    383383     Case 32 :
    384384      $adv[] = 'How to deal with EXIF:';
     
    386386               '<br />2 - Rename it as sample.jpg.' .
    387387               '<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 ' .
    389389               'could be used to override database fields.';
    390390      $adv[] = 'Beginners would prefer to let default values.';
     
    395395      $cond = true;
    396396      $confk = 'show_exif_fields';
    397       break;                               
    398        
     397      break;
     398
    399399     Case 33 :
    400400      $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
     
    410410      $cond = true;
    411411      $confk = 'use_exif';
    412       break;                                                   
    413      
     412      break;
     413
    414414     Case 34 :
    415415      $adv[] = 'How to deal with EXIF:';
     
    417417               '<br />2 - Rename it as sample.jpg.' .
    418418               '<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 ' .
    420420               'could be used to override database fields.';
    421421      $adv[] = 'Beginners would prefer to let default values.';
     
    429429      $cond = true;
    430430      $confk = 'use_exif_mapping';
    431       break;                               
     431      break;
    432432  }
    433433}
    434  
     434
    435435?>
  • trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php

    r2109 r2126  
    2020    $bool = ($value == 'false') ? false : $value;
    2121    $bool = ($value == 'true') ? true : $bool;
    22     $conf[$key] = $bool; 
     22    $conf[$key] = $bool;
    2323  }
    2424}
     
    4242      $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. '
    4343             . '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 '
    4545             . 'à l\'attribution des autorisations. <br />'
    4646             . 'Vos nouvelles catégories seront préparées plus facilement.';
    4747      $cond = ($conf['newcat_default_status'] !== 'public');
    4848      $confk = 'newcat_default_status';
    49       break; 
    50      
     49      break;
     50
    5151    Case 2 :
    5252      $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.';
     
    5656      $cond = ( $conf['slideshow_period'] < 4 );
    5757      $confk = 'slideshow_period';
    58       break; 
    59      
     58      break;
     59
    6060    Case 3 :
    6161      $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. ';
     
    6464      $cond = ( in_array('php',$conf['file_ext']) );
    6565      $confk = 'file_ext';
    66       break; 
    67      
     66      break;
     67
    6868    Case 4 :
    6969      $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 />'
    7171             . ' 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 '
    7474             . 'IPTC pourraient intéresser vos visiteurs.';
    7575      $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 '
    7777             . '$lang; voire même à l\'impact possible sur les templates.';
    7878      $cond = true;
    7979      $confk = 'show_iptc_mapping';
    80       break; 
    81  
     80      break;
     81
    8282     Case 5 :
    8383      $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.';
    8484      $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 '
    8686             . 'en fonction de la taille de vos minitures.';
    8787      $cond = ( $conf['top_number'] > 50 );
    8888      $confk = 'top_number';
    89       break; 
    90  
     89      break;
     90
    9191     Case 6 :
    9292      $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 '
    9494             . 'autour de 5-10 selon la tailles de vos miniatures.';
    9595      $cond = ( $conf['top_number'] < 2 ) ? true : false;
    9696      $confk = 'top_number';
    97       break; 
    98      
     97      break;
     98
    9999     Case 7 :
    100100      $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 '
    102102             . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ;
    103103      $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
    104104      $confk = 'anti-flood_time';
    105       break; 
    106      
     105      break;
     106
    107107     Case 8 :
    108108      $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'
    111111             . 'peut aboutir à des résultats imprévisibles.' ;
    112       $cond = ( !in_array($conf['calendar_datefield'], 
     112      $cond = ( !in_array($conf['calendar_datefield'],
    113113        array('date_creation','date_available')) );
    114114      $confk = 'calendar_datefield';
    115       break; 
    116      
     115      break;
     116
    117117     Case 9 :
    118118      // If (iptc or exif) are used and date_creation is updated
     
    120120      // else ... Advise
    121121      $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 '
    123123             . 'des méta-données (use_) n\'actualise la base.';
    124124      $adv[] = 'Soit vous activez l\'usage des méta-données <strong>ou'
     
    128128             . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; '
    129129             . '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: '
    137137             . 'la synchronisation des méta-données.' ;
    138       $cond2 = ( $conf['use_exif'] and 
     138      $cond2 = ( $conf['use_exif'] and
    139139                isset($conf['use_exif_mapping']['date_creation']) );
    140140      $cond3 = ( $conf['use_iptc'] and
     
    143143      $cond = ( ($cond2 or $cond3) and $cond ) ? false : true;
    144144      $confk = 'calendar_datefield';
    145       break; 
    146      
     145      break;
     146
    147147     Case 10 :
    148148      $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, '
    150150             . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ;
    151151      $cond = !$conf['newcat_default_visible'];
    152152      $confk = 'newcat_default_visible';
    153       break; 
    154      
     153      break;
     154
    155155     Case 11 :
    156156      $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.';
     
    159159      $cond = ( $conf['level_separator'] == ' / ' );
    160160      $confk = 'level_separator';
    161       break; 
    162      
     161      break;
     162
    163163     Case 12 :
    164164      $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around']
    165165             . '.';
    166       $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' 
     166      $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.'
    167167             . '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 />'
    169169             . 'Afin de proposer plus d\'accès directs, on choisira : <br />'
    170170             . '$conf[\'paginate_pages_around\'] = 7;';
    171       $cond = (($conf['paginate_pages_around'] < 2) 
     171      $cond = (($conf['paginate_pages_around'] < 2)
    172172            or ($conf['paginate_pages_around'] > 12));
    173173      $confk = 'paginate_pages_around';
    174       break; 
     174      break;
    175175
    176176     Case 13 :
    177177      $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.';
    178178      $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, '
    180180             . 'comme $conf[\'tn_width\'] = 128;';
    181       $cond = (($conf['tn_width'] < 66) 
     181      $cond = (($conf['tn_width'] < 66)
    182182            or ($conf['tn_width'] > 180));
    183183      $confk = 'tn_width';
    184       break; 
     184      break;
    185185
    186186     Case 14 :
    187187      $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.';
    188188      $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, '
    190190             . 'comme $conf[\'tn_height\'] = 128;';
    191       $cond = (($conf['tn_height'] < 66) 
     191      $cond = (($conf['tn_height'] < 66)
    192192            or ($conf['tn_height'] > 180));
    193193      $confk = 'tn_height';
    194       break; 
     194      break;
    195195
    196196     Case 15 :
     
    199199             . 'portrait afficheraient des miniatures dans une résolution '
    200200             . '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 />'
    203203             . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
    204204      $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
    205205      $confk = 'tn_height';
    206       break; 
     206      break;
    207207
    208208     Case 16 :
    209209      $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 '
    211211             . '$conf[\'show_version\'] = false;';
    212212      $cond = $conf['show_version'];
    213213      $confk = 'show_version';
    214       break; 
     214      break;
    215215
    216216     Case 17 :
    217217      $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 '
    219219             . '$conf[\'show_thumbnail_caption\'] = false;';
    220220      $cond = $conf['show_thumbnail_caption'];
    221221      $confk = 'show_thumbnail_caption';
    222       break; 
     222      break;
    223223
    224224     Case 18 :
    225225      $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 '
    227227             . '$conf[\'show_picture_name_on_title\'] = false;';
    228228      $cond = $conf['show_picture_name_on_title'];
    229229      $confk = 'show_picture_name_on_title';
    230       break; 
     230      break;
    231231
    232232     Case 19 :
    233233      $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 '
    235235             . 'essayez $conf[\'subcatify\'] = false;';
    236236      $cond = $conf['subcatify'];
    237237      $confk = 'subcatify';
    238       break; 
     238      break;
    239239
    240240     Case 20 :
    241241      $adv[] = 'Valeur actuelle : true.';
    242       $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />' 
     242      $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />'
    243243             . 'mais étudiez comment vous pouvez l\'éviter pour des raisons '
    244244             . 'de performance.' ;
    245245      $cond = $conf['allow_random_representative'];
    246246      $confk = 'allow_random_representative';
    247       break; 
     247      break;
    248248
    249249     Case 21 :
     
    253253      $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un '
    254254             . '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 />'
    257257             . 'Vous devriez avoir un message d\'avertissement pendant la '
    258258             . '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 '
    260260             . 'locaux ou distants.';
    261261      $adv[] = 'Conservez ce paramètre dans votre ./include/config_'
    262262             . '<strong>local.inc.php</strong>. <br />'
    263263             . 'Voir la page sur la configuration dans le Wiki pour plus '
    264              . 'd\'informations à propos de ' 
     264             . 'd\'informations à propos de '
    265265             . './include/config_<strong>local.inc.php</strong>.';
    266266      $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
    267267      $confk = 'prefix_thumbnail';
    268       break; 
     268      break;
    269269
    270270     Case 22 :
    271271      $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\'] '
    274274             . 'surtout si vous avez plus de 20 membres.';
    275275      $cond = ( $conf['users_page'] < 21 );
    276276      $confk = 'users_page';
    277       break; 
     277      break;
    278278
    279279     Case 23 :
    280280      $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é '
    284284             . 'dans un seul cas de problème d\'email.' ;
    285285      $cond = $conf['mail_options'];
    286286      $confk = 'mail_options';
    287       break; 
     287      break;
    288288
    289289     Case 24 :
    290290      $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 '
    292292             . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.';
    293293      $cond = $conf['check_upgrade_feed'];
    294294      $confk = 'check_upgrade_feed';
    295       break; 
     295      break;
    296296
    297297     Case 25 :
    298       $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) 
     298      $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items'])
    299299             . 'éléments.';
    300300      $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments '
     
    302302      $cond = ( count($conf['rate_items']) < 4 );
    303303      $confk = 'rate_items';
    304       break; 
     304      break;
    305305
    306306     Case 26 :
    307       $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 
     307      $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
    308308             . 'items.';
    309309      $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments '
    310310             . 'mais pas plus.';
    311311      $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 '
    314314             . '$conf[\'rate_items\'].';
    315315      $cond = ( count($conf['rate_items']) > 6 );
    316316      $confk = 'rate_items';
    317       break; 
    318        
     317      break;
     318
    319319     Case 27 :
    320320      $adv[] = 'Valeur actuelle : true.';
    321       $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' 
     321      $adv[] = 'Peut être effectivement à true, éventuellement choisissez '
    322322             . '$conf[\'show_iptc\'] = false;'
    323323             . '<br />Comme quelques photographes professionnels choisissez '
    324324             . '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 '
    326326             . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
    327327             . 'sur notre wiki).';
    328328      $cond = $conf['show_iptc'];
    329329      $confk = 'show_iptc';
    330       break; 
    331        
     330      break;
     331
    332332     Case 28 :
    333333      $adv[] = 'Valeur actuelle : true.';
    334334      $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 '
    336336             . '$conf[\'use_iptc\'] = false;';
    337337      $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
    338338             . '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 '
    340340             . '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 '
    342342             . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
    343343             . 'sur notre wiki).';
    344344      $cond = $conf['use_iptc'];
    345345      $confk = 'use_iptc';
    346       break; 
    347        
     346      break;
     347
    348348     Case 29 :
    349349      $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 />'
    351351             . ' 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 '
    354354             . 'IPTC pourraient intéresser vos visiteurs.';
    355355      $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;';
    356356      $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 '
    359359             . '$conf[\'use_iptc_mapping\']';
    360360      $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
     
    363363      $cond = true;
    364364      $confk = 'use_iptc';
    365       break;   
    366      
     365      break;
     366
    367367     Case 30 :
    368368      $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 />'
    370370             . ' 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 '
    373373             . 'IPTC pourraient intéresser vos visiteurs.';
    374374      $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;';
    375375      $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 '
    378378             . '$conf[\'use_iptc_mapping\']';
    379379      $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
    380380             . '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 '
    382382             . 'champs ne seraient pas vides.';
    383383      $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
     
    387387      $confk = 'use_iptc_mapping';
    388388      break;
    389      
     389
    390390     Case 31 :
    391       $adv[] = 'Valeur actuelle : ' 
     391      $adv[] = 'Valeur actuelle : '
    392392             . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.';
    393       $adv[] = 'Devrait être à true, certaines informations propres à votre ' 
     393      $adv[] = 'Devrait être à true, certaines informations propres à votre '
    394394             . '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 '
    398398             . 'partie differents.';
    399       $adv[] = 'Beaucoup de photographes professionnels choissent false, ' 
     399      $adv[] = 'Beaucoup de photographes professionnels choissent false, '
    400400             . '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 '
    402402             . '<strong>use</strong>_exif (consultez la pages de métadonnées '
    403403             . 'sur notre wiki).';
     
    405405      $confk = 'show_exif';
    406406      break;
    407      
     407
    408408     Case 32 :
    409409      $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 />'
    411411             . ' 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 '
    414414             . 'EXIF pourraient intéresser vos visiteurs.';
    415415      $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 '
    417417             . '$lang; voire même à l\'impact possible sur les templates.';
    418418      $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
     
    422422      $confk = 'show_exif_fields';
    423423      break;
    424        
     424
    425425     Case 33 :
    426426      $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
    427427             . '.';
    428428      $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 '
    430430             . 'la valeur par défaut.';
    431431      $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
    432432             . '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 '
    434434             . '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 '
    436436             . '<strong>use</strong>_exif (consultez la pages de métadonnées '
    437437             . 'sur notre wiki).';
     
    439439      $confk = 'use_exif';
    440440      break;
    441      
     441
    442442     Case 34 :
    443443      $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 />'
    445445             . ' 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 '
    448448             . 'EXIF pourraient intéresser vos visiteurs.';
    449449      $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 '
    451451             . '$lang; voire même à l\'impact possible sur les templates.';
    452452      $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;';
     
    455455      $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
    456456             . '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 '
    458458             . 'champs ne seraient pas vides.';
    459459      $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
     
    465465  }
    466466}
    467  
     467
    468468?>
  • trunk/plugins/c13y_upgrade/initialize.inc.php

    r2115 r2126  
    3434function c13y_upgrade($c13y_array)
    3535{
    36   global $lang, $conf;
     36  global $conf;
    3737
    38   include(get_language_filepath('plugin.lang.php', dirname(__FILE__).'/'));
    39  
     38  load_language('plugin.lang', dirname(__FILE__).'/');
     39
    4040  $result = array();
    4141
     
    6262  if (count($result) === 0)
    6363  {
    64     $deactivate_msg_link = 
     64    $deactivate_msg_link =
    6565      '<a href="'.
    6666      PHPWG_ROOT_PATH.
  • trunk/popuphelp.php

    r1900 r2126  
    4343include(PHPWG_ROOT_PATH.'include/page_header.php');
    4444
    45 if 
     45if
    4646  (
    4747    isset($_GET['page'])
     
    5050{
    5151  $help_content =
    52     @file_get_contents(get_language_filepath('help/'.$_GET['page'].'.html'));
     52    load_language('help/'.$_GET['page'].'.html', '', '', true);
    5353
    5454  if ($help_content == false)
Note: See TracChangeset for help on using the changeset viewer.