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...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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?>
Note: See TracChangeset for help on using the changeset viewer.